Handbook
Glossary
passwd>new-passwd ( passwd -- new-passwd )
Vocabulary
unix
.
users
Inputs
passwd
a passwd struct
Outputs
new-passwd
a passwd tuple
Word description
A platform-specific conversion routine from a passwd structure to a passwd tuple.
Definition
USING:
system
;
IN:
unix.users
HOOK:
passwd>new-passwd
os
( passwd -- new-passwd )
Methods
USING:
accessors
combinators
generic
kernel
system
unix.users
;
M:
macos
passwd>new-passwd
[
M\
macos
passwd>new-passwd
(call-next-method)
]
keep
{
[
pw_change>>
>>change
]
[
pw_class>>
>>class
]
[
pw_shell>>
>>shell
]
[
pw_expire>>
>>expire
]
[
pw_fields>>
>>fields
]
}
cleave
;
USING:
accessors
combinators
kernel
system
unix.users
;
M:
unix
passwd>new-passwd
[
new-passwd
]
dip
{
[
pw_name>>
>>user-name
]
[
pw_passwd>>
>>password
]
[
pw_uid>>
>>uid
]
[
pw_gid>>
>>gid
]
[
pw_gecos>>
>>gecos
]
[
pw_dir>>
>>dir
]
[
pw_shell>>
>>shell
]
}
cleave
;