summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-10-10 14:27:30 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-10-10 14:27:30 (GMT)
commitdbe3f76270d8bc22f1201e6ac1d63dbe3124dc3f (patch)
tree988b0053e0e936a73a44e832bcff73c24b554cfa /Doc
parent3e3e1296f09b5320ce7aa735896a6b53e401e2a9 (diff)
downloadcpython-dbe3f76270d8bc22f1201e6ac1d63dbe3124dc3f.zip
cpython-dbe3f76270d8bc22f1201e6ac1d63dbe3124dc3f.tar.gz
cpython-dbe3f76270d8bc22f1201e6ac1d63dbe3124dc3f.tar.bz2
Patch #569139: Implementation of major, minor and makedev.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libos.tex31
1 files changed, 25 insertions, 6 deletions
diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex
index afbea54..45354bc 100644
--- a/Doc/lib/libos.tex
+++ b/Doc/lib/libos.tex
@@ -700,13 +700,32 @@ the client opens it for writing. Note that \function{mkfifo()}
doesn't open the FIFO --- it just creates the rendezvous point.
\end{funcdesc}
-\begin{funcdesc}{mknod}{path\optional{, mode=0600, major, minor}}
+\begin{funcdesc}{mknod}{path\optional{, mode=0600, device}}
Create a filesystem node (file, device special file or named pipe)
-named filename. mode specifies both the permissions to use and the
-type of node to be created, being combined (bitwise OR) with one of
-S_IFREG, S_IFCHR, S_IFBLK, and S_IFIFO (those constants are available
-in \module{stat}). For S_IFCHR and S_IFBLK, major and minor define the
-newly created device special file, otherwise they are ignored.
+named filename. \var{mode} specifies both the permissions to use and
+the type of node to be created, being combined (bitwise OR) with one
+of S_IFREG, S_IFCHR, S_IFBLK, and S_IFIFO (those constants are
+available in \module{stat}). For S_IFCHR and S_IFBLK, \var{device}
+defines the newly created device special file (probably using
+\function{os.makedev()}), otherwise it is ignored.
+
+\versionadded{2.3}
+\end{funcdesc}
+
+\begin{funcdesc}{major}{device}
+Extracts a device major number from a raw device number.
+
+\versionadded{2.3}
+\end{funcdesc}
+
+\begin{funcdesc}{minor}{device}
+Extracts a device minor number from a raw device number.
+
+\versionadded{2.3}
+\end{funcdesc}
+
+\begin{funcdesc}{makedev}{major, minor}
+Composes a raw device number from the major and minor device numbers.
\versionadded{2.3}
\end{funcdesc}