summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-11-30 22:04:45 (GMT)
committerGeorg Brandl <georg@python.org>2007-11-30 22:04:45 (GMT)
commit81ddc1a69bea3ddb7445de8e2b9f5c77afeecba2 (patch)
tree3e26953751a9c69a42d93da648472f61fafe2397
parent3628187b66287bdeb8c3c323092bf17e714e68de (diff)
downloadcpython-81ddc1a69bea3ddb7445de8e2b9f5c77afeecba2.zip
cpython-81ddc1a69bea3ddb7445de8e2b9f5c77afeecba2.tar.gz
cpython-81ddc1a69bea3ddb7445de8e2b9f5c77afeecba2.tar.bz2
Move lchmod() docs to correct place, and add versionadded tags.
-rw-r--r--Doc/library/os.rst20
1 files changed, 13 insertions, 7 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 4904ea0..805f2a2 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -528,6 +528,8 @@ by file descriptors.
Change the mode of the file given by *fd* to the numeric *mode*. See the docs
for :func:`chmod` for possible values of *mode*. Availability: Unix.
+ .. versionadded:: 2.6
+
.. function:: fchown(fd, uid, gid)
@@ -535,6 +537,8 @@ by file descriptors.
and *gid*. To leave one of the ids unchanged, set it to -1.
Availability: Unix.
+ .. versionadded:: 2.6
+
.. function:: fdatasync(fd)
@@ -594,13 +598,6 @@ by file descriptors.
tty(-like) device, else ``False``. Availability: Macintosh, Unix.
-.. function:: lchmod(path, mode)
-
- Change the mode of *path* to the numeric *mode*. If path is a symlink, this
- affects the symlink rather than the target. See the docs for :func:`chmod`
- for possible values of *mode*. Availability: Unix.
-
-
.. function:: lseek(fd, pos, how)
Set the current position of file descriptor *fd* to position *pos*, modified by
@@ -919,6 +916,15 @@ Files and Directories
.. versionadded:: 2.6
+.. function:: lchmod(path, mode)
+
+ Change the mode of *path* to the numeric *mode*. If path is a symlink, this
+ affects the symlink rather than the target. See the docs for :func:`chmod`
+ for possible values of *mode*. Availability: Unix.
+
+ .. versionadded:: 2.6
+
+
.. function:: lchown(path, uid, gid)
Change the owner and group id of *path* to the numeric *uid* and gid. This