systable
const struct systable *stp;
const struct systable *stp;
void showpaths(private_t *, const struct systable *);
showpaths(private_t *pri, const struct systable *stp)
showpaths(pri, &systable[SYS_execve]);
const struct systable *stp = systable;
sys = stp-systable;
const struct systable *
const struct systable *stp = NULL;
stp = &systable[((unsigned)syscall < SYSEND)? syscall : 0];
const struct systable *stp = subsys(syscall, subcode);
const struct systable systable[] = {
#define SYSEND ((sizeof (systable) / sizeof (struct systable))-1)
const struct systable faccessattable[] = {
#define NACCESSCODE (sizeof (faccessattable) / sizeof (struct systable))
const struct systable fchmodattable[] = {
#define NCHMODCODE (sizeof (fchmodattable) / sizeof (struct systable))
const struct systable fchownattable[] = {
#define NCHOWNCODE (sizeof (fchownattable) / sizeof (struct systable))
const struct systable mkdiratattable[] = {
#define NMKDIRCODE (sizeof (mkdiratattable) / sizeof (struct systable))
const struct systable mknodatattable[] = {
#define NMKMODCODE (sizeof (mknodatattable) / sizeof (struct systable))
const struct systable renameattable[] = {
#define NRENAMECODE (sizeof (renameattable) / sizeof (struct systable))
const struct systable linkattable[] = {
#define NLINKATCODE (sizeof (linkattable) / sizeof (struct systable))
const struct systable unlinkattable[] = {
#define NUNLINKCODE (sizeof (unlinkattable) / sizeof (struct systable))
const struct systable symlinkattable[] = {
#define NSYMLINKCODE (sizeof (symlinkattable) / sizeof (struct systable))
const struct systable readlinkattable[] = {
#define NREADLINKCODE (sizeof (readlinkattable) / sizeof (struct systable))
const struct systable fstatattable[] = {
#define NSTATCODE (sizeof (fstatattable) / sizeof (struct systable))
const struct systable fstatat64table[] = {
#define NSTAT64CODE (sizeof (fstatat64table) / sizeof (struct systable))
const struct systable openattable[] = {
#define NOPENATCODE (sizeof (openattable) / sizeof (struct systable))
const struct systable openat64table[] = {
#define NOPENAT64CODE (sizeof (openat64table) / sizeof (struct systable))
const struct systable opentable[] = {
#define NOPENCODE (sizeof (opentable) / sizeof (struct systable))
const struct systable open64table[] = {
#define NOPEN64CODE (sizeof (open64table) / sizeof (struct systable))
const struct systable fcntltable[] = {
#define NFCNTLCODE (sizeof (fcntltable) / sizeof (struct systable))
const struct systable msgtable[] = {
#define NMSGCODE (sizeof (msgtable) / sizeof (struct systable))
const struct systable semtable[] = {
#define NSEMCODE (sizeof (semtable) / sizeof (struct systable))
const struct systable shmtable[] = {
#define NSHMCODE (sizeof (shmtable) / sizeof (struct systable))
const struct systable pidtable[] = {
#define NPIDCODE (sizeof (pidtable) / sizeof (struct systable))
const struct systable sfstable[] = {
#define NSFSCODE (sizeof (sfstable) / sizeof (struct systable))
const struct systable utstable[] = {
#define NUTSCODE (sizeof (utstable) / sizeof (struct systable))
const struct systable rctltable[] = {
#define NRCTLCODE (sizeof (rctltable) / sizeof (struct systable))
const struct systable sgptable[] = {
#define NSGPCODE (sizeof (sgptable) / sizeof (struct systable))
const struct systable ctxtable[] = {
#define NCTXCODE (sizeof (ctxtable) / sizeof (struct systable))
const struct systable hrttable[] = {
#define NHRTCODE (sizeof (hrttable) / sizeof (struct systable))
const struct systable cortable[] = {
#define NCORCODE (sizeof (cortable) / sizeof (struct systable))
const struct systable aiotable[] = {
#define NAIOCODE (sizeof (aiotable) / sizeof (struct systable))
const struct systable doortable[] = {
#define NDOORCODE (sizeof (doortable) / sizeof (struct systable))
const struct systable psettable[] = {
#define NPSETCODE (sizeof (psettable) / sizeof (struct systable))
const struct systable lwpcreatetable[] = {
#define NLWPCREATECODE (sizeof (lwpcreatetable) / sizeof (struct systable))
static const struct systable tasksystable[] = {
#define NTASKSYSCODE (sizeof (tasksystable) / sizeof (struct systable))
static const struct systable privsystable[] = {
#define NPRIVSYSCODE (sizeof (privsystable) / sizeof (struct systable))
static const struct systable exacctsystable[] = {
#define NEXACCTSYSCODE (sizeof (exacctsystable) / sizeof (struct systable))
static const struct systable lwpparktable[] = {
#define NLWPPARKCODE (sizeof (lwpparktable) / sizeof (struct systable))
static const struct systable lwprwlocktable[] = {
#define NLWPRWLOCKCODE (sizeof (lwprwlocktable) / sizeof (struct systable))
static const struct systable sendfilevsystable[] = {
(sizeof (sendfilevsystable) / sizeof (struct systable))
static const struct systable lgrpsystable[] = {
#define NLGRPSYSCODE (sizeof (lgrpsystable) / sizeof (struct systable))
static const struct systable rusagesystable[] = {
(sizeof (rusagesystable) / sizeof (struct systable))
static const struct systable ucredsystable[] = {
(sizeof (ucredsystable) / sizeof (struct systable))
const struct systable portfstable[] = {
#define NPORTCODE (sizeof (portfstable) / sizeof (struct systable))
static const struct systable zonetable[] = {
#define NZONECODE (sizeof (zonetable) / sizeof (struct systable))
static const struct systable labeltable[] = {
#define NLABELCODE (sizeof (labeltable) / sizeof (struct systable))
const struct systable forktable[] = {
#define NFORKCODE (sizeof (forktable) / sizeof (struct systable))
const struct systable sidsystable[] = {
#define NSIDSYSCODE (sizeof (sidsystable) / sizeof (struct systable))
const struct systable utimesystable[] = {
#define NUTIMESYSCODE (sizeof (utimesystable) / sizeof (struct systable))
const struct systable sockconfigtable[] = {
#define NSOCKCONFIGCODE (sizeof (sockconfigtable) / sizeof (struct systable))
extern const struct systable systable[];
extern const struct systable *subsys(int, int);
static const char *const systable[] = {
#define SYSEND (sizeof (systable) / sizeof (systable[0]))
name = systable[sys];
if (systable[i] != NULL && strcmp(systable[i], str) == 0) {