Mercurial > cpython-lru_cache-weakref
diff Python/fileutils.c @ 85584:98f82b124c7d
Close #18954: Fix some typo in fileutils.c comments
Patch written by Vajrasky Kok.
| author | Victor Stinner <victor.stinner@gmail.com> |
|---|---|
| date | Sat, 07 Sep 2013 10:36:04 +0200 |
| parents | ef889c3d5dc6 |
| children | eeec58c57964 |
line wrap: on
line diff
--- a/Python/fileutils.c Fri Sep 06 19:58:01 2013 -0700 +++ b/Python/fileutils.c Sat Sep 07 10:36:04 2013 +0200 @@ -22,7 +22,7 @@ #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 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 @@ } /* 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) {
