From owner-freebsd-hackers Tue May 2 22:48:06 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id WAA00955 for hackers-outgoing; Tue, 2 May 1995 22:48:06 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id WAA00947 for ; Tue, 2 May 1995 22:47:56 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id PAA28631; Wed, 3 May 1995 15:45:22 +1000 Date: Wed, 3 May 1995 15:45:22 +1000 From: Bruce Evans Message-Id: <199505030545.PAA28631@godzilla.zeta.org.au> To: dufault@hda.com, hackers@FreeBSD.org Subject: Re: what's in ioctl flag arg? Sender: hackers-owner@FreeBSD.org Precedence: bulk >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