Changeset 170 for branches/samba-3.0/source/lib/util.c
- Timestamp:
- Apr 14, 2009, 3:59:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/lib/util.c
r165 r170 747 747 if((val = sys_fcntl_long(fd, F_GETFL, 0)) == -1) 748 748 return -1; 749 #ifndef __OS2__ 749 750 if(set) /* Turn blocking on - ie. clear nonblock flag */ 750 751 val &= ~FLAG_TO_SET; … … 752 753 val |= FLAG_TO_SET; 753 754 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 754 763 #undef FLAG_TO_SET 755 764 }
Note:
See TracChangeset
for help on using the changeset viewer.