Branch: Tag:

1997-05-22

1997-05-22 16:20:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Now uses autoheader

Rev: src/modules/Gdbm/.cvsignore:1.2
Rev: src/modules/Gdbm/acconfig.h:1.1
Rev: src/modules/Gdbm/gdbm_machine.h.in:1.2(DEAD)
Rev: src/modules/Gz/.cvsignore:1.2
Rev: src/modules/Gz/acconfig.h:1.1
Rev: src/modules/Gz/zlib_machine.h.in:1.2(DEAD)
Rev: src/modules/Image/.cvsignore:1.2
Rev: src/modules/Image/acconfig.h:1.1
Rev: src/modules/Image/config.h.in:1.2(DEAD)
Rev: src/modules/Pipe/.cvsignore:1.2
Rev: src/modules/Pipe/acconfig.h:1.1
Rev: src/modules/Pipe/config.h.in:1.2(DEAD)
Rev: src/modules/Pipe/pipe.c:1.9
Rev: src/modules/files/.cvsignore:1.5
Rev: src/modules/files/acconfig.h:1.1
Rev: src/modules/files/file_machine.h.in:1.7(DEAD)
Rev: src/modules/readline/.cvsignore:1.2
Rev: src/modules/readline/acconfig.h:1.1
Rev: src/modules/readline/readline_machine.h.in:1.2(DEAD)

4:   #include <sys/types.h>   #include <sys/stat.h>    + #include <errno.h> +    #ifdef HAVE_SYS_MMAN_H   #include <sys/mman.h>   #else
20:   #include <fcntl.h>      #include "global.h" - RCSID("$Id: pipe.c,v 1.8 1997/05/19 22:51:33 hubbe Exp $"); + RCSID("$Id: pipe.c,v 1.9 1997/05/22 16:17:20 grubba Exp $");      #include "stralloc.h"   #include "pike_macros.h"
371:   static INLINE struct pike_string* gimme_some_data(unsigned long pos)   {    struct buffer *b; -  unsigned long len; +  long len;       /* We have a file cache, read from it */    if (THIS->fd!=-1)
380:    len=THIS->pos-pos;    if (len>READ_BUFFER_SIZE) len=READ_BUFFER_SIZE;    lseek(THIS->fd,pos,0); /* SEEK_SET */ -  read(THIS->fd,static_buffer,len); +  do { +  len = read(THIS->fd,static_buffer,len); +  if (len < 0) { +  if (errno != EINTR) { +  return(NULL); +  } +  } +  } while(len < 0);    return make_shared_binary_string(static_buffer,len);    }