Date: Sat, 11 Oct 1997 22:01:49 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: mdean@best.com (mdean) Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Is this a bug, or just a feature. Message-ID: <199710112201.PAA05910@usr06.primenet.com> In-Reply-To: <Pine.SGI.3.95.971011141336.22060A-100000@shellx.best.com> from "mdean" at Oct 11, 97 02:16:52 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> Shouldn't it be an error to call open("/dev/fd0", RD_ONLY|WR_ONLY,0)? > I guess if your device doesn't like being read-only and write-only then it > should look at oflags for itself? Or should this be caught at the syscall > and rejected? Do you mean O_RDONLY|O_WRONLY? These are not bit values: #define O_RDONLY 0x0000 /* open for reading only */ #define O_WRONLY 0x0001 /* open for writing only */ #define O_RDWR 0x0002 /* open for reading and writing */ (O_RDONLY|O_WRONLY) == O_WRONLY Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710112201.PAA05910>