summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2010-08-18 22:30:34 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2010-08-18 22:30:34 (GMT)
commit4ea04a306f6f43c9dc2f9c196b658abf021a8362 (patch)
tree92fceb1199e346339dca396ed312292d42cf07f8 /Doc
parent0fc86b86ed1381866f159f534125449d069c1785 (diff)
downloadcpython-4ea04a306f6f43c9dc2f9c196b658abf021a8362.zip
cpython-4ea04a306f6f43c9dc2f9c196b658abf021a8362.tar.gz
cpython-4ea04a306f6f43c9dc2f9c196b658abf021a8362.tar.bz2
#7647: add ST_RDONLY, ST_NOSUID constants to os module.
(Also fix a name ordering in the ACKS file.)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/os.rst8
-rw-r--r--Doc/whatsnew/3.2.rst4
2 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 3a7b599..9ab5fb1 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -1342,6 +1342,14 @@ Files and Directories
:attr:`f_bavail`, :attr:`f_files`, :attr:`f_ffree`, :attr:`f_favail`,
:attr:`f_flag`, :attr:`f_namemax`.
+ Two module-level constants are defined for the :attr:`f_flag` attribute's
+ bit-flags: if :const:`ST_RDONLY` is set, the filesystem is mounted
+ read-only, and if :const:`ST_NOSUID` is set, the semantics of
+ setuid/setgid bits are disabled or not supported.
+
+ .. versionchanged:: 3.2
+ The :const:`ST_RDONLY` and :const:`ST_NOSUID` constants were added.
+
Availability: Unix.
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index 1799b70..81cfa83 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -111,6 +111,10 @@ New, Improved, and Deprecated Modules
programmer aware that his code contains object finalization issues.
(Added by Antoine Pitrou; :issue:`477863`.)
+* The :mod:`os` module now has the :const:`ST_RDONLY` and :const:`ST_NOSUID`
+ constants, for use with the :func:`~os.statvfs` function.
+ (Patch by Adam Jackson; :issue:`7647`.)
+
* The :func:`shutil.copytree` function has two new options:
* *ignore_dangling_symlinks*: when ``symlinks=False`` (meaning that the