blob: c836515f38c764c55fe51fd5fe9ac8ad15aeac8c [file] [log] [blame]
Guido van Rossumf643e3f1997-04-02 06:06:03 +00001\chapter{Unix Specific Services}
Fred Drake710c0351998-02-18 15:47:17 +00002\label{unix}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +00003
4The modules described in this chapter provide interfaces to features
Guido van Rossum6bb1adc1995-03-13 10:03:32 +00005that are unique to the \UNIX{} operating system, or in some cases to
Guido van Rossumecde7811995-03-28 13:35:14 +00006some or many variants of it. Here's an overview:
7
8\begin{description}
9
10\item[posix]
Fred Drake710c0351998-02-18 15:47:17 +000011--- The most common \POSIX{} system calls (normally used via module
12\module{os}).
Guido van Rossumecde7811995-03-28 13:35:14 +000013
14\item[posixpath]
Fred Drake65b32f71998-02-09 20:27:12 +000015--- Common \POSIX{} pathname manipulations (normally used via \code{os.path}).
Guido van Rossumecde7811995-03-28 13:35:14 +000016
17\item[pwd]
Fred Drake710c0351998-02-18 15:47:17 +000018--- The password database (\function{getpwnam()} and friends).
Guido van Rossumecde7811995-03-28 13:35:14 +000019
20\item[grp]
Fred Drake710c0351998-02-18 15:47:17 +000021--- The group database (\function{getgrnam()} and friends).
Guido van Rossumecde7811995-03-28 13:35:14 +000022
Guido van Rossum5c6e3731996-04-10 16:18:20 +000023\item[crypt]
Fred Drake710c0351998-02-18 15:47:17 +000024--- The \cfunction{crypt()} function used to check \UNIX{} passwords.
Guido van Rossum5c6e3731996-04-10 16:18:20 +000025
Guido van Rossumecde7811995-03-28 13:35:14 +000026\item[dbm]
27--- The standard ``database'' interface, based on \code{ndbm}.
28
29\item[gdbm]
30--- GNU's reinterpretation of dbm.
31
32\item[termios]
Fred Drake65b32f71998-02-09 20:27:12 +000033--- \POSIX{} style tty control.
Guido van Rossumecde7811995-03-28 13:35:14 +000034
Fred Drake4b3f0311996-12-13 22:04:31 +000035\item[TERMIOS]
Fred Drake710c0351998-02-18 15:47:17 +000036--- The symbolic constants required to use the \module{termios} module.
Fred Drake4b3f0311996-12-13 22:04:31 +000037
Guido van Rossumecde7811995-03-28 13:35:14 +000038\item[fcntl]
Fred Drake710c0351998-02-18 15:47:17 +000039--- The \function{fcntl()} and \function{ioctl()} system calls.
Guido van Rossumecde7811995-03-28 13:35:14 +000040
41\item[posixfile]
42--- A file-like object with support for locking.
43
Fred Drakeae0cd0b1996-12-19 12:20:54 +000044\item[resource]
45--- An interface to provide resource usage information on the current
46process.
47
Fred Drake4b3f0311996-12-13 22:04:31 +000048\item[syslog]
Fred Drake63a0c371996-12-16 22:12:33 +000049--- An interface to the \UNIX{} \code{syslog} library routines.
Fred Drake4b3f0311996-12-13 22:04:31 +000050
Guido van Rossumf6a7b441998-02-11 22:58:55 +000051\item[stat]
52--- Constants and functions for interpreting the results of
Fred Drake710c0351998-02-18 15:47:17 +000053\function{os.stat()}, \function{os.lstat()} and \function{os.fstat()}.
Guido van Rossumf6a7b441998-02-11 22:58:55 +000054
55\item[commands]
Fred Drake710c0351998-02-18 15:47:17 +000056--- Wrapper functions for \function{os.popen()}.
Guido van Rossumf6a7b441998-02-11 22:58:55 +000057
Guido van Rossumecde7811995-03-28 13:35:14 +000058\end{description}