commit | a5cfcad0e35e394adb5d25a5f5fbc3065fea5b85 | [log] [tgz] |
---|---|---|
author | Gregory P. Smith <greg@mad-scientist.com> | Wed Mar 19 23:03:25 2008 +0000 |
committer | Gregory P. Smith <greg@mad-scientist.com> | Wed Mar 19 23:03:25 2008 +0000 |
tree | 3f7fe7e5325a12965f5e450b8132abac7c873ef5 | |
parent | 48581c5f08d368942840f99687fce7f10758fa7c [diff] |
Prevent ioctl op codes from being sign extended from int to unsigned long when used on platforms that actually define ioctl as taking an unsigned long. (the BSDs and OS X / Darwin) Adds a unittest for fcntl.ioctl that tests what happens with both positive and negative numbers. This was done because of issue1471 but I'm not able to reproduce -that- problem in the first place on Linux 32bit or 64bit or OS X 10.4 & 10.5 32bit or 64 bit.