Changeset 980 for trunk/server/lib/replace/test
- Timestamp:
- Sep 23, 2016, 5:50:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/lib/replace/test/shared_mmap.c
r414 r980 20 20 int *buf; 21 21 int i; 22 int fd = open(DATA,O_RDWR|O_CREAT|O_TRUNC ,0666);22 int fd = open(DATA,O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0666); 23 23 int count=7; 24 24 … … 32 32 33 33 if (fork() == 0) { 34 fd = open(DATA,O_RDWR );34 fd = open(DATA,O_RDWR|O_BINARY); 35 35 if (fd == -1) exit(1); 36 36 … … 48 48 } 49 49 50 fd = open(DATA,O_RDWR );50 fd = open(DATA,O_RDWR|O_BINARY); 51 51 if (fd == -1) exit(1); 52 52
Note:
See TracChangeset
for help on using the changeset viewer.