From owner-freebsd-hackers Tue May 2 15:08:48 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA17776 for hackers-outgoing; Tue, 2 May 1995 15:08:48 -0700 Received: from hda.com (hda.com [199.232.40.182]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id PAA17770 for ; Tue, 2 May 1995 15:08:45 -0700 Received: (dufault@localhost) by hda.com (8.6.9/8.3) id SAA00880; Tue, 2 May 1995 18:07:12 -0400 From: Peter Dufault Message-Id: <199505022207.SAA00880@hda.com> Subject: what's in ioctl flag arg? To: hackers@FreeBSD.org Date: Tue, 2 May 1995 18:07:12 -0400 (EDT) X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 474 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. Is this how I verify that you can't write to a file in the ioctl call: (flag & O_ACCMODE) == O_RDONLY Peter -- Peter Dufault Real Time Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936 dufault@hda.com Fax: 508 433 5267