lckpwdf(3C)lckpwdf(3C)NAMElckpwdf(), ulckpwdf() - control access to the /etc/passwd and
/etc/shadow files
SYNOPSISDESCRIPTION
The and routines are used to coordinate modification access to the
password file and to the shadow password file The lock file used by
these two routines is A process first calls to gain exclusive access
rights for modification. When modifications are complete, is called to
release the lock on This mechanism prevents simultaneous modification
of the files.
RETURN VALUE
The routine returns zero upon successful completion. If the lock could
not be obtained, it returns −1 and sets to indicate the error.
The routine returns zero upon successful completion. If the lock has
already been released, returns −1 and sets to indicate the error.
FILESSEE ALSOgetpwent(3C), passwd(4), thread_safety(5).
lckpwdf(3C)