Ignore:
Timestamp:
Nov 8, 2011, 1:28:52 PM (14 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: some work to get high-mem working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/lib/os2helper.c

    r646 r655  
    1818#include <types.h>
    1919#include <string.h>
     20#include <sys/socket.h>
    2021//YD for tmalloc
    2122#include <malloc.h>
     
    156157}
    157158*/
     159// OS/2 specific socketpair() implementation, as it only works in low mem
     160int os2_socketpair(int fds[2])
     161{
     162        int mypair[2];
     163        int rc = 0;
     164
     165        rc = socketpair(AF_UNIX, SOCK_STREAM, 0, mypair);
     166        if (rc >= 0) {
     167                fds[0] = mypair[0];
     168                fds[1] = mypair[1];
     169        }
     170
     171        return rc;
     172}
     173
    158174/* OS/2-specific random functions. these functions used to be based on APR
    159175   random code, but we discovered some nasty problems with it on fast hardware
Note: See TracChangeset for help on using the changeset viewer.