[uClibc]acct()
Brian Stafford
brian.stafford at office-logic.com
Thu Nov 15 12:46:36 UTC 2001
Hi all.
The acct() system call is not implemented in uClibc. The following patch
fixes this. If you have not configured BSD process accounting in the linux
kernel, acct() will always fail with ENOSYS.
Brian Stafford
diff -u -r1.46 syscalls.c
--- libc/sysdeps/linux/common/syscalls.c 2001/10/17 06:07:07 1.46
+++ libc/sysdeps/linux/common/syscalls.c 2001/11/15 12:44:01
@@ -374,6 +374,10 @@
#endif
//#define __NR_acct 51
+#ifdef L_acct
+#include <unistd.h>
+_syscall1(int, acct, const char *, filename);
+#endif
//#define __NR_umount2 52
#ifdef L_umount2
More information about the uClibc
mailing list