1: /* @(#)ndir.h 1.4 4/16/85 */
2: #ifndef DEV_BSIZE
3: #define DEV_BSIZE 512
4: #endif
5: #define DIRBLKSIZ DEV_BSIZE
6: #define MAXNAMLEN 255
7:
8: struct direct {
9: long d_ino; /* inode number of entry */
10: short d_reclen; /* length of this record */
11: short d_namlen; /* length of string in d_name */
12: char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */
13: };
14:
15: /*
16: * The DIRSIZ macro gives the minimum record length which will hold
17: * the directory entry. This requires the amount of space in struct direct
18: * without the d_name field, plus enough space for the name with a terminating
19: * null byte (dp->d_namlen+1), rounded up to a 4 byte boundary.
20: */
21:
22: #ifdef DIRSIZ
23: #undef DIRSIZ
24: #endif /* DIRSIZ */
25: #define DIRSIZ(dp) \
26: ((sizeof (struct direct) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
27:
28: /*
29: * Definitions for library routines operating on directories.
30: */
31: typedef struct _dirdesc {
32: int dd_fd;
33: long dd_loc;
34: long dd_size;
35: char dd_buf[DIRBLKSIZ];
36: } DIR;
37: #ifndef NULL
38: #define NULL 0
39: #endif
40: extern DIR *opendir();
41: extern struct direct *readdir();
42: extern void closedir();
Defined struct's
direct
defined in line
8; used 12 times
Defined typedef's
DIR
defined in line
36; used 10 times
Defined macros
NULL
defined in line
38; used 111 times
- in line 37
- in /usr/src/new/news/src/expire.c line
100-102(2),
118-122(2),
145,
297,
307-323(8),
333,
339,
345-348(2),
436,
442,
450,
463,
510,
525-526(2),
533,
555-561(3),
567-572(2),
632-633(2),
641,
706,
730,
748,
803-807(2),
955,
995,
1001
- in /usr/src/new/news/src/ndir.c line
27-30(3),
72
- in /usr/src/new/news/src/readr.c line
128,
191,
439,
509,
731,
763-767(2),
832,
906,
930,
1038,
1054,
1060,
1084
- in /usr/src/new/news/src/visual.c line
180,
194,
214,
689,
697,
729,
749-750(2),
766-771(3),
777-781(2),
856-861(2),
899,
920-922(2),
933,
957-960(2),
972,
991,
1015-1020(2),
1121,
1129,
1135,
1158,
1191,
1205-1209(2),
1292,
1324-1329(3),
1348,
1375,
1421-1423(2),
1448,
1593,
1639-1642(2),
1727,
1939,
1968-1972(2),
2463,
2472
Usage of this include