Ignore:
Timestamp:
Nov 9, 2011, 3:53:47 PM (14 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: more high mem work

File:
1 edited

Legend:

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

    r656 r658  
    192192}
    193193
     194// OS/2 specific connect() implementation, as it only works in low mem
     195int os2_connect(int fd, const struct sockaddr *address, int address_len)
     196{
     197        struct sockaddr *addresslow;
     198        int rc;
     199        addresslow = (struct sockaddr*) _lmalloc(address_len);
     200        if (!addresslow)
     201                return -1;
     202
     203        memcpy(addresslow, address, address_len);
     204        rc = connect(fd, addresslow, address_len);
     205
     206        free(addresslow);
     207
     208        return rc;
     209}
     210
    194211/* OS/2-specific random functions. these functions used to be based on APR
    195212   random code, but we discovered some nasty problems with it on fast hardware
Note: See TracChangeset for help on using the changeset viewer.