3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine * This file and its contents are supplied under the terms of the
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine * Common Development and Distribution License ("CDDL"), version 1.0.
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine * You may only use this file in accordance with the terms of version
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine * 1.0 of the CDDL.
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine * A full copy of the text of the CDDL should have accompanied this
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine * source. A copy of the CDDL is also available via the Internet at
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine * Copyright (c) 2014, Joyent, Inc.
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine * Note that these structures can end up in both a 32-bit and 64-bit libproc.
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine * Therefore, one should generally avoid using types whose size change between
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine * ILP32 and LP64 and instead use the correct fixed width type. eg. long should
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine * be int32_t and int64_t as appropriate to whether it's a 32-bit or 64-bit
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine/* Process Information */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine uint8_t pr_state; /* Numeric process state */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine int32_t pr_ppid; /* Parent's process ID */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine char pr_fname[16]; /* Filename of executable */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine char pr_psargs[80]; /* Initial part of arg list */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine uint8_t pr_state; /* Numeric process state */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine int32_t pr_ppid; /* Parent's process ID */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine char pr_fname[16]; /* Filename of executable */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine char pr_psargs[80]; /* Initial part of arg list */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine/* Thread Information */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine lx_elf_siginfo_t pr_info; /* Singal Info */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine uint32_t pr_sigpend; /* Set of pending signals */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine uint32_t pr_sighold; /* Set of held signals */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine int32_t pr_ppid; /* Parent's process ID */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine lx_elf_timeval32_t pr_utime; /* User time */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine lx_elf_timeval32_t pr_stime; /* System time */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine lx_elf_timeval32_t pr_cutime; /* Cumulative user time */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine lx_elf_timeval32_t pr_cstime; /* Cumulative system time */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine lx_ia32_regs_t pr_reg; /* CPU registers */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine uint32_t pr_fpvalid; /* True if we have fp state */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine lx_elf_siginfo_t pr_info; /* Singal Info */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine uint64_t pr_sigpend; /* Set of pending signals */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine uint64_t pr_sighold; /* Set of held signals */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine int32_t pr_ppid; /* Parent's process ID */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine lx_elf_timeval64_t pr_utime; /* User time */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine lx_elf_timeval64_t pr_stime; /* System time */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine lx_elf_timeval64_t pr_cutime; /* Cumulative user time */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine lx_elf_timeval64_t pr_cstime; /* Cumulative system time */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine lx_amd64_regs_t pr_reg; /* CPU registers */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine uint32_t pr_fpvalid; /* True if we have fp state */
3c457126d6dda7ae8bfeed1d0f7023b997a97622Timothy J Fontaine#endif /* _PCORE_LINUX_H */