00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #if !defined (octave_statdefs_h)
00025 #define octave_statdefs_h 1
00026
00027 #ifdef HAVE_SYS_TYPES_H
00028 #include <sys/types.h>
00029 #endif
00030
00031 #ifdef HAVE_SYS_STAT_H
00032 #include <sys/stat.h>
00033 #endif
00034
00035 #ifndef S_ISREG
00036 #ifndef mode_t
00037 #define mode_t unsigned short
00038 #endif
00039 #endif
00040 #if !defined(S_ISBLK) && defined(S_IFBLK)
00041 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
00042 #endif
00043 #if !defined(S_ISCHR) && defined(S_IFCHR)
00044 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
00045 #endif
00046 #if !defined(S_ISDIR) && defined(S_IFDIR)
00047 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
00048 #endif
00049 #if !defined(S_ISREG) && defined(S_IFREG)
00050 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
00051 #endif
00052 #if !defined(S_ISFIFO) && defined(S_IFIFO)
00053 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
00054 #endif
00055 #if !defined(S_ISLNK) && defined(S_IFLNK)
00056 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
00057 #endif
00058 #if !defined(S_ISSOCK) && defined(S_IFSOCK)
00059 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
00060 #endif
00061 #if !defined(S_ISMPB) && defined(S_IFMPB)
00062 #define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB)
00063 #define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC)
00064 #endif
00065 #if !defined(S_ISNWK) && defined(S_IFNWK)
00066 #define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK)
00067 #endif
00068
00069 #ifndef S_ISLNK
00070 #undef HAVE_LSTAT
00071 #endif
00072
00073 #endif
00074
00075
00076
00077
00078
00079