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

Samba Server 3.5: more high mem work

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

    r656 r658  
    6666
    6767        if (initialised != sys_getpid()) {
    68 #ifndef __OS2__
    6968                if (pipe(select_pipe) == -1)
    70 #else
    71                 if (socketpair(AF_UNIX, SOCK_STREAM,0, select_pipe) == -1)
    72 #endif
    7369                {
    7470                        DEBUG(0, ("sys_select: pipe failed (%s)\n",
Note: See TracChangeset for help on using the changeset viewer.