Ignore:
Timestamp:
Jun 7, 2010, 9:08:40 AM (15 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: changes from 3.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/lib/util/blocking.c

    r414 r456  
    5454        if((val = fcntl(fd, F_GETFL, 0)) == -1)
    5555                return -1;
     56#ifndef __OS2__
    5657        if(set) /* Turn blocking on - ie. clear nonblock flag */
    5758                val &= ~FLAG_TO_SET;
     
    5960                val |= FLAG_TO_SET;
    6061        return fcntl( fd, F_SETFL, val);
     62#else
     63        if(set) /* turn blocking on - ie. clear nonblock flag */
     64                val = 0;
     65        else
     66                val = 1;
     67        return os2_ioctl(fd, FIONBIO, (char *) &val, sizeof(val));
     68#endif
     69
    6170#undef FLAG_TO_SET
    6271}
Note: See TracChangeset for help on using the changeset viewer.