Subject: Re: heads up: more de-__Ping
To: Perry E. Metzger <perry@piermont.com>
From: David Laight <david@l8s.co.uk>
List: current-users
Date: 02/08/2005 06:19:51
> soundcard.h:
> 
> #define ioctl(x,y,z) _oss_ioctl(x,y,z)
> int _oss_ioctl(int fd, unsigned long com, void *argp);
> 
> ioctl.h:
> 
> int     ioctl(int, unsigned long, ...);
> 
> They don't match..

Not only that, the version in ioctl.h has several problems.

1) ioctl(fd, code, 1) and ioctl(fd, code, (void *)1) may have
   different ABI. eg on a 64bit platform.

2) Some architectures use different calling conventions for
   varargs functions (eg passing everything on the stack, instead
   of using registers).

	David

-- 
David Laight: david@l8s.co.uk