diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-09-07 08:36:04 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-09-07 08:36:04 (GMT) |
commit | b034eee711807c69a23241085b641212b2d1264a (patch) | |
tree | 434ec316b04cd618cfaac784d770e2ed6484b707 /Python/fileutils.c | |
parent | 9143b0e0875c656d2c378e4fd657c34336b75efd (diff) | |
download | cpython-b034eee711807c69a23241085b641212b2d1264a.zip cpython-b034eee711807c69a23241085b641212b2d1264a.tar.gz cpython-b034eee711807c69a23241085b641212b2d1264a.tar.bz2 |
Close #18954: Fix some typo in fileutils.c comments
Patch written by Vajrasky Kok.
Diffstat (limited to 'Python/fileutils.c')
-rw-r--r-- | Python/fileutils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c index 1cc7480..074888e 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -22,7 +22,7 @@ extern wchar_t* _Py_DecodeUTF8_surrogateescape(const char *s, Py_ssize_t size); #endif #ifdef O_CLOEXEC -/* Does open() supports the O_CLOEXEC flag? Possible values: +/* Does open() support the O_CLOEXEC flag? Possible values: -1: unknown 0: open() ignores O_CLOEXEC flag, ex: Linux kernel older than 2.6.23 @@ -607,7 +607,7 @@ get_inheritable(int fd, int raise) } /* Get the inheritable flag of the specified file descriptor. - Return 1 if it the file descriptor can be inherited, 0 if it cannot, + Return 1 if the file descriptor can be inherited, 0 if it cannot, raise an exception and return -1 on error. */ int _Py_get_inheritable(int fd) @@ -706,7 +706,7 @@ set_inheritable(int fd, int inheritable, int raise, int *atomic_flag_works) } /* Make the file descriptor non-inheritable. - Return 0 success, set errno and return -1 on error. */ + Return 0 on success, set errno and return -1 on error. */ static int make_non_inheritable(int fd) { |