[klibc] [PATCH] unlinkat: Add missing third flag argument
maximilian attems
max at stro.at
Wed Jul 13 06:55:04 PDT 2011
unlinkat(2) features a third arg with a flag,
allowing to a nuke a dir with it, fix it.
Signed-off-by: maximilian attems <max at stro.at>
---
usr/include/unistd.h | 2 +-
usr/klibc/SYSCALLS.def | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/usr/include/unistd.h b/usr/include/unistd.h
index 97760d4..f286c33 100644
--- a/usr/include/unistd.h
+++ b/usr/include/unistd.h
@@ -61,7 +61,7 @@ __extern int access(const char *, int);
__extern int link(const char *, const char *);
__extern int linkat(int, const char *, int, const char *);
__extern int unlink(const char *);
-__extern int unlinkat(int, const char *);
+__extern int unlinkat(int, const char *, int);
__extern int chdir(const char *);
__extern int fchdir(int);
__extern int chmod(const char *, mode_t);
diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def
index 9e1d349..d3279c7 100644
--- a/usr/klibc/SYSCALLS.def
+++ b/usr/klibc/SYSCALLS.def
@@ -104,7 +104,7 @@ int access(const char *, int);
int link(const char *, const char *);
<?> int linkat(int, const char *, int, const char *);
int unlink(const char *);
-<?> int unlinkat(int, const char *);
+<?> int unlinkat(int, const char *, int);
int chdir(const char *);
int fchdir(int);
int rename(const char *, const char *);
--
1.7.5.4
More information about the klibc
mailing list