Changeset 161 for branches/samba-3.0/source/lib/system.c
- Timestamp:
- Jan 21, 2009, 6:19:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/lib/system.c
r140 r161 123 123 { 124 124 ssize_t ret; 125 125 DEBUG(0,("sys_read - count = %d\n",count)); 126 126 do { 127 127 ret = read(fd, buf, count); 128 #ifndef __OS2__ 128 #ifndef __OS2__x 129 129 } while (ret == -1 && errno == EINTR); 130 130 #else … … 132 132 } while (ret == -1 && ((errno == EINTR)||(errno == EAGAIN))); 133 133 #endif 134 134 if (errno == EAGAIN) 135 DEBUG(0,("sys_read - EAGAIN returned - count = %d\n",count)); 135 136 return ret; 136 137 } … … 143 144 { 144 145 ssize_t ret; 145 146 DEBUG(0,("sys_write - count = %d\n",count)); 146 147 do { 147 148 ret = write(fd, buf, count); 148 #ifndef __OS2__ 149 #ifndef __OS2__x 149 150 } while (ret == -1 && errno == EINTR); 150 151 #else … … 152 153 } while (ret == -1 && ((errno == EINTR)||(errno == EAGAIN))); 153 154 #endif 155 if (errno == EAGAIN) 156 DEBUG(0,("sys_write - EAGAIN returned - count = %d\n",count)); 154 157 return ret; 155 158 }
Note:
See TracChangeset
for help on using the changeset viewer.