Ignore:
Timestamp:
Jan 21, 2009, 6:19:11 PM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.34

Location:
branches/samba-3.0/source/lib
Files:
3 edited

Legend:

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

    r1 r161  
    6767                } while (nwritten == -1 && errno == EINTR);
    6868                if (nwritten == -1) {
    69                         if (errno == ENOSYS) {
     69                        if (errno == ENOSYS || errno == EINVAL) {
    7070                                /* Ok - we're in a world of pain here. We just sent
    7171                                 * the header, but the sendfile failed. We have to
     
    145145                } while (nwritten == -1 && errno == EINTR);
    146146                if (nwritten == -1) {
    147                         if (errno == ENOSYS) {
     147                        if (errno == ENOSYS || errno == EINVAL) {
    148148                                /* Ok - we're in a world of pain here. We just sent
    149149                                 * the header, but the sendfile failed. We have to
  • branches/samba-3.0/source/lib/system.c

    r140 r161  
    123123{
    124124        ssize_t ret;
    125 
     125DEBUG(0,("sys_read - count = %d\n",count));
    126126        do {
    127127                ret = read(fd, buf, count);
    128 #ifndef __OS2__
     128#ifndef __OS2__x
    129129        } while (ret == -1 && errno == EINTR);
    130130#else
     
    132132        } while (ret == -1 && ((errno == EINTR)||(errno == EAGAIN)));
    133133#endif
    134 
     134        if (errno == EAGAIN)
     135                DEBUG(0,("sys_read - EAGAIN returned - count = %d\n",count));
    135136        return ret;
    136137}
     
    143144{
    144145        ssize_t ret;
    145 
     146DEBUG(0,("sys_write - count = %d\n",count));
    146147        do {
    147148                ret = write(fd, buf, count);
    148 #ifndef __OS2__
     149#ifndef __OS2__x
    149150        } while (ret == -1 && errno == EINTR);
    150151#else
     
    152153        } while (ret == -1 && ((errno == EINTR)||(errno == EAGAIN)));
    153154#endif
     155        if (errno == EAGAIN)
     156                DEBUG(0,("sys_write - EAGAIN returned - count = %d\n",count));
    154157        return ret;
    155158}
  • branches/samba-3.0/source/lib/util_sock.c

    r135 r161  
    155155  {"TCP_KEEPINTVL",     IPPROTO_TCP,   TCP_KEEPINTVL,   0,                 OPT_INT},
    156156#endif
    157 #ifdef IPTOS_LOWDELAY
     157#if defined(IPTOS_LOWDELAY) && !defined(TCPV40HDRS)
    158158  {"IPTOS_LOWDELAY",    IPPROTO_IP,    IP_TOS,          IPTOS_LOWDELAY,    OPT_ON},
    159159#endif
    160 #ifdef IPTOS_THROUGHPUT
     160#if defined(IPTOS_THROUGHPUT) && !defined(TCPV40HDRS)
    161161  {"IPTOS_THROUGHPUT",  IPPROTO_IP,    IP_TOS,          IPTOS_THROUGHPUT,  OPT_ON},
    162162#endif
Note: See TracChangeset for help on using the changeset viewer.