Ignore:
Timestamp:
Apr 23, 2012, 7:29:26 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: some high-mem workarounds removed

File:
1 edited

Legend:

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

    r672 r698  
    180180*/
    181181
    182 // OS/2 specific pipe implementation, we have to use socketpair as select on filehandle is not working
    183 // and we have to use local variables to be sure we use low mem, as socketpair doesn't work in high mem
     182/* OS/2 specific pipe implementation, we have to use socketpair as select on
     183filehandle is not working. */
    184184int os2_pipe(int fds[2])
    185185{
    186         int mypair[2];
    187186        int rc = 0;
    188187
    189         rc = socketpair(AF_UNIX, SOCK_STREAM, 0, mypair);
    190         if (rc >= 0) {
    191                 fds[0] = mypair[0];
    192                 fds[1] = mypair[1];
    193         }
    194 
     188        rc = socketpair(AF_UNIX, SOCK_STREAM, 0, fds);
    195189        return rc;
    196190}
    197191
     192#if 0
    198193// OS/2 specific connect() implementation, as it only works in low mem
    199194int os2_connect(int fd, const struct sockaddr *address, int address_len)
     
    212207        return rc;
    213208}
     209#endif
    214210
    215211/* OS/2-specific random functions. these functions used to be based on APR
Note: See TracChangeset for help on using the changeset viewer.