Subject: lib/262: sys/stat.h S_ISFIFO and S_ISSOCK macros broken
To: None <gnats-admin>
From: None <thomas@mathematik.uni-Bremen.de>
List: netbsd-bugs
Date: 05/24/1994 16:50:04
>Number: 262
>Category: lib
>Synopsis: sys/stat.h S_ISFIFO and S_ISSOCK macros broken
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin (Library Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 24 16:50:03 1994
>Originator: Thomas Eberhardt
>Organization:
CeVis, University of Bremen, Germany
>Release:
>Environment:
System: NetBSD ed209 NetBSD 0.9B NetBSD 0.9B (ED209) #0: Fri May 20 21:20:05 MET DST 1994 thomas@ed209:/usr/src/sys/arch/i386/compile/ED209 i386
Machine: i386
>Description:
The macros:
#define S_ISFIFO(m) ((m & 0170000) == 0100000 || \
(m & 0170000) == 0140000) /* fifo or socket */
#define S_ISSOCK(m) ((m & 0170000) == 0100000 || \
(m & 0170000) == 0140000) /* fifo or socket */
in <sys/stat.h> use 0100000 as the fifo type, but in reality it is 0010000.
>How-To-Repeat:
>Fix:
See Description.
>Audit-Trail:
>Unformatted:
------------------------------------------------------------------------------