[PATCH 12/13] mips64: ioctl

Mike Frysinger vapier at gentoo.org
Mon Sep 18 19:25:41 UTC 2006

On Sunday 17 September 2006 14:06, Rich Felker wrote:
> 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.

it's already been changed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20060918/01cff774/attachment-0002.pgp 

More information about the uClibc mailing list