Debian Codegraph @

testsuite/systemtap.syscall/getsid.c

raw
1 /* COVERAGE: getsid */
2 #include <unistd.h>
3
4
5 int main() {
6
7
8 // --- successful call ---
9
10 getsid(1);
11 //staptest// getsid (1) = 1
12
13
14 // --- nasty call ---
15
16 getsid(-1);
17 //staptest// getsid (-1) = -3 (ESRCH)
18
19
20 return 0;
21 }