summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libposix.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-06-26 19:22:46 (GMT)
committerGuido van Rossum <guido@python.org>1996-06-26 19:22:46 (GMT)
commit1e8b63eb887344ce2fe06b580eecbfba5a5be3dd (patch)
treee30db5403a964a99d11fb0492559aa65ab3af244 /Doc/lib/libposix.tex
parentdb9a7bba221d932e50dd699a5dea1b8af1c2b78a (diff)
downloadcpython-1e8b63eb887344ce2fe06b580eecbfba5a5be3dd.zip
cpython-1e8b63eb887344ce2fe06b580eecbfba5a5be3dd.tar.gz
cpython-1e8b63eb887344ce2fe06b580eecbfba5a5be3dd.tar.bz2
Document some process group stuff; mkdir mode arg optional; mkfifo.
Diffstat (limited to 'Doc/lib/libposix.tex')
-rw-r--r--Doc/lib/libposix.tex56
1 files changed, 55 insertions, 1 deletions
diff --git a/Doc/lib/libposix.tex b/Doc/lib/libposix.tex
index 6696a28..bbb1b57 100644
--- a/Doc/lib/libposix.tex
+++ b/Doc/lib/libposix.tex
@@ -150,6 +150,11 @@ Return the current process's group id.
(Not on MS-DOS.)
\end{funcdesc}
+\begin{funcdesc}{getpgrp}{}
+Return the current process group id.
+(Not on MS-DOS.)
+\end{funcdesc}
+
\begin{funcdesc}{getpid}{}
Return the current process id.
(Not on MS-DOS.)
@@ -194,8 +199,25 @@ Like \code{stat()}, but do not follow symbolic links. (On systems
without symbolic links, this is identical to \code{posix.stat}.)
\end{funcdesc}
-\begin{funcdesc}{mkdir}{path\, mode}
+\begin{funcdesc}{mkfifo}{path\optional{\, mode}}
+Create a FIFO (a POSIX named pipe) named \var{path} with numeric mode
+\var{mode}. The default \var{mode} is 0666 (octal). The current
+umask value is first masked out from the mode.
+(Not on MS-DOS.)
+
+FIFOs are pipes that can be accessed like regular files. FIFOs exist
+until they are deleted (for example with \code{os.unlink}).
+Generally, FIFOs are used as rendez-vous between ``client'' and
+``server'' type processes: the server opens the FIFO for reading, and
+the client opens it for writing. Note that \code{mkfifo()} doesn't
+open the FIFO -- it just creates the rendez-vous point.
+\end{funcdesc}
+
+\begin{funcdesc}{mkdir}{path\optional{\, mode}}
Create a directory named \var{path} with numeric mode \var{mode}.
+The default \var{mode} is 0777 (octal). On some systems, \var{mode}
+is ignored. Where it is used, the current umask value is first
+masked out.
\end{funcdesc}
\begin{funcdesc}{nice}{increment}
@@ -263,6 +285,25 @@ Set the current process's group id.
(Not on MS-DOS.)
\end{funcdesc}
+\begin{funcdesc}{setpgrp}{}
+Calls the system call \code{setpgrp()} or \code{setpgrp(0, 0)}
+depending on which version is implemented (if any). See the {\UNIX}
+manual for the semantics.
+(Not on MS-DOS.)
+\end{funcdesc}
+
+\begin{funcdesc}{setpgid}{pid\, pgrp}
+Calls the system call \code{setpgid()}. See the {\UNIX} manual for
+the semantics.
+(Not on MS-DOS.)
+\end{funcdesc}
+
+\begin{funcdesc}{setsid}{}
+Calls the system call \code{setsid()}. See the {\UNIX} manual for the
+semantics.
+(Not on MS-DOS.)
+\end{funcdesc}
+
\begin{funcdesc}{setuid}{uid}
Set the current process's user id.
(Not on MS-DOS.)
@@ -304,6 +345,19 @@ value is the exit status of the process as returned by Standard C
\code{system()}.
\end{funcdesc}
+\begin{funcdesc}{tcgetpgrp}{fd}
+Return the process group associated with the terminal given by
+\var{fd} (an open file descriptor as returned by \code{posix.open()}).
+(Not on MS-DOS.)
+\end{funcdesc}
+
+\begin{funcdesc}{tcsetpgrp}{fd\, pg}
+Set the process group associated with the terminal given by
+\var{fd} (an open file descriptor as returned by \code{posix.open()})
+to \var{pg}.
+(Not on MS-DOS.)
+\end{funcdesc}
+
\begin{funcdesc}{times}{}
Return a 5-tuple of floating point numbers indicating accumulated (CPU
or other)