当前位置: 技术问答>linux和unix
linux下利用mmap实现共享内存,出现总线错误
来源: 互联网 发布时间:2017-03-16
本文导语: #include #include #include #include #include #include #include #include //#include "myHead.h" int main(int argc, char **argv) { int fd,i; int flength; char *p; char tmp; if (argc
#include
#include
#include
#include
#include
#include
#include
#include
//#include "myHead.h"
int main(int argc, char **argv)
{
int fd,i;
int flength;
char *p;
char tmp;
if (argc
#include
#include
#include
#include
#include
#include
#include
//#include "myHead.h"
int main(int argc, char **argv)
{
int fd,i;
int flength;
char *p;
char tmp;
if (argc