summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-07-26 19:37:39 (GMT)
committerGitHub <noreply@github.com>2023-07-26 19:37:39 (GMT)
commitda2097dffbf1573d34439166468012d8f79d8595 (patch)
tree2329d27724a5e9086be141f38e89207a855ec81c /Doc/library/os.rst
parent9f5a5f0b33479abcd1619fcc5ea3b8d0a31818f4 (diff)
downloadcpython-da2097dffbf1573d34439166468012d8f79d8595.zip
cpython-da2097dffbf1573d34439166468012d8f79d8595.tar.gz
cpython-da2097dffbf1573d34439166468012d8f79d8595.tar.bz2
[3.12] gh-107091: Fix some uses of :c:type: role (GH-107138) (GH-107312)
(cherry picked from commit 6d5b6e71c87fca7c5c26f5dd8f325087962215cc) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index bbf227a..55ebe7e 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -2420,13 +2420,13 @@ features:
.. function:: major(device, /)
Extract the device major number from a raw device number (usually the
- :attr:`st_dev` or :attr:`st_rdev` field from :c:type:`stat`).
+ :attr:`st_dev` or :attr:`st_rdev` field from :c:struct:`stat`).
.. function:: minor(device, /)
Extract the device minor number from a raw device number (usually the
- :attr:`st_dev` or :attr:`st_rdev` field from :c:type:`stat`).
+ :attr:`st_dev` or :attr:`st_rdev` field from :c:struct:`stat`).
.. function:: makedev(major, minor, /)
@@ -2937,7 +2937,7 @@ features:
.. class:: stat_result
Object whose attributes correspond roughly to the members of the
- :c:type:`stat` structure. It is used for the result of :func:`os.stat`,
+ :c:struct:`stat` structure. It is used for the result of :func:`os.stat`,
:func:`os.fstat` and :func:`os.lstat`.
Attributes:
@@ -3117,12 +3117,12 @@ features:
See the ``IO_REPARSE_TAG_*`` constants in the :mod:`stat` module.
The standard module :mod:`stat` defines functions and constants that are
- useful for extracting information from a :c:type:`stat` structure. (On
+ useful for extracting information from a :c:struct:`stat` structure. (On
Windows, some items are filled with dummy values.)
For backward compatibility, a :class:`stat_result` instance is also
accessible as a tuple of at least 10 integers giving the most important (and
- portable) members of the :c:type:`stat` structure, in the order
+ portable) members of the :c:struct:`stat` structure, in the order
:attr:`st_mode`, :attr:`st_ino`, :attr:`st_dev`, :attr:`st_nlink`,
:attr:`st_uid`, :attr:`st_gid`, :attr:`st_size`, :attr:`st_atime`,
:attr:`st_mtime`, :attr:`st_ctime`. More items may be added at the end by
@@ -3174,7 +3174,7 @@ features:
Perform a :c:func:`statvfs` system call on the given path. The return value is
an object whose attributes describe the filesystem on the given path, and
- correspond to the members of the :c:type:`statvfs` structure, namely:
+ correspond to the members of the :c:struct:`statvfs` structure, namely:
:attr:`f_bsize`, :attr:`f_frsize`, :attr:`f_blocks`, :attr:`f_bfree`,
:attr:`f_bavail`, :attr:`f_files`, :attr:`f_ffree`, :attr:`f_favail`,
:attr:`f_flag`, :attr:`f_namemax`, :attr:`f_fsid`.