Ignore:
Timestamp:
Jun 1, 2009, 11:25:53 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Fixes for #69 and #71 (by diver) in 3.3 branch

File:
1 edited

Legend:

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

    r206 r248  
    950950        if((val = sys_fcntl_long(fd, F_GETFL, 0)) == -1)
    951951                return -1;
     952#ifndef __OS2__
    952953        if(set) /* Turn blocking on - ie. clear nonblock flag */
    953954                val &= ~FLAG_TO_SET;
     
    955956                val |= FLAG_TO_SET;
    956957        return sys_fcntl_long( fd, F_SETFL, val);
     958#else
     959        if(set) /* turn blocking on - ie. clear nonblock flag */
     960                val = 0;
     961        else
     962                val = 1;
     963        return os2_ioctl(fd, FIONBIO, (char *) &val, sizeof(val));
     964#endif
     965
    957966#undef FLAG_TO_SET
    958967}
Note: See TracChangeset for help on using the changeset viewer.