diff options
author | kib <kib@FreeBSD.org> | 2008-03-31 12:14:04 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-03-31 12:14:04 +0000 |
commit | 2ad0eb2d91aa816f59ca8be579d30e4b4a5dc788 (patch) | |
tree | 01ab711c3d38413d1f4d7a5f2a4b8eb6ba3b8d7d /include | |
parent | 5c017b360f4996ed64753b8bfc0fa13a974bf4a8 (diff) | |
download | FreeBSD-src-2ad0eb2d91aa816f59ca8be579d30e4b4a5dc788.zip FreeBSD-src-2ad0eb2d91aa816f59ca8be579d30e4b4a5dc788.tar.gz |
Add the libc glue and headers definitions for the *at() syscalls.
Based on the submission by rdivacky,
sponsored by Google Summer of Code 2007
Reviewed by: rwatson, rdivacky
Tested by: pho
Diffstat (limited to 'include')
-rw-r--r-- | include/stdio.h | 3 | ||||
-rw-r--r-- | include/unistd.h | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h index 2a682b8..6adc9d7 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -449,5 +449,8 @@ extern int __isthreaded; #define putchar_unlocked(x) putc_unlocked(x, stdout) #endif +#if __BSD_VISIBLE +int renameat(int, const char *, int, const char *); +#endif __END_DECLS #endif /* !_STDIO_H_ */ diff --git a/include/unistd.h b/include/unistd.h index b768685..a277e42 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -559,6 +559,17 @@ void *valloc(size_t); /* obsoleted by malloc() */ extern int optreset; /* getopt(3) external variable */ #endif #endif /* __BSD_VISIBLE */ + +#if __BSD_VISIBLE +int faccessat(int, const char *, 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 linkat(int, const char *, int, const char *, int); +ssize_t readlinkat(int, const char *, char *, size_t); +int symlinkat(const char *, int, const char *); +int unlinkat(int, const char *, int); +#endif /* __BSD_VISIBLE */ __END_DECLS #endif /* !_UNISTD_H_ */ |