Branch: Tag:

1999-07-29

1999-07-29 16:47:34 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Some versions of Linux have madvise, but not MADV_SEQUENTIAL.

Rev: src/modules/Pipe/pipe.c:1.34

26:      #include <fcntl.h>    - RCSID("$Id: pipe.c,v 1.33 1999/06/19 20:25:40 hubbe Exp $"); + RCSID("$Id: pipe.c,v 1.34 1999/07/29 16:47:34 grubba Exp $");      #include "threads.h"   #include "stralloc.h"
712: Inside #if defined(HAVE_MMAP) && defined(HAVE_MUNMAP)
   i->type=I_MMAP;    i->len=s.st_size;    i->u.mmap=m; - #ifdef HAVE_MADVISE + #if defined(HAVE_MADVISE) && defined(MADV_SEQUENTIAL)    /* Mark the pages as sequential read only access... */       /* NOTE: