3 * \brief Header: fs compatibility definitions
6 /* Include file to use opendir/closedir/readdir */
11 #include <sys/types.h>
16 /* Replacement for permission bits missing in sys/stat.h */
22 # define S_ISSOCK(x) 0
26 # define S_ISFIFO(x) 0
37 /* Door is something that only exists on Solaris */
39 # define S_ISDOOR(x) 0
42 /* Special named files are widely used in QNX6 */
49 # define MC_MAXPATHLEN 4096
51 # define MC_MAXPATHLEN MAXPATHLEN
54 /* unistd.h defines _POSIX_VERSION on POSIX.1 systems. */
56 #define NLENGTH(dirent) (strlen ((dirent)->d_name))
57 #define DIRENT_LENGTH_COMPUTED 1
60 # define MC_MAXFILENAMELEN 256
62 # define MC_MAXFILENAMELEN MAXNAMLEN
66 compute_namelen (struct dirent
*dent
__attribute__ ((unused
)))
68 #ifdef DIRENT_LENGTH_COMPUTED
71 dent
->d_namlen
= strlen (dent
);