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

version» Context lines:

pike.git/src/modules/Pipe/pipe.c:19: Inside #if defined(HAVE_MMAP)
  #ifdef HAVE_MMAP   /* sys/mman.h is _probably_ there anyway. */   #include <sys/mman.h>   #endif   #endif   #endif      #include <fcntl.h>      #include "global.h" - RCSID("$Id: pipe.c,v 1.23 1998/05/17 18:53:03 grubba Exp $"); + RCSID("$Id: pipe.c,v 1.24 1998/06/07 21:19:22 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:706: Inside #if defined(HAVE_MMAP) && defined(HAVE_MUNMAP) and #if defined(HAVE_MADVISE)
   /* NOTE:    *    * Potential race-condition with other threads    */      #ifdef HAVE_GETEUID    if((ou=geteuid()) && !getuid()) {   #ifdef HAVE_SETEUID    seteuid(0);   #else /* ! HAVE_SETEUID */ - #ifdef HAVE_SETREUID + #ifdef HAVE_SETRESUID    setresuid(-1, 0, -1);   #endif /* HAVE_SETRESUID */   #endif /* HAVE_SETEUID */    }   #endif    madvise(m, s.st_size, MADV_SEQUENTIAL);   #ifdef HAVE_GETEUID    if(ou) {   #ifdef HAVE_SETEUID    seteuid(ou);   #else /* ! HAVE_SETEUID */ - #ifdef HAVE_SETREUID + #ifdef HAVE_SETRESUID    setresuid(-1, ou, -1);   #endif /* HAVE_SETRESUID */   #endif /* HAVE_SETEUID */    }   #endif   #endif    pop_n_elems(args);    push_int(0);    return;    }