Date: Wed, 3 May 1995 15:45:22 +1000 From: Bruce Evans <bde@zeta.org.au> To: dufault@hda.com, hackers@FreeBSD.org Subject: Re: what's in ioctl flag arg? Message-ID: <199505030545.PAA28631@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>What's in the ioctl flag arg? I hope it is a copy of the >flag passed in to the open(), but I can't find where it gets >set up and I'm not sure if it gets translated into an "F_" >thing instead. It gets translated. >Is this how I verify that you can't write to a file in the ioctl call: >(flag & O_ACCMODE) == O_RDONLY No, use !(flags & FWRITE). Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505030545.PAA28631>