mips64 patches
Peter S. Mazinger
ps.m at gmx.net
Thu Jul 6 13:14:12 PDT 2006
On Thu, 6 Jul 2006, Rich Felker wrote:
> > +int ioctl(int fd, unsigned long int request, ...)
> > +{
> > + void *arg;
> > + va_list list;
> > +
> > + va_start(list, request);
> > + arg = va_arg(list, void *);
> > +
> > + va_end(list);
> > + return __syscall_ioctl(fd, request, arg);
> > +}
> > +libc_hidden_def(ioctl)
>
> This prototype for ioctl is wrong. request is supposed to be int in
> the userspace api as well as the syscall. See SUSv3.
>
> Rich
man-page states the same, glibc uses unsigned long apparently for
some compatibility ChangeLog.2
Peter
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
More information about the uClibc
mailing list