klibc-bot for maximilian attems
2012-May-23 12:00 UTC
[klibc] [klibc:master] Add faccessat() system call
Commit-ID: da701137f6eb9d7b05bcf27115999cf82832154a Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=da701137f6eb9d7b05bcf27115999cf82832154a Author: maximilian attems <max at stro.at> AuthorDate: Wed, 23 May 2012 13:51:34 +0200 Committer: maximilian attems <max at stro.at> CommitDate: Wed, 23 May 2012 13:54:12 +0200 [klibc] Add faccessat() system call Similar to access, but acts relative to a directory. Used in util-linux. Signed-off-by: maximilian attems <max at stro.at> --- usr/include/unistd.h | 1 + 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 0390748..f0e19c2 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 d935a92..0463df8 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 *);