pike.git / src / modules / _Stdio / efuns.c

version» Context lines:

pike.git/src/modules/_Stdio/efuns.c:32:   #ifdef HAVE_SYS_PARAM_H   #include <sys/param.h>   #endif   #include <signal.h>   #include <errno.h>      #ifdef HAVE_LIMITS_H   #include <limits.h>   #endif /* HAVE_LIMITS_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 */ -  +    #include "dmalloc.h"      #ifdef HAVE_PROCESS_H   #include <process.h>   #endif      #ifdef HAVE_SYS_XATTR_H   #include <sys/xattr.h>   #endif /* HAVE_SYS_XATTR_H */   
pike.git/src/modules/_Stdio/efuns.c:1200: Inside #if defined(__NT__)
   set_errno_from_win32_error (err);    pop_stack();    push_int (0);    return;    }    }   }      #else /* !__NT__ */    - static void low_get_dir(DIR *dir, ptrdiff_t name_max) + /* Note: Also used from file_get_dir(). */ + void low_get_dir(DIR *dir, ptrdiff_t name_max)   {    if(dir) {    struct dirent *d;    struct dirent *tmp = NULL;   #if defined(_REENTRANT) && defined(HAVE_READDIR_R)   #define FPR 1024    char buffer[MAXPATHLEN * 4];    char *ptrs[FPR];    ptrdiff_t lens[FPR];