Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1a457512
Commit
1a457512
authored
Sep 07, 2013
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close #18954: Fix some typo in fileutils.c comments
Patch written by Vajrasky Kok.
parent
44cc7091
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Python/fileutils.c
Python/fileutils.c
+3
-3
No files found.
Python/fileutils.c
View file @
1a457512
...
@@ -22,7 +22,7 @@ extern wchar_t* _Py_DecodeUTF8_surrogateescape(const char *s, Py_ssize_t size);
...
@@ -22,7 +22,7 @@ extern wchar_t* _Py_DecodeUTF8_surrogateescape(const char *s, Py_ssize_t size);
#endif
#endif
#ifdef O_CLOEXEC
#ifdef O_CLOEXEC
/* Does open() support
s
the O_CLOEXEC flag? Possible values:
/* Does open() support the O_CLOEXEC flag? Possible values:
-1: unknown
-1: unknown
0: open() ignores O_CLOEXEC flag, ex: Linux kernel older than 2.6.23
0: open() ignores O_CLOEXEC flag, ex: Linux kernel older than 2.6.23
...
@@ -607,7 +607,7 @@ get_inheritable(int fd, int raise)
...
@@ -607,7 +607,7 @@ get_inheritable(int fd, int raise)
}
}
/* Get the inheritable flag of the specified file descriptor.
/* 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. */
raise an exception and return -1 on error. */
int
int
_Py_get_inheritable
(
int
fd
)
_Py_get_inheritable
(
int
fd
)
...
@@ -706,7 +706,7 @@ set_inheritable(int fd, int inheritable, int raise, int *atomic_flag_works)
...
@@ -706,7 +706,7 @@ set_inheritable(int fd, int inheritable, int raise, int *atomic_flag_works)
}
}
/* Make the file descriptor non-inheritable.
/* 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
static
int
make_non_inheritable
(
int
fd
)
make_non_inheritable
(
int
fd
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment