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

version» Context lines:

pike.git/src/modules/Pipe/pipe.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: pipe.c,v 1.59 2004/10/07 22:49:58 nilsson Exp $ + || $Id: pipe.c,v 1.60 2005/04/09 09:58:45 grubba Exp $   */      #include "global.h"   #include "config.h" - #include "machine.h" +    #include "module.h" -  + #include "threads.h" + #include "stralloc.h" + #include "pike_macros.h" + #include "object.h" + #include "constants.h" + #include "interpret.h" + #include "svalue.h" + #include "pike_error.h" + #include "builtin_functions.h" + #include "fdlib.h"      #include <sys/types.h>   #include <sys/stat.h>      #ifdef HAVE_SYS_FILE_H   #include <sys/file.h>   #endif /* HAVE_SYS_FILE_H */      #include <errno.h>    -  + /* Some <sys/mman.h>'s (eg AIX 5L/ia64) contain a #define of MAP_VARIABLE +  * for use as the opposite of MAP_FIXED. +  * +  * "program.h" above has a conflicting definition of MAP_VARIABLE. +  */ + #undef MAP_VARIABLE +    #ifdef HAVE_SYS_MMAN_H   #include <sys/mman.h>   #else   #ifdef HAVE_LINUX_MMAN_H   #include <linux/mman.h>   #else   #ifdef HAVE_MMAP   /* sys/mman.h is _probably_ there anyway. */   #include <sys/mman.h>   #endif   #endif   #endif      #ifdef HAVE_SYS_ID_H   #include <sys/id.h>   #endif /* HAVE_SYS_ID_H */      #include <fcntl.h>    - #include "threads.h" - #include "stralloc.h" - #include "pike_macros.h" - #include "object.h" - #include "constants.h" - #include "interpret.h" - #include "svalue.h" - #include "pike_error.h" - #include "builtin_functions.h" - #include "fdlib.h" +       #ifndef S_ISREG   #ifdef S_IFREG   #define S_ISREG(mode) (((mode) & (S_IFMT)) == (S_IFREG))   #else   #define S_ISREG(mode) (((mode) & (_S_IFMT)) == (_S_IFREG))   #endif   #endif