Browse Source

add acct syscall source file, omitted in last syscalls commit

Rich Felker 12 năm trước cách đây
mục cha
commit
fe0260400e
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  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);
+}