@@ -130,6 +130,18 @@ \subsection{Process Parameters \label{os-procinfo}}
130130Availability: \UNIX {}.
131131\end {funcdesc }
132132
133+ \begin {funcdesc }{getgroups}{}
134+ Return list of supplemental group ids associated with the current
135+ process.
136+ Availability: \UNIX {}.
137+ \end {funcdesc }
138+
139+ \begin {funcdesc }{getlogin}{}
140+ Return the actual login name for the current process, even if there
141+ are multiple login names which map to the same user id.
142+ Availability: \UNIX {}.
143+ \end {funcdesc }
144+
133145\begin {funcdesc }{getpgrp}{}
134146\index {process!group}
135147Return the current process group id.
@@ -290,6 +302,25 @@ \subsection{File Descriptor Operations \label{os-fd-ops}}
290302Availability: \UNIX {}, Windows.
291303\end {funcdesc }
292304
305+ \begin {funcdesc }{fpathconf}{fd, name}
306+ Return system configration information relevant to an open file.
307+ \var {name} specifies the configuration value to retrieve; it may be a
308+ string which is the name of a defined system value; these names are
309+ specified in a number of standards (\POSIX .1, Unix95, Unix98, and
310+ others). Some platforms define additional names as well. The names
311+ known to the host operating system are given in the
312+ \code {pathconf_names} dictionary. For configuration variables not
313+ included in that mapping, passing an integer for \var {name} is also
314+ accepted.
315+ Availability: \UNIX {}.
316+
317+ If \var {name} is a string and is not known, \exception {ValueError} is
318+ raised. If a specific value for \var {name} is not supported by the
319+ host system, even if it is included in \code {pathconf_names}, an
320+ \exception {OSError} is raised with \constant {errno.EINVAL} for the
321+ error number.
322+ \end {funcdesc }
323+
293324\begin {funcdesc }{fstat}{fd}
294325Return status for file descriptor \var {fd}, like \function {stat()}.
295326Availability: \UNIX {}, Windows.
@@ -490,6 +521,33 @@ \subsection{Files and Directories \label{os-file-dir}}
490521\versionadded {1.5.2}
491522\end {funcdesc }
492523
524+ \begin {funcdesc }{pathconf}{path, name}
525+ Return system configration information relevant to a named file.
526+ \var {name} specifies the configuration value to retrieve; it may be a
527+ string which is the name of a defined system value; these names are
528+ specified in a number of standards (\POSIX .1, Unix95, Unix98, and
529+ others). Some platforms define additional names as well. The names
530+ known to the host operating system are given in the
531+ \code {pathconf_names} dictionary. For configuration variables not
532+ included in that mapping, passing an integer for \var {name} is also
533+ accepted.
534+ Availability: \UNIX {}.
535+
536+ If \var {name} is a string and is not known, \exception {ValueError} is
537+ raised. If a specific value for \var {name} is not supported by the
538+ host system, even if it is included in \code {pathconf_names}, an
539+ \exception {OSError} is raised with \constant {errno.EINVAL} for the
540+ error number.
541+ \end {funcdesc }
542+
543+ \begin {datadesc }{pathconf_names}
544+ Dictionary mapping names accepted by \function {pathconf()} and
545+ \function {fpathconf()} to the integer values defined for those names
546+ by the host operating system. This can be used to determine the set
547+ of names known to the system.
548+ Availability: \UNIX .
549+ \end {datadesc }
550+
493551\begin {funcdesc }{readlink}{path}
494552Return a string representing the path to which the symbolic link
495553points.
@@ -850,7 +908,55 @@ \subsection{Process Management \label{os-process}}
850908\end {funcdesc }
851909
852910
853- \subsection {Miscellanenous System Data \label {os-path } }
911+ \subsection {Miscellanenous System Information \label {os-path } }
912+
913+
914+ \begin {funcdesc }{confstr}{name}
915+ Return string-valued system configuration values.
916+ \var {name} specifies the configuration value to retrieve; it may be a
917+ string which is the name of a defined system value; these names are
918+ specified in a number of standards (\POSIX , Unix95, Unix98, and
919+ others). Some platforms define additional names as well. The names
920+ known to the host operating system are given in the
921+ \code {confstr_names} dictionary. For configuration variables not
922+ included in that mapping, passing an integer for \var {name} is also
923+ accepted.
924+ Availability: \UNIX {}.
925+
926+ If the configuration value specified by \var {name} isn't defined, the
927+ empty string is returned.
928+
929+ If \var {name} is a string and is not known, \exception {ValueError} is
930+ raised. If a specific value for \var {name} is not supported by the
931+ host system, even if it is included in \code {confstr_names}, an
932+ \exception {OSError} is raised with \constant {errno.EINVAL} for the
933+ error number.
934+ \end {funcdesc }
935+
936+ \begin {datadesc }{confstr_names}
937+ Dictionary mapping names accepted by \function {confstr()} to the
938+ integer values defined for those names by the host operating system.
939+ This can be used to determine the set of names known to the system.
940+ Availability: \UNIX .
941+ \end {datadesc }
942+
943+ \begin {funcdesc }{sysconf}{name}
944+ Return integer-valued system configuration values.
945+ If the configuration value specified by \var {name} isn't defined,
946+ \code {-1} is returned. The comments regarding the \var {name}
947+ parameter for \function {confstr()} apply here as well; the dictionary
948+ that provides information on the known names is given by
949+ \code {sysconf_names}.
950+ Availability: \UNIX {}.
951+ \end {funcdesc }
952+
953+ \begin {datadesc }{sysconf_names}
954+ Dictionary mapping names accepted by \function {sysconf()} to the
955+ integer values defined for those names by the host operating system.
956+ This can be used to determine the set of names known to the system.
957+ Availability: \UNIX .
958+ \end {datadesc }
959+
854960
855961The follow data values are used to support path manipulation
856962operations. These are defined for all platforms.
0 commit comments