tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ioctl(2) vs sys/ioctl.h



On Sun, Dec 19, 2010 at 09:06:31PM +0100, Rhialto wrote:
> 
> Easier: the aforementioned constant FLUSHR (and all others) can be
> defined as ((void *)1234) (for appropriate values of 1234).

FLUSHR (and FLUSHW) have to be numbers - they are bit patterns and can
be or'ed together.

> However, we don't have streams, so no streams ioctls, which makes the
> point moot, at least for the given example.

Historically (and outside netbsd) integer args are more common (and the
'cmd' can be 32 bits).


        David

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


Home | Main Index | Thread Index | Old Index