Subject: lib/338: FREAD|FWRITE not visible for TIOCFLUSH
To: None <gnats-admin>
From: John Brezak <brezak@ch.hp.com>
List: netbsd-bugs
Date: 07/12/1994 10:50:06
>Number: 338
>Category: lib
>Synopsis: TIOCFLUSH uses FREAD|FWRITE in its parameter and the are only visible ifdef KERNEL
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin (Library Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 12 10:50:04 1994
>Originator: John Brezak
>Organization:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
John Brezak UUCP: uunet!apollo.hp!brezak
Hewlett Packard/Apollo Internet: brezak@ch.hp.com
300 Apollo Drive Phone: (508) 436-4915
Chelmsford, Massachusetts Fax: (508) 436-5103
>Release: 0.9B
>Environment:
System: NetBSD sussex 0.9B NetBSD 0.9B (SUSSEX) #13: Mon Jun 13 08:38:44 EDT 1994 brezak@sussex:/u0/src/netbsd/sys/arch/i386/compile/SUSSEX i386
>Description:
In <fcntl.h> and <sys/fcntl.h> FREAD and FWRITE are protected by ifdef KERNEL,
however they are used by the TIOCFLUSH ioctl as values in its int param.
>How-To-Repeat:
>Fix:
Suggest to not ifdef FREAD and FWRITE so it is visible to user programs.
>Audit-Trail:
>Unformatted:
------------------------------------------------------------------------------