NetBSD Problem Report #338
From gnats Tue Jul 12 10:46:16 1994
Received: from relay.hp.com (relay.hp.com [15.255.152.2]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with SMTP id KAA16265 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Tue, 12 Jul 1994 10:46:15 -0700
Message-Id: <199407121746.NAA21987@sussex.hudson.ma>
Date: Tue, 12 Jul 1994 13:46:46 -0400
From: John Brezak <brezak@ch.hp.com>
Reply-To: brezak@ch.hp.com
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: FREAD|FWRITE not visible for TIOCFLUSH
X-Send-Pr-Version: 3.2
>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
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 12 10:50:04 +0000 1994
>Closed-Date: Mon Sep 19 07:38:30 +0000 1994
>Last-Modified:
>Originator: John Brezak
>Release: 0.9B
>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
>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.
FREAD and FWRITE are not #ifndef _POSIX_SOURCE, and visible to
user-level programs. However, programs should be using tcflush()
instead of TIOCFLUSH directly. - mycroft
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Mon Sep 19 00:38:30 PDT 1994
State-Changed-Why:
Fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.