1SNOBOL4STAT(3) CSNOBOL4 Manual SNOBOL4STAT(3)
2
3
4
6 snobol4stat - file status interface for SNOBOL4
7
9 -INCLUDE 'stat.sno'
10
12 STAT(path) returns file status for path, following symbolic links.
13 LSTAT(path) returns file status for path, returning information on
14 symbolic links. FSTAT(fd) returns file status for the open file
15 descriptor fd. All three return a DATA() object with the following
16 members:
17
18 ST_DEV The device number containing the file.
19
20 ST_INO The file number within the device.
21
22 ST_TYPE_STR Is a STRING identifiying the file type: '-' for a
23 regular file, 'b' for a block special file (device), 'c'
24 for a character special file (device), 'd' for a
25 directory, 'l' for a symbolic link, 'p' for a named pipe
26 (FIFO), 's' for a local (Unix) domain socket, 'w' for a
27 whiteout, '?' for none of the above. (new in CSNOBOL4
28 2.1)
29
30 ST_TYPE Is an INTEGER identifiying the file type (ordinal value
31 of ST_TYPE_STR result, for backwards compatibility).
32
33 ST_MODE File "mode" (protection and type) bits.
34
35 ST_NLINK The number of (hard) links to the file.
36
37 ST_UID The owner of the file.
38
39 ST_GID The group of the file.
40
41 ST_RDEV Device id for special file.
42
43 ST_SIZE Size in bytes.
44
45 ST_BLOCKS Size in blocks.
46
47 ST_BLKSIZE Preferred block size for file I/O.
48
49 ST_ATIME Access time in seconds since January 1st, 1970.
50
51 ST_ATIMENSEC fractional access time in nanoseconds.
52
53 ST_MTIME Data modification time in seconds since January 1st,
54 1970.
55
56 ST_MTIMENSEC Fractional modification time in nanoseconds.
57
58 ST_CTIME Metadata change time in seconds since January 1st, 1970.
59
60 ST_CTIMENSEC Fractional change time in nanoseconds.
61
62 Values will be the empty string if the data is not available.
63
65 snobol4(1), stat(2), lstat(2), fstat(2)
66
68 Philip L. Budne
69
70
71
72CSNOBOL4B 2.3.1 March 31, 2022 SNOBOL4STAT(3)