summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-04-14 10:19:44 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-04-14 10:19:44 (GMT)
commit06a83e90aa345c27db2652ddccdba683cdfa9311 (patch)
treedfe95488425e40028e0d606094d9019736d8d31c /Doc
parent314fc79ce8ffa79fbe42d26a4dc350b901d9341b (diff)
downloadcpython-06a83e90aa345c27db2652ddccdba683cdfa9311.zip
cpython-06a83e90aa345c27db2652ddccdba683cdfa9311.tar.gz
cpython-06a83e90aa345c27db2652ddccdba683cdfa9311.tar.bz2
Patch #543447: Add posix.mknod.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libos.tex11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex
index 8c819d9..6a07ab1 100644
--- a/Doc/lib/libos.tex
+++ b/Doc/lib/libos.tex
@@ -644,6 +644,17 @@ 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}}
+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.
+
+\versionadded{2.3}
+\end{funcdesc}
+
\begin{funcdesc}{mkdir}{path\optional{, mode}}
Create a directory named \var{path} with numeric mode \var{mode}.
The default \var{mode} is \code{0777} (octal). On some systems,