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

version» Context lines:

pike.git/src/modules/Pipe/pipe.c:19: Inside #if defined(HAVE_MMAP)
  #else   #ifdef HAVE_MMAP   /* sys/mman.h is _probably_ there anyway. */   #include <sys/mman.h>   #endif   #endif   #endif      #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"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "error.h"   #include "builtin_functions.h"
pike.git/src/modules/Pipe/pipe.c:705: Inside #if defined(HAVE_MMAP) && defined(HAVE_MUNMAP)
   MAP_FILE|MAP_SHARED,fd,filep))!=-1))    {   #ifdef HAVE_GETEUID    int ou = 0;   #endif    mmapped += s.st_size;       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:    *    * Potential race-condition with other threads    */      #ifdef HAVE_GETEUID    if((ou=geteuid()) && !getuid()) {   #ifdef HAVE_SETEUID