Changeset 980 for trunk/server/lib


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

Location:
trunk/server/lib
Files:
2 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
  • trunk/server/lib/util/util_file.c

    r901 r980  
    227227#ifdef HAVE_MMAP
    228228        int fd;
     229#ifdef __OS2__
     230        fd = open(fname, O_RDONLY | O_BINARY, 0);
     231#else
    229232        fd = open(fname, O_RDONLY, 0);
     233#endif
    230234        if (fd == -1) {
    231235                DEBUG(2,("Failed to load %s - %s\n", fname, strerror(errno)));
Note: See TracChangeset for help on using the changeset viewer.