Changeset 1214 for trunk/src/kash/shfile.h
- Timestamp:
- Oct 7, 2007, 10:39:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/shfile.h
r1213 r1214 25 25 */ 26 26 27 #ifndef ___shfile_h ___28 #define ___shfile_h ___27 #ifndef ___shfile_h 28 #define ___shfile_h 29 29 30 30 #include "shtypes.h" 31 31 #include <fcntl.h> 32 32 #include <sys/stat.h> 33 #ifdef _MSC_VER 34 # define _PATH_DEVNULL "nul" 35 # define _PATH_DEFPATH "." 36 #else 37 # if !defined(__sun__) 38 # include <paths.h> 39 # endif 40 # ifdef _PATH_DEVNULL 41 # define _PATH_DEVNULL "/dev/null" 42 # endif 43 # ifndef _PATH_DEFPATH 44 # define _PATH_DEFPATH "/bin:/usr/bin:/sbin:/usr/sbin" 45 # endif 46 #endif 33 47 #ifndef _MSC_VER 34 48 # include <sys/fcntl.h> … … 75 89 # define W_OK 2 76 90 # define R_OK 4 91 92 # define O_NONBLOCK 0 /// @todo 77 93 78 94 #endif … … 129 145 #endif 130 146 147 typedef struct sh_dirent 148 { 149 char name[260]; 150 } shdirent; 151 152 typedef struct shdir 153 { 154 shfdtab *shfdtab; 155 void *native; 156 shdirent ent; 157 } shdir; 158 159 shdir *shfile_opendir(shfdtab *, const char *); 160 shdirent *shfile_readdir(struct shdir *); 161 void shfile_closedir(struct shdir *); 162 131 163 #endif 132 164
Note:
See TracChangeset
for help on using the changeset viewer.