[New-bugs-announce] [issue16962] _posixsubprocess module uses outdated getdents system call

Riku Voipio report at bugs.python.org
Mon Jan 14 13:22:02 CET 2013


New submission from Riku Voipio:

Getdents system call was superseded with with getdents64 in Linux 2.4 (January 2001). New architectures, such as 64-Bit ARM opt out not to support legacy system calls, and getdents is one of them. 

Since getdents64 has been supported for over a decade, I don't think adding ifdef to support both makes sense. Using getdents64 cleans up the current _posixsubprocess code as the entries are long long everywhere.

The attached patch makes _posixsubprocess module compile on 64-Bit ARM and causes on regressions on the python3.3 testsuite on x86 and x86_64

----------
components: Extension Modules
files: movetogetdents64.diff
keywords: patch
messages: 179937
nosy: riku-voipio
priority: normal
severity: normal
status: open
title: _posixsubprocess module uses outdated getdents system call
versions: Python 3.3
Added file: http://bugs.python.org/file28723/movetogetdents64.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16962>
_______________________________________


More information about the New-bugs-announce mailing list