1DIR(5) File Formats Manual DIR(5)
2
3
4
6 dir - format of directories
7
9 #include <sys/dir.h>
10
12 A directory behaves exactly like an ordinary file, save that no user
13 may write into a directory. The fact that a file is a directory is
14 indicated by a bit in the flag word of its i-node entry see, filsys(5).
15 The structure of a directory entry as given in the include file is:
16
17 /* Copyright (C) 1991, 1996 Free Software Foundation, Inc.
18 This file is part of the GNU C Library.
19
20 The GNU C Library is free software; you can redistribute it and/or
21 modify it under the terms of the GNU Lesser General Public
22 License as published by the Free Software Foundation; either
23 version 2.1 of the License, or (at your option) any later version.
24
25 The GNU C Library is distributed in the hope that it will be useful,
26 but WITHOUT ANY WARRANTY; without even the implied warranty of
27 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 Lesser General Public License for more details.
29
30 You should have received a copy of the GNU Lesser General Public
31 License along with the GNU C Library; if not, see
32 <http://www.gnu.org/licenses/>. */
33
34 #ifndef _SYS_DIR_H
35 #define _SYS_DIR_H1
36
37 #include <features.h>
38
39 #include <dirent.h>
40
41 #define directdirent
42
43 #endif /* sys/dir.h */
44
45 By convention, the first two entries in each directory are for `.' and
46 `..'. The first is an entry for the directory itself. The second is
47 for the parent directory. The meaning of `..' is modified for the root
48 directory of the master file system and for the root directories of
49 removable file systems. In the first case, there is no parent, and in
50 the second, the system does not permit off-device references. Thereā
51 fore in both cases `..' has the same meaning as `.'.
52
54 filsys(5)
55
56
57
58 DIR(5)