|
|
1.1 root 1: #ifndef _CPIO_
2: #define _CPIO_
3:
4: typedef struct _CPIO_HEAD {
5: char c_magic[6];
6: char c_dev[6];
7: char c_ino[6];
8: char c_mode[6];
9: char c_uid[6];
10: char c_gid[6];
11: char c_nlink[6];
12: char c_rdev[6];
13: char c_mtime[11];
14: char c_namesize[6];
15: char c_filesize[11];
16: } CPIO_HEAD, *PCPIO_HEAD;
17:
18: #define MAGIC "070707"
19: #define LASTFILENAME "TRAILER!!!"
20:
21: //
22: // File permissions, for c_mode
23: //
24: #define C_IRUSR 000400
25: #define C_IWUSR 000200
26: #define C_IXUSR 000100
27: #define C_IRGRP 000040
28: #define C_IWGRP 000020
29: #define C_IXGRP 000010
30: #define C_IROTH 000004
31: #define C_IWOTH 000002
32: #define C_IXOTH 000001
33:
34: #define C_ISUID 004000
35: #define C_ISGID 002000
36: #define C_ISVTX 001000
37:
38: //
39: // File type, also in c_mode
40: //
41: #define C_ISDIR 040000
42: #define C_ISFIFO 010000
43: #define C_ISREG 0100000
44: #define C_ISBLK 060000
45: #define C_ISCHR 020000
46: #define C_ISCTG 0110000
47: #define C_ISLNK 0120000
48: #define C_ISSOCK 0140000
49:
50: #endif // _CPIO_
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.