Branch: Tag:

1997-05-07

1997-05-07 23:07:26 by Per Hedbor <ph@opera.com>

Patches..

Rev: src/modules/Image/togif.c:1.10
Rev: src/modules/Image/x.c:1.8
Rev: src/modules/Pipe/pipe.c:1.7
Rev: src/modules/spider/Makefile.in:1.12
Rev: src/modules/spider/spider.c:1.31
Rev: tutorial/tutorial.wmml:1.6

20:   #include <fcntl.h>      #include "global.h" - RCSID("$Id: pipe.c,v 1.6 1997/04/16 03:11:06 hubbe Exp $"); + RCSID("$Id: pipe.c,v 1.7 1997/05/07 23:07:17 per Exp $");      #include "stralloc.h"   #include "types.h"
592: Inside #if defined(HAVE_MMAP) && defined(HAVE_MUNMAP)
      if (fd != -1 && fstat(fd,&s)==0)    { +  int filep=lseek(fd, 0L, SEEK_CUR); /* keep the file pointer */    if(S_ISREG(s.st_mode) /* regular file */ -  && ((long)(m=(char *)mmap(0,s.st_size,PROT_READ, -  MAP_FILE|MAP_SHARED,fd,0))!=-1)) +  && ((long)(m=(char *)mmap(0,s.st_size - filep,PROT_READ, +  MAP_FILE|MAP_SHARED,fd,filep))!=-1))    {    mmapped += s.st_size;