Ignore:
Timestamp:
Apr 23, 2012, 8:01:39 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.3: made it high-mem aware

Location:
branches/samba-3.3.x/source/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/lib/os2helper.c

    r673 r699  
    4040#include <types.h>
    4141#include <string.h>
     42#include <sys/socket.h>
    4243//YD for tmalloc
    4344#include <malloc.h>
     
    177178}
    178179*/
     180
     181/* OS/2 specific pipe implementation, we have to use socketpair as select on
     182filehandle is not working. */
     183int os2_pipe(int fds[2])
     184{
     185        int rc = 0;
     186
     187        rc = socketpair(AF_UNIX, SOCK_STREAM, 0, fds);
     188        return rc;
     189}
     190
    179191/* OS/2-specific random functions. these functions used to be based on APR
    180192   random code, but we discovered some nasty problems with it on fast hardware
  • branches/samba-3.3.x/source/lib/select.c

    r578 r699  
    2828   This means all Samba signal handlers should call sys_select_signal().
    2929*/
     30#ifdef __OS2__
     31#define pipe(A) os2_pipe(A)
     32#endif
    3033
    3134static pid_t initialised;
     
    5962
    6063        if (initialised != sys_getpid()) {
    61 #ifndef __OS2__
    6264                if (pipe(select_pipe) == -1)
    63 #else
    64                 if (socketpair(AF_UNIX, SOCK_STREAM,0, select_pipe) == -1)
    65 #endif
    6665                        smb_panic("Could not create select pipe");
    6766
Note: See TracChangeset for help on using the changeset viewer.