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
902274e9
Commit
902274e9
authored
Jun 05, 2012
by
Gregory P. Smith
Browse files
Options
Browse Files
Download
Plain Diff
Fixes issue #15000: support the odd x32 abi on posixsubprocess's system call.
parents
9844993c
58f07a9d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
Misc/NEWS
Misc/NEWS
+5
-0
Modules/_posixsubprocess.c
Modules/_posixsubprocess.c
+7
-0
No files found.
Misc/NEWS
View file @
902274e9
...
...
@@ -55,6 +55,11 @@ Library
- Issue #14963: Convert contextlib.ExitStack.__exit__ to use an iterative
algorithm (Patch by Alon Horev)
Extension Modules
-----------------
- Issue #15000: Support the "unique" x32 architecture in _posixsubprocess.c.
Tests
-----
...
...
Modules/_posixsubprocess.c
View file @
902274e9
...
...
@@ -177,8 +177,15 @@ _close_fds_by_brute_force(int start_fd, int end_fd, PyObject *py_fds_to_keep)
* chooses to break compatibility with all existing binaries. Highly Unlikely.
*/
struct
linux_dirent
{
#if defined(__x86_64__) && defined(__ILP32__)
/* Support the wacky x32 ABI (fake 32-bit userspace speaking to x86_64
* kernel interfaces) - https://sites.google.com/site/x32abi/ */
unsigned
long
long
d_ino
;
unsigned
long
long
d_off
;
#else
unsigned
long
d_ino
;
/* Inode number */
unsigned
long
d_off
;
/* Offset to next linux_dirent */
#endif
unsigned
short
d_reclen
;
/* Length of this linux_dirent */
char
d_name
[
256
];
/* Filename (null-terminated) */
};
...
...
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