Handbook
Glossary
user-passwd ( obj -- passwd/f )
Vocabulary
unix
.
users
Inputs
obj
an
object
Outputs
passwd/f
passwd or f
Word description
Returns the passwd tuple given a user-name string or user id.
Definition
IN:
unix.users
GENERIC:
user-passwd
( obj -- passwd/f )
Methods
USING:
assocs
kernel
math
namespaces
unix.ffi
unix.users
;
M:
integer
user-passwd
user-cache
get
[
at
]
[
getpwuid
[
passwd>new-passwd
]
[
f
]
if*
]
if*
;
USING:
kernel
strings
unix.ffi
unix.users
;
M:
string
user-passwd
getpwnam
dup
[
passwd>new-passwd
]
when
;