Debian Codegraph @

testsuite/systemtap.syscall/chroot.c

raw
1 /* COVERAGE: chroot */
2
3 #include <unistd.h>
4 #include <sys/mman.h>
5
6 int main()
7 {
8 mlockall(MCL_CURRENT);
9
10 chroot("/tmp");
11 //staptest// chroot ("/tmp") = NNNN
12
13 chroot((const char *)-1);
14 #ifdef __s390__
15 //staptest// chroot (0x[7]?[f]+) = NNNN
16 #else
17 //staptest// chroot (0x[f]+) = NNNN
18 #endif
19
20 return 0;
21 }