projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
iwm: Fix S:N reporting in ifconfig(8)
[dragonfly.git]
/
test
/
debug
/
sigtramp.c
1
2
#include <stdio.h>
3
#include <stdlib.h>
4
#include <unistd.h>
5
#include <sys/sysctl.h>
6
#include <sys/kinfo.h>
7
8
int
9
main(int ac, char **av)
10
{
11
struct kinfo_sigtramp tramp;
12
int mib[3];
13
size_t len;
14
15
mib[0] = CTL_KERN;
16
mib[1] = KERN_PROC;
17
mib[2] = KERN_PROC_SIGTRAMP;
18
19
len = sizeof(tramp);
20
if (sysctl(mib, 3, &tramp, &len, NULL, 0) < 0) {
21
perror("tramp");
22
exit(1);
23
}
24
printf("TRAMP: %016jx-%016jx\n",
25
tramp.ksigtramp_start,
26
tramp.ksigtramp_end);
27
return 0;
28
}