Follow OpenGroup online specification[1], move
fchmodat/mkdirat/mkfifoat/mknodat prototypes to <sys.stat.h>. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html
This commit is contained in:
parent
433c97e823
commit
0d88813605
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: unistd.h,v 1.138 2013/01/12 17:17:26 dholland Exp $ */
|
||||
/* $NetBSD: unistd.h,v 1.139 2013/10/09 09:38:21 njoly Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc.
|
||||
@ -298,11 +298,7 @@ ssize_t pwrite(int, const void *, size_t, off_t);
|
||||
defined(_INCOMPLETE_XOPEN_C063) || defined(_NETBSD_SOURCE)
|
||||
int linkat(int, const char *, int, const char *, int);
|
||||
int renameat(int, const char *, int, const char *);
|
||||
int mkfifoat(int, const char *, mode_t);
|
||||
int mknodat(int, const char *, mode_t, uint32_t);
|
||||
int mkdirat(int, const char *, mode_t);
|
||||
int faccessat(int, const char *, int, int);
|
||||
int fchmodat(int, const char *, mode_t, int);
|
||||
int fchownat(int, const char *, uid_t, gid_t, int);
|
||||
int readlinkat(int, const char *, char *, size_t);
|
||||
int symlinkat(const char *, int, const char *);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: stat.h,v 1.66 2013/04/07 18:47:06 christos Exp $ */
|
||||
/* $NetBSD: stat.h,v 1.67 2013/10/09 09:38:21 njoly Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
@ -274,7 +274,11 @@ int lchmod(const char *, mode_t);
|
||||
*/
|
||||
#if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0) >= 700 || \
|
||||
defined(_NETBSD_SOURCE) || defined(_INCOMPLETE_XOPEN_C063)
|
||||
int fchmodat(int, const char *, mode_t, int);
|
||||
int fstatat(int, const char *, struct stat *, int);
|
||||
int mkdirat(int, const char *, mode_t);
|
||||
int mkfifoat(int, const char *, mode_t);
|
||||
int mknodat(int, const char *, mode_t, uint32_t);
|
||||
int utimensat(int, const char *, const struct timespec *, int);
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user