Changeset 161 for branches/samba-3.0/source/lib
- Timestamp:
- Jan 21, 2009, 6:19:11 PM (17 years ago)
- Location:
- branches/samba-3.0/source/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/lib/sendfile.c
r1 r161 67 67 } while (nwritten == -1 && errno == EINTR); 68 68 if (nwritten == -1) { 69 if (errno == ENOSYS ) {69 if (errno == ENOSYS || errno == EINVAL) { 70 70 /* Ok - we're in a world of pain here. We just sent 71 71 * the header, but the sendfile failed. We have to … … 145 145 } while (nwritten == -1 && errno == EINTR); 146 146 if (nwritten == -1) { 147 if (errno == ENOSYS ) {147 if (errno == ENOSYS || errno == EINVAL) { 148 148 /* Ok - we're in a world of pain here. We just sent 149 149 * the header, but the sendfile failed. We have to -
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 } -
branches/samba-3.0/source/lib/util_sock.c
r135 r161 155 155 {"TCP_KEEPINTVL", IPPROTO_TCP, TCP_KEEPINTVL, 0, OPT_INT}, 156 156 #endif 157 #if def IPTOS_LOWDELAY157 #if defined(IPTOS_LOWDELAY) && !defined(TCPV40HDRS) 158 158 {"IPTOS_LOWDELAY", IPPROTO_IP, IP_TOS, IPTOS_LOWDELAY, OPT_ON}, 159 159 #endif 160 #if def IPTOS_THROUGHPUT160 #if defined(IPTOS_THROUGHPUT) && !defined(TCPV40HDRS) 161 161 {"IPTOS_THROUGHPUT", IPPROTO_IP, IP_TOS, IPTOS_THROUGHPUT, OPT_ON}, 162 162 #endif
Note:
See TracChangeset
for help on using the changeset viewer.