Subject: lib/4997: sys/stat.h
To: None <gnats-bugs@gnats.netbsd.org>
From: Michael C. Richardson <mcr@sandelman.ottawa.on.ca>
List: netbsd-bugs
Date: 02/15/1998 16:53:52
>Number: 4997
>Category: lib
>Synopsis: sys/stat.h doesn't work with _XOPEN_SOURCE
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people (Library Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Feb 15 14:05:00 1998
>Last-Modified:
>Originator: Michael C. Richardson
>Organization:
Sandelman Software Works Corporation
>Release: 1.2
>Environment:
System: NetBSD istari.sandelman.ottawa.on.ca 1.3_BETA NetBSD 1.3_BETA (SSW) #1: Wed Dec 24 14:13:46 EST 1997 mcr@istari.sandelman.ottawa.on.ca:/j/netbsd/src/sys/arch/i386/compile/SSW i386
Architecture: i386
>Description:
When one compiles with _XOPEN_SOURCE, sys/types.h doesn't define
u_long, so sys/stat.h breaks.
>How-To-Repeat:
>Fix:
*** /k/netbsd/src/sys/sys/stat.h Tue Jan 13 09:43:48 1998
--- stat.h Sun Feb 15 16:48:28 1998
***************
*** 248,258 ****
#endif
mode_t umask __P((mode_t));
#ifndef _POSIX_SOURCE
! int chflags __P((const char *, u_long));
! int fchflags __P((int, u_long));
int fchmod __P((int, mode_t));
int lchmod __P((const char *, mode_t));
#ifdef __LIBC12_SOURCE__
int lstat __P((const char *, struct stat12 *));
int __lstat13 __P((const char *, struct stat *));
--- 228,237 ----
#endif
mode_t umask __P((mode_t));
#ifndef _POSIX_SOURCE
! int chflags __P((const char *, unsigned long));
! int fchflags __P((int, unsigned long));
int fchmod __P((int, mode_t));
int lchmod __P((const char *, mode_t));
#ifdef __LIBC12_SOURCE__
int lstat __P((const char *, struct stat12 *));
int __lstat13 __P((const char *, struct stat *));
>Audit-Trail:
>Unformatted: