Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jul 1998 00:05:28 -0700
From:      Mike Smith <mike@smith.net.au>
To:        "Kenneth D. Merry" <ken@plutotech.com>
Cc:        ckempf@enigami.com (Cory Kempf), freebsd-scsi@FreeBSD.ORG
Subject:   Re: camlib.h bugs 
Message-ID:  <199807310705.AAA00818@antipodes.cdrom.com>
In-Reply-To: Your message of "Fri, 31 Jul 1998 00:18:04 MDT." <199807310618.AAA15459@panzer.plutotech.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > cam_open_device accepts flags for its second parameter.  It would be
> > nice if camlib.h included fcntl.h where these flags are defined.
> 
> 	scsi_open() in the old SCSI userland code takes the same kind of
> flags, and doesn't include fcntl.h.  (although that in and of itself isn't
> a reason not to do it)  I suppose it's assumed that if you want the
> O_RDONLY or O_RDWR flags, you'll need to include the file that defines them.

General FreeBSD policy is not to perform recursive includes in headers; 
IMHO it would be bad to make an exception here.  See eg. the open(2) 
manpage.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807310705.AAA00818>