add acct syscall source file, omitted in last syscalls commit
authorRich Felker <dalias@aerifal.cx>
Sun, 9 Sep 2012 02:23:03 +0000 (22:23 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 9 Sep 2012 02:23:03 +0000 (22:23 -0400)
src/unistd/acct.c [new file with mode: 0644]

diff --git a/src/unistd/acct.c b/src/unistd/acct.c
new file mode 100644 (file)
index 0000000..9384712
--- /dev/null
@@ -0,0 +1,9 @@
+#define _GNU_SOURCE
+#include <unistd.h>
+#include "syscall.h"
+#include "libc.h"
+
+int acct(const char *filename)
+{
+        return syscall(SYS_acct, filename);
+}