diff options
author | Guido van Rossum <guido@python.org> | 1996-02-12 23:16:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-02-12 23:16:08 (GMT) |
commit | 8c07bb4565f5cd65c1188c865b08defaa2fc3a07 (patch) | |
tree | c0d5699e0ed2ff4452110db01e07f387cfac672d | |
parent | 71b1815c1d1ed957bad675c5afa84f442c6585af (diff) | |
download | cpython-8c07bb4565f5cd65c1188c865b08defaa2fc3a07.zip cpython-8c07bb4565f5cd65c1188c865b08defaa2fc3a07.tar.gz cpython-8c07bb4565f5cd65c1188c865b08defaa2fc3a07.tar.bz2 |
listdir no longer returns . or ..; added remove==unlink
-rw-r--r-- | Doc/lib/libposix.tex | 12 | ||||
-rw-r--r-- | Doc/libposix.tex | 12 |
2 files changed, 18 insertions, 6 deletions
diff --git a/Doc/lib/libposix.tex b/Doc/lib/libposix.tex index 643cfda..6696a28 100644 --- a/Doc/lib/libposix.tex +++ b/Doc/lib/libposix.tex @@ -177,8 +177,9 @@ Create a hard link pointing to \var{src} named \var{dst}. \begin{funcdesc}{listdir}{path} Return a list containing the names of the entries in the directory. -The list is in arbitrary order. It includes the special entries -\code{'.'} and \code{'..'} if they are present in the directory. +The list is in arbitrary order. It does not include the special +entries \code{'.'} and \code{'..'} even if they are present in the +directory. \end{funcdesc} \begin{funcdesc}{lseek}{fd\, pos\, how} @@ -245,6 +246,10 @@ points. (On systems without symbolic links, this always raises \code{posix.error}.) \end{funcdesc} +\begin{funcdesc}{remove}{path} +Remove the file \var{path}. See \code{rmdir} below to remove a directory. +\end{funcdesc} + \begin{funcdesc}{rename}{src\, dst} Rename the file or directory \var{src} to \var{dst}. \end{funcdesc} @@ -324,7 +329,8 @@ hostname is \code{socket.gethostname()}. (Not on MS-DOS, nor on older \end{funcdesc} \begin{funcdesc}{unlink}{path} -Unlink \var{path}. +Remove the file \var{path}. This is the same function as \code{remove}; +the \code{unlink} name is its traditional \UNIX{} name. \end{funcdesc} \begin{funcdesc}{utime}{path\, \(atime\, mtime\)} diff --git a/Doc/libposix.tex b/Doc/libposix.tex index 643cfda..6696a28 100644 --- a/Doc/libposix.tex +++ b/Doc/libposix.tex @@ -177,8 +177,9 @@ Create a hard link pointing to \var{src} named \var{dst}. \begin{funcdesc}{listdir}{path} Return a list containing the names of the entries in the directory. -The list is in arbitrary order. It includes the special entries -\code{'.'} and \code{'..'} if they are present in the directory. +The list is in arbitrary order. It does not include the special +entries \code{'.'} and \code{'..'} even if they are present in the +directory. \end{funcdesc} \begin{funcdesc}{lseek}{fd\, pos\, how} @@ -245,6 +246,10 @@ points. (On systems without symbolic links, this always raises \code{posix.error}.) \end{funcdesc} +\begin{funcdesc}{remove}{path} +Remove the file \var{path}. See \code{rmdir} below to remove a directory. +\end{funcdesc} + \begin{funcdesc}{rename}{src\, dst} Rename the file or directory \var{src} to \var{dst}. \end{funcdesc} @@ -324,7 +329,8 @@ hostname is \code{socket.gethostname()}. (Not on MS-DOS, nor on older \end{funcdesc} \begin{funcdesc}{unlink}{path} -Unlink \var{path}. +Remove the file \var{path}. This is the same function as \code{remove}; +the \code{unlink} name is its traditional \UNIX{} name. \end{funcdesc} \begin{funcdesc}{utime}{path\, \(atime\, mtime\)} |