On Sat, 18 Dec 2010, der Mouse wrote:

> >>    int     ioctl(int, unsigned long, ...);
>
> > Most of our ioctl's take pointer arguments.  Some streams ioctls
> > though take int arguments (ioctl(fd, I_FLUSH, FLUSHR) for example)
> > and using void * as the argument would not compile cleanly.
>
> Must FLUSHR (to continue your example) be defined as an int value?

it seems to be a flag

> I'm just brainstorming possible ways to avoid inflicting a varargs
> declaration on all users of ioctl.

they already have it, see <sys/ioctl.h> and

  http://pubs.opengroup.org/onlinepubs/009695399/functions/ioctl.html

iain

Reply via email to