Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #if !defined (octave_sysdir_h)
00024 #define octave_sysdir_h 1
00025
00026
00027
00028
00029
00030 #include <sys/types.h>
00031 #include <unistd.h>
00032
00033 #if defined (HAVE_DIRENT_H) || defined (_POSIX_VERSION)
00034 #include <dirent.h>
00035 #define NLENGTH(dirent) (strlen((dirent)->d_name))
00036 #else
00037 #define dirent direct
00038 #define NLENGTH(dirent) ((dirent)->d_namlen)
00039 #if defined (HAVE_SYS_NDIR_H)
00040 #include <sys/ndir.h>
00041 #endif
00042 #if defined (HAVE_SYS_DIR_H)
00043 #include <sys/dir.h>
00044 #endif
00045 #if defined (HAVE_NDIR_H)
00046 #include <ndir.h>
00047 #endif
00048 #endif
00049
00050 #endif