blob: 3d7e2c8a920f12ce273d53cf1c261a9a9da5df61 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001#ifndef LPC_FILES_H_
2#define LPC_FILES_H_ 1
3
4/* Definitions and macros for the various file efuns */
5
6/* Special return values of file_size() and the size part of get_dir().
7 */
8
9#define FSIZE_NOFILE -1 /* File doesn't exist or is not readable */
10#define FSIZE_DIR -2 /* The file is actually a directory */
11
12
13/* Flag values for get_dir().
14 */
15
16#define GETDIR_EMPTY (0) /* return an empty array (not very useful) */
17#define GETDIR_NAMES (0x01) /* return the filenames */
18#define GETDIR_SIZES (0x02) /* return the file sizes */
19#define GETDIR_DATES (0x04) /* return the dates of last modification */
20/* (0x08) unused */
21#define GETDIR_ACCESS (0x40) /* return the dates of last access */
22#define GETDIR_MODES (0x80) /* return the file mode */
23
24#define GETDIR_PATH (0x10) /* with _NAMES: add the path to the filenames */
25#define GETDIR_UNSORTED (0x20) /* return the results unsorted */
26
27#define GETDIR_ALL (0xDF) /* return all */
28
29#endif /* LPC_FILES_H_ */