pike.git / src / modules / Pipe / pipe.c

version» Context lines:

pike.git/src/modules/Pipe/pipe.c:23:   #endif   #endif   #endif      #ifdef HAVE_SYS_ID_H   #include <sys/id.h>   #endif /* HAVE_SYS_ID_H */      #include <fcntl.h>    - RCSID("$Id: pipe.c,v 1.46 2001/09/24 11:58:28 grubba Exp $"); + RCSID("$Id: pipe.c,v 1.47 2002/02/05 19:08:57 mast Exp $");      #include "threads.h"   #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "pike_error.h"   #include "builtin_functions.h"
pike.git/src/modules/Pipe/pipe.c:465:    fd_lseek(this->fd, pos, SEEK_SET);    THREADS_DISALLOW();    do {    THREADS_ALLOW();    len = fd_read(this->fd, buffer, len);    THREADS_DISALLOW();    if (len < 0) {    if (errno != EINTR) {    return(NULL);    } +  check_threads_etc();    }    } while(len < 0);    /*    * FIXME: What if len is 0?    */    return make_shared_binary_string(buffer,len);    }       if (pos<this->pos)    return make_shared_string("buffer underflow"); /* shit */