diff options
author | Christian Heimes <christian@cheimes.de> | 2007-11-30 22:12:06 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-11-30 22:12:06 (GMT) |
commit | 4e30a845b4d2496dab25f0016cb597072c7355b1 (patch) | |
tree | 53b84c8cc1edd2c893359b8a7552b38425b7e91a /Doc/library | |
parent | 04a4eb3405eab76285a7693add2c4f00128fdf74 (diff) | |
download | cpython-4e30a845b4d2496dab25f0016cb597072c7355b1.zip cpython-4e30a845b4d2496dab25f0016cb597072c7355b1.tar.gz cpython-4e30a845b4d2496dab25f0016cb597072c7355b1.tar.bz2 |
Merged revisions 59239-59244 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59240 | amaury.forgeotdarc | 2007-11-30 21:37:22 +0100 (Fri, 30 Nov 2007) | 2 lines
Add a NEWS entry for r59231
........
r59241 | amaury.forgeotdarc | 2007-11-30 21:51:40 +0100 (Fri, 30 Nov 2007) | 5 lines
Issue #1521: on 64bit platforms, str.decode fails on very long strings.
The t# and w# formats were not correctly handled.
Will backport.
........
r59242 | christian.heimes | 2007-11-30 22:11:28 +0100 (Fri, 30 Nov 2007) | 3 lines
Fix for feature request #1528 Add os.fchmod
Georg Brandl has added fchmod() and fchown(). I've contributed lchown but I'm not able to test it on Linux. However it should be available on Mac and some other flavors of Unix.
I've made a quick test of fchmod() and fchown() on my system. They are working as expected.
........
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/os.rst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 0436244..bd8480c 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -417,6 +417,19 @@ by file descriptors. Availability: Macintosh, Unix, Windows. +.. function:: fchmod(fd, mode) + + 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. + + +.. function:: fchown(fd, uid, gid) + + Change the owner and group id of the file given by *fd* to the numeric *uid* + and *gid*. To leave one of the ids unchanged, set it to -1. + Availability: Unix. + + .. function:: fdatasync(fd) Force write of file with filedescriptor *fd* to disk. Does not force update of @@ -475,6 +488,13 @@ 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 |