Mercurial > hg > xemacs-beta
comparison src/sysdir.h @ 410:de805c49cfc1 r21-2-35
Import from CVS: tag r21-2-35
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:19:21 +0200 |
parents | 74fd4e045ea6 |
children | 697ef44129c6 |
comparison
equal
deleted
inserted
replaced
409:301b9ebbdf3b | 410:de805c49cfc1 |
---|---|
27 #include <unistd.h> | 27 #include <unistd.h> |
28 #endif | 28 #endif |
29 | 29 |
30 #ifdef SYSV_SYSTEM_DIR | 30 #ifdef SYSV_SYSTEM_DIR |
31 # include <dirent.h> | 31 # include <dirent.h> |
32 #elif defined (WIN32_NATIVE) | |
33 # include <direct.h> | |
34 # include "ndir.h" | |
32 #elif defined (NONSYSTEM_DIR_LIBRARY) | 35 #elif defined (NONSYSTEM_DIR_LIBRARY) |
33 # include "ndir.h" | 36 # include "ndir.h" |
34 #elif defined (MSDOS) | |
35 # include <dirent.h> | |
36 #else | 37 #else |
37 # include <sys/dir.h> | 38 # include <sys/dir.h> |
38 #endif /* not NONSYSTEM_DIR_LIBRARY */ | 39 #endif /* not NONSYSTEM_DIR_LIBRARY */ |
39 | 40 |
40 #ifdef SYSV_SYSTEM_DIR | 41 #ifdef SYSV_SYSTEM_DIR |
56 doesn't specify it -- mrb) | 57 doesn't specify it -- mrb) |
57 | 58 |
58 Since applying strlen to the name always works, we'll just do that. */ | 59 Since applying strlen to the name always works, we'll just do that. */ |
59 #define NAMLEN(p) strlen (p->d_name) | 60 #define NAMLEN(p) strlen (p->d_name) |
60 | 61 |
61 #ifdef MSDOS | |
62 #define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != 0) | |
63 #else | |
64 #define DIRENTRY_NONEMPTY(p) ((p)->d_ino) | 62 #define DIRENTRY_NONEMPTY(p) ((p)->d_ino) |
65 #endif | |
66 | 63 |
67 /* encapsulation: directory calls */ | 64 /* encapsulation: directory calls */ |
68 | 65 |
69 #ifdef ENCAPSULATE_CHDIR | 66 #ifdef ENCAPSULATE_CHDIR |
70 int sys_chdir (const char *path); | 67 int sys_chdir (const char *path); |