diff options
| author | manu <manu@NetBSD.org> | 2011-08-08 12:08:52 +0000 |
|---|---|---|
| committer | manu <manu@NetBSD.org> | 2011-08-08 12:08:52 +0000 |
| commit | 0ad05b0bb20964ab02b164475f8df0d5194ae272 (patch) | |
| tree | 5973401590104b9b1d3816c5a39b471736a99125 /include | |
| parent | 732157ec6f88eb190f47d691772adb5c619800e8 (diff) | |
First stage of support for Extended API set 2. Most of the think is
unimplemented, except enough of linkat(2) to hardlink to a symlink.
Everything new in headers is guarded #ifdef _INCOMPLETE_XOPEN_C063 since
some software (e.g.: xcvs in our own tree) will assume they can use openat(2)
when AT_FDCWD is defined. _INCOMPLETE_XOPEN_C063 will go away once support
will be completed.
Diffstat (limited to 'include')
| -rw-r--r-- | include/unistd.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h index f9d5b669ce7..3fc74492b22 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1,4 +1,4 @@ -/* $NetBSD: unistd.h,v 1.126 2011/06/26 16:42:40 christos Exp $ */ +/* $NetBSD: unistd.h,v 1.127 2011/08/08 12:08:53 manu Exp $ */ /*- * Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc. @@ -291,6 +291,24 @@ ssize_t pread(int, void *, size_t, off_t); ssize_t pwrite(int, const void *, size_t, off_t); #endif +/* + * X/Open Extended API set 2 (a.k.a. C063) + */ +#if defined(_INCOMPLETE_XOPEN_C063) +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 fexecve(int, char * const *, char * const *); +int readlinkat(int, const char *, char *, size_t); +int symlinkat(const char *, int, const char *); +int unlinkat(int, const char *, int); +#endif + /* * Implementation-defined extensions |
