Ignore:
Timestamp:
Sep 23, 2016, 5:50:54 PM (9 years ago)
Author:
Silvan Scherrer
Message:

samba server: adjust some mmap stuff and fix a Makefile issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/lib/replace/test/shared_mmap.c

    r414 r980  
    2020        int *buf;
    2121        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);
    2323        int count=7;
    2424
     
    3232
    3333        if (fork() == 0) {
    34                 fd = open(DATA,O_RDWR);
     34                fd = open(DATA,O_RDWR|O_BINARY);
    3535                if (fd == -1) exit(1);
    3636
     
    4848        }
    4949
    50         fd = open(DATA,O_RDWR);
     50        fd = open(DATA,O_RDWR|O_BINARY);
    5151        if (fd == -1) exit(1);
    5252
Note: See TracChangeset for help on using the changeset viewer.