9 #include "misc-fnmatch.h"
15 #include "misc-glob.h"
23 #define S_ISLNK(mode) ((mode) & S_IFLNK)
27 #define S_ISSOCK(mode) ((mode) & S_IFSOCK)
35 char *realpath(const char *path, char resolved_path []);
39 #include <sys/stdtypes.h>
40 extern time_t timezone;
44 #include <sys/stdtypes.h>
45 #define realloc(ptr,size) myrealloc(ptr,size)
46 extern void *myrealloc(void *, size_t);
50 #include <sys/socket.h>
58 #include <sys/select.h>
65 #if HAVE_MNTENT_H || !(HAVE_GETMNTENT) || HAVE_STRUCT_MNTTAB
66 # if HAVE_MNTENT_H || HAVE_STRUCT_MNTTAB
68 # define our_mntent struct mntent
69 # define our_mntdir mnt_dir
75 struct our_mntent *getmntent(FILE *filep);
76 # define our_mntent struct our_mntent
78 # define GETMNTENT_ONE 1
79 # define GETMNTENT_TWO 0
80 #elif HAVE_SYS_MNTTAB_H
82 # include <sys/mnttab.h>
83 # define GETMNTENT_ONE 0
84 # define GETMNTENT_TWO 1
85 # define our_mntent struct mnttab
86 # define our_mntdir mnt_mountp
89 # error Neither mntent.h, mnttab.h, or mntctl() exists. I cannot build on this system.
93 #define MOUNTED "/etc/mnttab"