[PATCH 12/13] mips64: ioctl
dalias at aerifal.cx
Sun Sep 17 18:06:52 UTC 2006
On Mon, Sep 18, 2006 at 01:40:40AM +0900, Atsushi Nemoto wrote:
> The ioctl number must be sign-extended 32bit value for mips64 kernel.
> Without this change, libc passes 0x0000000080000000 for ioctl request
> 0x80000000, but kernel expects 0xffffffff80000000 for the ioctl.
> Since I do not know about other 64bit system, I think adding mips
> specific ioctl.c would be better than touching the common one. This
> mips specific ioctl.c can be used for all MIPS ABI.
> If the type of second argument of ioctl() was changed to int, this
> patch is not needed.
Note that SUSv3 requires the second argument to be int. This whole
issue comes from following a glibc bug and making it long.
More information about the uClibc