[issue1471] ioctl doesn't work properly on 64-bit OpenBSD

Gregory P. Smith report at bugs.python.org
Tue Mar 18 07:34:32 CET 2008


Gregory P. Smith <greg at krypto.org> added the comment:

i'd say the patch is fine.

on linux ioctl takes an int.
on openbsd it takes an unsigned long.
on something else it might even take its own type like an ioctl_t.

regardless, treating the parameter as either a long or unsigned long
will work properly as that will cast downwards to the actual used
parameter type correctly in the C code.

----------
assignee:  -> gregory.p.smith
keywords: +easy, patch
nosy: +gregory.p.smith
resolution: invalid -> 
status: pending -> open
versions: +Python 2.6, Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1471>
__________________________________


More information about the Python-bugs-list mailing list