Explorar o código

add acct syscall source file, omitted in last syscalls commit

Rich Felker %!s(int64=12) %!d(string=hai) anos
pai
achega
fe0260400e
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      src/unistd/acct.c

+ 9 - 0
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);
+}