| iMatix home page | << | < | > | >> |
![]() Version 1.91 |
Filename: sfldir.h
Package: Standard Function Library (SFL)
Written: 96/04/02 iMatix SFL project team sfl@imatix.com
Revised: 98/01/15
Copyright: Copyright (c) 1991-98 iMatix
The directory access functions provide a portable interface to the system's file directory structure. In general these functions are modelled around the UNIX opendir and readdir functions, but they are also similar to the DOS interface. These functions can fail on SVr4 if the <dirent.h> file does not match the C library. Recompile with the switch -D _USE_BSD_DIRENT and they should work a bit better. Tested on: MS-DOS (Turbo-C), Windows (MSVC 4.0), UNIX (Linux, IBM AIX, SunOS). OS/2 port was done by Ewen McNeill ewen@naos.co.nz.
sfldir.h defines these symbols, possibly conditionally:
Symbol: | Defined as: |
---|---|
ATTR_HIDDEN | 0x02 /* Hidden file */ |
ATTR_MASK | 0x17 /* All bits together */ |
ATTR_RDONLY | 0x01 /* Read only file */ |
ATTR_SUBDIR | 0x10 /* Subdirectory */ |
ATTR_SYSTEM | 0x04 /* System file */ |
DEFAULT_DIR | (various) |
Dirent | dirent /* We'll always refer to Dirent */ |
GID_CACHE_MAX | 10 /* Max. different gid's we cache */ |
MAXNAMLEN | (various) |
NAME_MAX | MAXNAMLEN |
UID_CACHE_MAX | 10 /* Max. different uid's we cache */ |
_SFLDIR_INCLUDED | TRUE |
stat | _stat |
Type name: | Defined as: |
---|---|
mode_t | unsigned short |
nlink_t | unsigned short |
off_t | long |
| << | < | > | >> |
![]() |