blob: 674972dc22d770129ab40154e31ae6604cc93ac7 [file] [log] [blame]
Gordon Ross1886f672015-03-04 18:14:23 -05001/*
2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
5 * 1.0 of the CDDL.
6 *
7 * A full copy of the text of the CDDL should have accompanied this
8 * source. A copy of the CDDL is also available via the Internet at
9 * http://www.illumos.org/license/CDDL.
10 */
11
12/*
13 * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
John Levonab618542018-10-08 15:34:11 +010014 * Copyright 2018 Joyent, Inc.
Gordon Ross1886f672015-03-04 18:14:23 -050015 */
16
17/*
18 * A little program who's only purpose is to get all the
19 * CTF type information we want into an object.
20 */
21
22#include <sys/types.h>
23#include <sys/stat.h>
24#include <sys/sysmacros.h>
25#include <sys/corectl.h>
26#define _STRUCTURED_PROC 1
27#include <sys/procfs.h>
28#include <sys/auxv.h>
29#include <sys/old_procfs.h>
30#include <sys/utsname.h>
Richard Lowed2a70782014-04-16 02:39:14 +010031#include <sys/secflags.h>
Gordon Ross1886f672015-03-04 18:14:23 -050032
33/* prgregset_t is a define on intel */
34#ifdef prgregset_t
35typedef prgregset_t
36#undef prgregset_t
37 prgregset_t;
38#endif
39
40/* instantiate the types for CTF */
41auxv_t auxv;
42prgregset_t prgregset;
43lwpstatus_t lwpstatus;
44pstatus_t pstatus;
45prstatus_t prstatus;
46psinfo_t psinfo;
47prpsinfo_t prpsinfo;
48lwpsinfo_t lwpsinfo;
49prcred_t prcred;
50prpriv_t prpriv;
51priv_impl_info_t priv_impl;
52fltset_t fltset;
53siginfo_t siginfo;
54sigset_t sigset;
55struct sigaction sigact;
56stack_t stack;
57sysset_t sysset;
58timestruc_t ts;
59struct utsname uts;
60prfdinfo_t ptfd;
Richard Lowed2a70782014-04-16 02:39:14 +010061prsecflags_t psf;
John Levonab618542018-10-08 15:34:11 +010062prlwpname_t psn;