Handbook
Glossary
stat
Vocabulary
unix
.
stat
Definition
USING:
classes.struct
unix.time
unix.types
;
IN:
unix.stat
STRUCT:
stat
{
st_dev
dev_t
initial:
0
}
{
st_mode
mode_t
initial:
0
}
{
st_nlink
nlink_t
initial:
0
}
{
st_ino
ino64_t
initial:
0
}
{
st_uid
uid_t
initial:
0
}
{
st_gid
gid_t
initial:
0
}
{
st_rdev
dev_t
initial:
0
}
{
st_atimespec
timespec
initial:
S{
timespec
{
sec 0
}
{
nsec 0
}
}
}
{
st_mtimespec
timespec
initial:
S{
timespec
{
sec 0
}
{
nsec 0
}
}
}
{
st_ctimespec
timespec
initial:
S{
timespec
{
sec 0
}
{
nsec 0
}
}
}
{
st_birthtimespec
timespec
initial:
S{
timespec
{
sec 0
}
{
nsec 0
}
}
}
{
st_size
off_t
initial:
0
}
{
st_blocks
blkcnt_t
initial:
0
}
{
st_blksize
blksize_t
initial:
0
}
{
st_flags
__uint32_t
initial:
0
}
{
st_gen
__uint32_t
initial:
0
}
{
st_lspare
__int32_t
initial:
0
}
{
st_qspare0
__int64_t
initial:
0
}
{
st_qspare1
__int64_t
initial:
0
}
;
Methods
USING:
classes.struct
classes.struct.private
kernel
unix.stat
;
M:
stat
clone
clone-underlying
\
stat
memory>struct
;
inline
USING:
accessors
classes.struct
combinators.smart
unix.stat
;
M:
stat
struct-slot-values
{
[
st_dev>>
]
[
st_mode>>
]
[
st_nlink>>
]
[
st_ino>>
]
[
st_uid>>
]
[
st_gid>>
]
[
st_rdev>>
]
[
st_atimespec>>
]
[
st_mtimespec>>
]
[
st_ctimespec>>
]
[
st_birthtimespec>>
]
[
st_size>>
]
[
st_blocks>>
]
[
st_blksize>>
]
[
st_flags>>
]
[
st_gen>>
]
[
st_lspare>>
]
[
st_qspare0>>
]
[
st_qspare1>>
]
}
cleave>array
;
inline