Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
bf7283f8
Commit
bf7283f8
authored
Jun 24, 2012
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Note that equivalents are valid for 3.3+ only.
parent
c4cb2c96
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
16 deletions
+20
-16
Doc/library/os.rst
Doc/library/os.rst
+20
-16
No files found.
Doc/library/os.rst
View file @
bf7283f8
...
@@ -678,9 +678,9 @@ as internal buffering of data.
...
@@ -678,9 +678,9 @@ as internal buffering of data.
.. function:: fchmod(fd, mode)
.. function:: fchmod(fd, mode)
Change the mode of the file given by *fd* to the numeric *mode*. See the
docs
Change the mode of the file given by *fd* to the numeric *mode*. See the
for :func:`chmod` for possible values of *mode*.
docs for :func:`chmod` for possible values of *mode*. From Python 3.3, this
E
quivalent to ``os.chmod(fd, mode)``.
is e
quivalent to ``os.chmod(fd, mode)``.
Availability: Unix.
Availability: Unix.
...
@@ -688,8 +688,9 @@ as internal buffering of data.
...
@@ -688,8 +688,9 @@ as internal buffering of data.
.. function:: fchown(fd, uid, gid)
.. function:: fchown(fd, uid, gid)
Change the owner and group id of the file given by *fd* to the numeric *uid*
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. Equivalent
and *gid*. To leave one of the ids unchanged, set it to -1. See
to ``os.chown(fd, uid, gid)``.
:func:`chown`. From Python 3.3, this is equivalent to ``os.chown(fd, uid,
gid)``.
Availability: Unix.
Availability: Unix.
...
@@ -725,15 +726,17 @@ as internal buffering of data.
...
@@ -725,15 +726,17 @@ as internal buffering of data.
.. function:: fstat(fd)
.. function:: fstat(fd)
Return status for file descriptor *fd*, like :func:`~os.stat`.
Return status for file descriptor *fd*, like :func:`~os.stat`. From Python
3.3, this is equivalent to ``os.stat(fd)``.
Availability: Unix, Windows.
Availability: Unix, Windows.
.. function:: fstatvfs(fd)
.. function:: fstatvfs(fd)
Return information about the filesystem containing the file associated with file
Return information about the filesystem containing the file associated with
descriptor *fd*, like :func:`statvfs`.
file descriptor *fd*, like :func:`statvfs`. From Python 3.3, this is
equivalent to ``os.statvfs(fd)``.
Availability: Unix.
Availability: Unix.
...
@@ -1309,7 +1312,7 @@ features:
...
@@ -1309,7 +1312,7 @@ features:
Change the current working directory to the directory represented by the file
Change the current working directory to the directory represented by the file
descriptor *fd*. The descriptor must refer to an opened directory, not an
descriptor *fd*. The descriptor must refer to an opened directory, not an
open file.
E
quivalent to ``os.chdir(fd)``.
open file.
From Python 3.3, this is e
quivalent to ``os.chdir(fd)``.
Availability: Unix.
Availability: Unix.
...
@@ -1425,8 +1428,8 @@ features:
...
@@ -1425,8 +1428,8 @@ features:
.. function:: lchflags(path, flags)
.. function:: lchflags(path, flags)
Set the flags of *path* to the numeric *flags*, like :func:`chflags`, but do
Set the flags of *path* to the numeric *flags*, like :func:`chflags`, but do
not follow symbolic links.
Equivalent to ``os.chflags(path, flags,
not follow symbolic links.
From Python 3.3, this is equivalent to
follow_symlinks=False)``.
``os.chflags(path, flags,
follow_symlinks=False)``.
Availability: Unix.
Availability: Unix.
...
@@ -1435,8 +1438,8 @@ features:
...
@@ -1435,8 +1438,8 @@ features:
Change the mode of *path* to the numeric *mode*. If path is a symlink, this
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`
affects the symlink rather than the target. See the docs for :func:`chmod`
for possible values of *mode*.
Equivalent to ``os.chmod(path, mode,
for possible values of *mode*.
From Python 3.3, this is equivalent to
follow_symlinks=False)``.
``os.chmod(path, mode,
follow_symlinks=False)``.
Availability: Unix.
Availability: Unix.
...
@@ -1444,8 +1447,8 @@ features:
...
@@ -1444,8 +1447,8 @@ features:
.. function:: lchown(path, uid, gid)
.. function:: lchown(path, uid, gid)
Change the owner and group id of *path* to the numeric *uid* and *gid*. This
Change the owner and group id of *path* to the numeric *uid* and *gid*. This
function will not follow symbolic links.
Equivalent to ``os.chown(path, uid,
function will not follow symbolic links.
From Python 3.3, this is equivalent
gid, follow_symlinks=False)``.
to ``os.chown(path, uid,
gid, follow_symlinks=False)``.
Availability: Unix.
Availability: Unix.
...
@@ -1502,7 +1505,8 @@ features:
...
@@ -1502,7 +1505,8 @@ features:
Perform the equivalent of an :c:func:`lstat` system call on the given path.
Perform the equivalent of an :c:func:`lstat` system call on the given path.
Similar to :func:`~os.stat`, but does not follow symbolic links. On
Similar to :func:`~os.stat`, but does not follow symbolic links. On
platforms that do not support symbolic links, this is an alias for
platforms that do not support symbolic links, this is an alias for
:func:`~os.stat`. (Equivalent to ``os.stat(path, follow_symlinks=False)``.)
:func:`~os.stat`. From Python 3.3, this is equivalent to ``os.stat(path,
dir_fd=dir_fd, follow_symlinks=False)``.
This function can also support :ref:`paths relative to directory descriptors
This function can also support :ref:`paths relative to directory descriptors
<dir_fd>`.
<dir_fd>`.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment