Handbook
Glossary
group-struct ( obj -- group/f )
Vocabulary
unix
.
groups
Inputs
obj
an
object
Outputs
group/f
a group struct or f
Word description
Returns an alien group struct to be turned into a group tuple by calling subsequent words.
Definition
IN:
unix.groups
GENERIC:
group-struct
( obj -- group/f )
Methods
USING:
kernel
math
unix
unix.ffi
unix.groups
unix.groups.private
;
M:
integer
group-struct
(group-struct)
[
[
getgrgid_r
]
unix-system-call
drop
]
keep
check-group-struct
;
USING:
kernel
strings
unix
unix.ffi
unix.groups
unix.groups.private
;
M:
string
group-struct
(group-struct)
[
[
getgrnam_r
]
unix-system-call
drop
]
keep
check-group-struct
;