diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/os.rst | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 76ad7e0..acd525b 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -872,8 +872,7 @@ as internal buffering of data. .. versionadded:: 3.3 -.. function:: futimesat(dirfd, path, (atime, mtime)) - futimesat(dirfd, path, None) +.. function:: futimesat(dirfd, path[, (atime, mtime)]) 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* @@ -884,12 +883,11 @@ as internal buffering of data. .. versionadded:: 3.3 -.. function:: futimens(fd, (atime_sec, atime_nsec), (mtime_sec, mtime_nsec)) - futimens(fd, None, None) +.. function:: futimens(fd[, (atime_sec, atime_nsec), (mtime_sec, mtime_nsec)]) Updates the timestamps of a file specified by the file descriptor *fd*, with nanosecond precision. - The second form sets *atime* and *mtime* to the current time. + If no second argument is given, set *atime* and *mtime* to the current time. If *atime_nsec* or *mtime_nsec* is specified as :data:`UTIME_NOW`, the corresponding timestamp is updated to the current time. If *atime_nsec* or *mtime_nsec* is specified as :data:`UTIME_OMIT`, the corresponding @@ -911,11 +909,10 @@ as internal buffering of data. .. versionadded:: 3.3 -.. function:: futimes(fd, (atime, mtime)) - futimes(fd, None) +.. function:: futimes(fd[, (atime, mtime)]) Set the access and modified time of the file specified by the file - descriptor *fd* to the given values. If the second form is used, set the + descriptor *fd* to the given values. If no second argument is used, set the access and modified times to the current time. Availability: Unix. @@ -1702,8 +1699,7 @@ Files and Directories Added support for Windows 6.0 (Vista) symbolic links. -.. function:: lutimes(path, (atime, mtime)) - lutimes(path, None) +.. function:: lutimes(path[, (atime, mtime)]) Like :func:`utime`, but if *path* is a symbolic link, it is not dereferenced. |