Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/truss/syscall.h
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | struct syscall { | ||||
const char *name; | const char *name; | ||||
u_int ret_type; /* 0, 1, or 2 return values */ | u_int ret_type; /* 0, 1, or 2 return values */ | ||||
u_int nargs; /* actual number of meaningful arguments */ | u_int nargs; /* actual number of meaningful arguments */ | ||||
/* Hopefully, no syscalls with > 10 args */ | /* Hopefully, no syscalls with > 10 args */ | ||||
struct syscall_args args[10]; | struct syscall_args args[10]; | ||||
struct timespec time; /* Time spent for this call */ | struct timespec time; /* Time spent for this call */ | ||||
int ncalls; /* Number of calls */ | int ncalls; /* Number of calls */ | ||||
int nerror; /* Number of calls that returned with error */ | int nerror; /* Number of calls that returned with error */ | ||||
bool unknown; /* Unknown system call */ | |||||
}; | }; | ||||
struct syscall *get_syscall(const char *, int nargs); | struct syscall *get_syscall(struct threadinfo *, u_int, u_int); | ||||
char *print_arg(struct syscall_args *, unsigned long*, long *, struct trussinfo *); | char *print_arg(struct syscall_args *, unsigned long*, long *, struct trussinfo *); | ||||
/* | /* | ||||
* Linux Socket defines | * Linux Socket defines | ||||
*/ | */ | ||||
#define LINUX_SOCKET 1 | #define LINUX_SOCKET 1 | ||||
#define LINUX_BIND 2 | #define LINUX_BIND 2 | ||||
#define LINUX_CONNECT 3 | #define LINUX_CONNECT 3 | ||||
Show All 38 Lines |