pike.git / src / modules / _Stdio / file.h

version» Context lines:

pike.git/src/modules/_Stdio/file.h:9: Inside #if defined(HAVE_NETINET_IN_H)
     #ifdef HAVE_NETINET_IN_H   #include <netinet/in.h>   #endif      #ifdef HAVE_ARPA_INET_H   #ifndef ARPA_INET_H   #include <arpa/inet.h>   #define ARPA_INET_H    + #ifdef HAVE_DIRENT_H + # include <dirent.h> + # define NAMLEN(dirent) strlen((dirent)->d_name) + #else + # ifdef HAVE_SYS_NDIR_H + # include <sys/ndir.h> + # define dirent direct + # define NAMLEN(dirent) (dirent)->d_namlen + # else /* !HAVE_SYS_NDIR_H */ + # ifdef HAVE_SYS_DIR_H + # include <sys/dir.h> + # define dirent direct + # define NAMLEN(dirent) (dirent)->d_namlen + # else /* !HAVE_SYS_DIR_H */ + # ifdef HAVE_NDIR_H + # include <ndir.h> + # define dirent direct + # define NAMLEN(dirent) (dirent)->d_namlen + # else /* !HAVE_NDIR_H */ + # ifdef HAVE_DIRECT_H + # include <direct.h> + # define NAMLEN(dirent) strlen((dirent)->d_name) + # endif /* HAVE_DIRECT_H */ + # endif /* HAVE_NDIR_H */ + # endif /* HAVE_SYS_DIR_H */ + # endif /* HAVE_SYS_NDIR_H */ + #endif /* HAVE_DIRENT_H */ +    /* Stupid patch to avoid trouble with Linux includes... */   #ifdef LITTLE_ENDIAN   #undef LITTLE_ENDIAN   #endif      #endif   #endif      #include "pike_netlib.h"   #include "backend.h"
pike.git/src/modules/_Stdio/file.h:144:   int socketpair_ultra(int family, int type, int protocol, int sv[2]);   struct new_thread_data;   void file_proxy(INT32 args);   PMOD_EXPORT void create_proxy_pipe(struct object *o, int for_reading);   struct file_lock_key_storage;   void mark_ids(struct callback *foo, void *bar, void *gazonk);   PMOD_EXPORT int pike_make_pipe(int *fds);   PMOD_EXPORT int fd_from_object(struct object *o);   void f_strerror(INT32 args);   void push_stat(PIKE_STAT_T *s); +  + #ifndef __NT__ + void low_get_dir(DIR *dir, ptrdiff_t name_max); + #endif   /* Prototypes end here */      /* Defined by winnt.h */   #ifdef FILE_CREATE   #undef FILE_CREATE   #endif      /* open_mode    *    * Note: The lowest 8 bits are reserved for the fd_* (aka PROP_*)