diff options
author | maximilian attems <max@stro.at> | 2012-05-23 13:51:34 +0200 |
---|---|---|
committer | maximilian attems <max@stro.at> | 2012-05-23 13:54:12 +0200 |
commit | da701137f6eb9d7b05bcf27115999cf82832154a (patch) | |
tree | ef4019f459f2ae467ee8ff512efe3636744ad04a | |
parent | 1eaa73ce57def6d35bfe9a11071824990d9f0576 (diff) | |
download | klibc-da701137f6eb9d7b05bcf27115999cf82832154a.tar.gz |
[klibc] Add faccessat() system call
Similar to access, but acts relative to a directory.
Used in util-linux.
Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r-- | usr/include/unistd.h | 1 | ||||
-rw-r--r-- | usr/klibc/SYSCALLS.def | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/usr/include/unistd.h b/usr/include/unistd.h index 0390748b28c554..f0e19c276cb488 100644 --- a/usr/include/unistd.h +++ b/usr/include/unistd.h @@ -59,6 +59,7 @@ __extern int setfsuid(uid_t); #define F_OK 0 /* Existence */ __extern int access(const char *, int); +__extern int faccessat(int, const char *, int, int); __extern int link(const char *, const char *); __extern int linkat(int, const char *, int, const char *); __extern int unlink(const char *); diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def index d935a92bcb63bf..0463df8481a69b 100644 --- a/usr/klibc/SYSCALLS.def +++ b/usr/klibc/SYSCALLS.def @@ -107,6 +107,7 @@ int swapoff(const char *); * Inode-related system calls */ int access(const char *, int); +int faccessat(int, const char *, int, int); int link(const char *, const char *); <?> int linkat(int, const char *, int, const char *); int unlink(const char *); |