10 */
11
12 /*
13 * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
14 */
15
16 /*
17 * A little program who's only purpose is to get all the
18 * CTF type information we want into an object.
19 */
20
21 #include <sys/types.h>
22 #include <sys/stat.h>
23 #include <sys/sysmacros.h>
24 #include <sys/corectl.h>
25 #define _STRUCTURED_PROC 1
26 #include <sys/procfs.h>
27 #include <sys/auxv.h>
28 #include <sys/old_procfs.h>
29 #include <sys/utsname.h>
30
31 /* prgregset_t is a define on intel */
32 #ifdef prgregset_t
33 typedef prgregset_t
34 #undef prgregset_t
35 prgregset_t;
36 #endif
37
38 /* instantiate the types for CTF */
39 auxv_t auxv;
40 prgregset_t prgregset;
41 lwpstatus_t lwpstatus;
42 pstatus_t pstatus;
43 prstatus_t prstatus;
44 psinfo_t psinfo;
45 prpsinfo_t prpsinfo;
46 lwpsinfo_t lwpsinfo;
47 prcred_t prcred;
48 prpriv_t prpriv;
49 priv_impl_info_t priv_impl;
50 fltset_t fltset;
51 siginfo_t siginfo;
52 sigset_t sigset;
53 struct sigaction sigact;
54 stack_t stack;
55 sysset_t sysset;
56 timestruc_t ts;
57 struct utsname uts;
58 prfdinfo_t ptfd;
|
10 */
11
12 /*
13 * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
14 */
15
16 /*
17 * A little program who's only purpose is to get all the
18 * CTF type information we want into an object.
19 */
20
21 #include <sys/types.h>
22 #include <sys/stat.h>
23 #include <sys/sysmacros.h>
24 #include <sys/corectl.h>
25 #define _STRUCTURED_PROC 1
26 #include <sys/procfs.h>
27 #include <sys/auxv.h>
28 #include <sys/old_procfs.h>
29 #include <sys/utsname.h>
30 #include <sys/secflags.h>
31
32 /* prgregset_t is a define on intel */
33 #ifdef prgregset_t
34 typedef prgregset_t
35 #undef prgregset_t
36 prgregset_t;
37 #endif
38
39 /* instantiate the types for CTF */
40 auxv_t auxv;
41 prgregset_t prgregset;
42 lwpstatus_t lwpstatus;
43 pstatus_t pstatus;
44 prstatus_t prstatus;
45 psinfo_t psinfo;
46 prpsinfo_t prpsinfo;
47 lwpsinfo_t lwpsinfo;
48 prcred_t prcred;
49 prpriv_t prpriv;
50 priv_impl_info_t priv_impl;
51 fltset_t fltset;
52 siginfo_t siginfo;
53 sigset_t sigset;
54 struct sigaction sigact;
55 stack_t stack;
56 sysset_t sysset;
57 timestruc_t ts;
58 struct utsname uts;
59 prfdinfo_t ptfd;
60 prsecflags_t psf;
|