Posix.SysDB
structureThe Posix.SysDB structure implements operations on the user database and the group database (in POSIX parlance, the password file and the group file). These are the data and operations described in Section 9 of the POSIX standard [CITE]1003.1,1996/.
signature POSIX_SYS_DB
structure SysDB
: POSIX_SYS_DB
eqtype uid
eqtype gid
structure Passwd : sig
type passwd
val name : passwd -> string
val uid : passwd -> uid
val gid : passwd -> gid
val home : passwd -> string
val shell : passwd -> string
end
structure Group : sig
type group
val name : group -> string
val gid : group -> gid
val members : group -> string list
end
val getgrgid : gid -> Group.group
val getgrnam : string -> Group.group
val getpwuid : uid -> Passwd.passwd
val getpwnam : string -> Passwd.passwd
eqtype uid
eqtype gid
structure Passwd
type passwd
name pa
pw_name
field).
uid pa
pw_uid
field).
gid pa
pw_gid
field).
home pa
pw_dir
field).
shell pa
pw_shell
field).
structure Group
type group
name gr
gr_name
field).
gid gr
gr_gid
field).
members gr
gr_mem
field).
getgrgid gid
getgrnam s
getpwuid uid
getpwnam s
Posix
Last Modified April 11, 1996
Comments to John Reppy.
Copyright © 1997 Bell Labs, Lucent Technologies