summaryrefslogtreecommitdiff
path: root/src/unistd/acct.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/acct.c')
-rw-r--r--src/unistd/acct.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/unistd/acct.c b/src/unistd/acct.c
new file mode 100644
index 00000000..93847127
--- /dev/null
+++ b/src/unistd/acct.c
@@ -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);
+}