Ignore:
Timestamp:
Apr 14, 2009, 3:59:26 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Fix for Ticket #69 and #71

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/lib/util.c

    r165 r170  
    747747        if((val = sys_fcntl_long(fd, F_GETFL, 0)) == -1)
    748748                return -1;
     749#ifndef __OS2__
    749750        if(set) /* Turn blocking on - ie. clear nonblock flag */
    750751                val &= ~FLAG_TO_SET;
     
    752753                val |= FLAG_TO_SET;
    753754        return sys_fcntl_long( fd, F_SETFL, val);
     755#else
     756        if(set) /* turn blocking on - ie. clear nonblock flag */
     757                val = 0;
     758        else
     759                val = 1;
     760        return os2_ioctl(fd, FIONBIO, (char *) &val, sizeof(val));
     761#endif
     762
    754763#undef FLAG_TO_SET
    755764}
Note: See TracChangeset for help on using the changeset viewer.