|
|
1.1 root 1: .pa 1
2: .he 'STAT (II)'3/15/72'STAT (II)'
3: .ti 0
4: NAME stat -- get file status
5: .sp
6: .ti 0
7: SYNOPSIS sys stat; name; buf / stat = 18.
8: .sp
9: .ti 0
10: DESCRIPTION name____ points to a null-terminated string naming
11: a file; buf___ is the address of a 34(10) byte buffer
12: into which information is placed concerning the file.
13: It is unnecessary to have any
14: permissions at all with respect to the file, but all directories
15: leading to the file must be readable.
16: .sp
17: After stat____, buf___ has the following format:
18: .sp
19: .nf
20: buf, +1 i-number
21: .br
22: +2,+3 flags (see below)
23: .br
24: +4 number of links
25: .br
26: +5 user ID of owner
27: .br
28: +6,+7 size in bytes
29: .br
30: +8,+9 first indirect block or contents block
31: .br
32: .li
33: ...
34: .br
35: +22,+23 eighth indirect block or contents block
36: .br
37: +24,+25,+26,+27 creation time
38: .br
39: +28,+29,+30,+31 modification time
40: .br
41: +32,+33 unused
42: .fi
43: .sp
44: The flags are as follows:
45: .sp
46: .in +3
47: .nf
48: 100000 used (always on)
49: 040000 directory
50: .nf
51: 020000 file has been modified (always on)
52: .fi
53: 010000 large file
54: .br
55: 000040 set user ID
56: .br
57: 000020 executable
58: .br
59: 000010 read, owner
60: .br
61: 000004 write, owner
62: .br
63: 000002 read, non-owner
64: .br
65: 000001 write, non-owner
66: .sp
67: .in -3
68: .fi
69: .ti 0
70: SEE ALSO stat(I), fstat(II)
71: .sp
72: .ti 0
73: DIAGNOSTICS Error bit (c-bit)
74: is set if the file cannot be found.
75: .sp
76: .ti 0
77: BUGS --
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.