• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "tests.h"
2 #include <asm/unistd.h>
3 
4 #ifdef __NR_acct
5 
6 # include <stdio.h>
7 # include <unistd.h>
8 
9 int
main(void)10 main(void)
11 {
12 	const char sample[] = "acct_sample";
13 
14 	long rc = syscall(__NR_acct, sample);
15 	printf("acct(\"%s\") = %ld %s (%m)\n",
16 	       sample, rc, errno2name());
17 
18 	puts("+++ exited with 0 +++");
19 	return 0;
20 }
21 
22 #else
23 
24 SKIP_MAIN_UNDEFINED("__NR__acct")
25 
26 #endif
27