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
257a14c2
Commit
257a14c2
authored
Nov 09, 2011
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor functions signatures in the doc.
parent
4b6fabdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
Doc/library/os.rst
Doc/library/os.rst
+15
-8
No files found.
Doc/library/os.rst
View file @
257a14c2
...
@@ -872,22 +872,26 @@ as internal buffering of data.
...
@@ -872,22 +872,26 @@ as internal buffering of data.
.. versionadded:: 3.3
.. versionadded:: 3.3
.. function:: futimesat(dirfd, path[,
(atime, mtime)
])
.. function:: futimesat(dirfd, path[,
times
])
Like :func:`utime` but if *path* is relative, it is taken as relative to *dirfd*.
Like :func:`utime` but if *path* is relative, it is taken as relative to *dirfd*.
If *path* is relative and *dirfd* is the special value :data:`AT_FDCWD`, then *path*
If *path* is relative and *dirfd* is the special value :data:`AT_FDCWD`, then *path*
is interpreted relative to the current working directory.
is interpreted relative to the current working directory. *times* must be a
2-tuple of numbers, of the form ``(atime, mtime)``, or None.
Availability: Unix.
Availability: Unix.
.. versionadded:: 3.3
.. versionadded:: 3.3
.. function:: futimens(fd[,
(atime_sec, atime_nsec), (mtime_sec, mtime_nsec)
])
.. function:: futimens(fd[,
atimes, mtimes
])
Updates the timestamps of a file specified by the file descriptor *fd*, with
Updates the timestamps of a file specified by the file descriptor *fd*, with
nanosecond precision.
nanosecond precision.
If no second argument is given, set *atime* and *mtime* to the current time.
If no second argument is given, set *atime* and *mtime* to the current time.
*atimes* and *mtimes* must be 2-tuples of numbers, of the form
``(atime_sec, atime_nsec)`` and ``(mtime_sec, mtime_nsec)`` respectively,
or ``None``.
If *atime_nsec* or *mtime_nsec* is specified as :data:`UTIME_NOW`, the corresponding
If *atime_nsec* or *mtime_nsec* is specified as :data:`UTIME_NOW`, the corresponding
timestamp is updated to the current time.
timestamp is updated to the current time.
If *atime_nsec* or *mtime_nsec* is specified as :data:`UTIME_OMIT`, the corresponding
If *atime_nsec* or *mtime_nsec* is specified as :data:`UTIME_OMIT`, the corresponding
...
@@ -909,11 +913,12 @@ as internal buffering of data.
...
@@ -909,11 +913,12 @@ as internal buffering of data.
.. versionadded:: 3.3
.. versionadded:: 3.3
.. function:: futimes(fd[,
(atime, mtime)
])
.. function:: futimes(fd[,
times
])
Set the access and modified time of the file specified by the file
Set the access and modified time of the file specified by the file
descriptor *fd* to the given values. If no second argument is used, set the
descriptor *fd* to the given values. *atimes* must be a 2-tuple of numbers,
access and modified times to the current time.
of the form ``(atime, mtime)``, or None. If no second argument is used,
set the access and modified times to the current time.
Availability: Unix.
Availability: Unix.
...
@@ -1699,10 +1704,12 @@ Files and Directories
...
@@ -1699,10 +1704,12 @@ Files and Directories
Added support for Windows 6.0 (Vista) symbolic links.
Added support for Windows 6.0 (Vista) symbolic links.
.. function:: lutimes(path[,
(atime, mtime)
])
.. function:: lutimes(path[,
times
])
Like :func:`utime`, but if *path* is a symbolic link, it is not
Like :func:`utime`, but if *path* is a symbolic link, it is not
dereferenced.
dereferenced. *times* must be a 2-tuple of numbers, of the form
``(atime, mtime)``, or None.
Availability: Unix.
Availability: Unix.
...
...
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