Staging
v0.5.1
https://github.com/python/cpython
Revision c5a39034727cc193f891c5a75475dab550c9feac authored by Guido van Rossum on 31 July 1996, 17:35:03 UTC, committed by Guido van Rossum on 31 July 1996, 17:35:03 UTC
- Improved version of NeXT patching of $OPT
- Added new option --with-libs='lib1 lib2 ...'
- Define _REENTRANT when posix threads are in use
1 parent bed23fe
Raw File
Tip revision: c5a39034727cc193f891c5a75475dab550c9feac authored by Guido van Rossum on 31 July 1996, 17:35:03 UTC
Three changes:
Tip revision: c5a3903
libpwd.tex
\section{Built-in Module \sectcode{pwd}}

\bimodindex{pwd}
This module provides access to the \UNIX{} password database.
It is available on all \UNIX{} versions.

Password database entries are reported as 7-tuples containing the
following items from the password database (see \file{<pwd.h>}), in order:
\code{pw_name},
\code{pw_passwd},
\code{pw_uid},
\code{pw_gid},
\code{pw_gecos},
\code{pw_dir},
\code{pw_shell}.
The uid and gid items are integers, all others are strings.
An exception is raised if the entry asked for cannot be found.

It defines the following items:

\renewcommand{\indexsubitem}{(in module pwd)}
\begin{funcdesc}{getpwuid}{uid}
Return the password database entry for the given numeric user ID.
\end{funcdesc}

\begin{funcdesc}{getpwnam}{name}
Return the password database entry for the given user name.
\end{funcdesc}

\begin{funcdesc}{getpwall}{}
Return a list of all available password database entries, in arbitrary order.
\end{funcdesc}
back to top