struct elf_siginfo
{ int si_signo; /* signal number */ int si_code; /* extra code */ int si_errno; /* errno */
};
/* *DefinitionstogenerateIntelSVR4-likecorefiles. *ThesemostlyhavethesamenamesastheSVR4typeswith"elf_" *tackedonthefronttopreventclasheswithlinuxdefinitions, *andthetypedefformshavebeenavoided.Thisismostlylike *theSVR4structure,butmoreLinuxy,withthingsthatLinuxdoes *notsupportandwhichgdbdoesn'treallyuseexcluded.
*/ struct elf_prstatus_common
{ struct elf_siginfo pr_info; /* Info associated with signal */ short pr_cursig; /* Current signal */ unsignedlong pr_sigpend; /* Set of pending signals */ unsignedlong pr_sighold; /* Set of held signals */
pid_t pr_pid;
pid_t pr_ppid;
pid_t pr_pgrp;
pid_t pr_sid; struct __kernel_old_timeval pr_utime; /* User time */ struct __kernel_old_timeval pr_stime; /* System time */ struct __kernel_old_timeval pr_cutime; /* Cumulative user time */ struct __kernel_old_timeval pr_cstime; /* Cumulative system time */
};
struct elf_prstatus
{ struct elf_prstatus_common common;
elf_gregset_t pr_reg; /* GP registers */ int pr_fpvalid; /* True if math co-processor being used. */
};
#define ELF_PRARGSZ (80) /* Number of chars for args */
struct elf_prpsinfo
{ char pr_state; /* numeric process state */ char pr_sname; /* char for pr_state */ char pr_zomb; /* zombie */ char pr_nice; /* nice val */ unsignedlong pr_flag; /* flags */
__kernel_uid_t pr_uid;
__kernel_gid_t pr_gid;
pid_t pr_pid, pr_ppid, pr_pgrp, pr_sid; /* Lots missing */ /* *Thehard-coded16isderivedfromTASK_COMM_LEN,butitcan'tbe *changedasitisexposedtouserspace.We'dbettermakeithard-coded *here.
*/ char pr_fname[16]; /* filename of executable */ char pr_psargs[ELF_PRARGSZ]; /* initial part of arg list */
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.