Changeset View
Changeset View
Standalone View
Standalone View
head/usr.bin/truss/syscall.h
Show All 21 Lines | |||||
* Itimerval -- a pointer to a struct itimerval. Prints all elements. | * Itimerval -- a pointer to a struct itimerval. Prints all elements. | ||||
* Pollfd -- a pointer to an array of struct pollfd. Prints .fd and .events. | * Pollfd -- a pointer to an array of struct pollfd. Prints .fd and .events. | ||||
* Fd_set -- a pointer to an array of fd_set. Prints the fds that are set. | * Fd_set -- a pointer to an array of fd_set. Prints the fds that are set. | ||||
* Sigaction -- a pointer to a struct sigaction. Prints all elements. | * Sigaction -- a pointer to a struct sigaction. Prints all elements. | ||||
* Sigset -- a pointer to a sigset_t. Prints the signals that are set. | * Sigset -- a pointer to a sigset_t. Prints the signals that are set. | ||||
* Sigprocmask -- the first argument to sigprocmask(). Prints the name. | * Sigprocmask -- the first argument to sigprocmask(). Prints the name. | ||||
* Kevent -- a pointer to an array of struct kevents. Prints all elements. | * Kevent -- a pointer to an array of struct kevents. Prints all elements. | ||||
* Pathconf -- the 2nd argument of pathconf(). | * Pathconf -- the 2nd argument of pathconf(). | ||||
* Utrace -- utrace(2) buffer. | |||||
* | * | ||||
* In addition, the pointer types (String, Ptr) may have OUT masked in -- | * In addition, the pointer types (String, Ptr) may have OUT masked in -- | ||||
* this means that the data is set on *return* from the system call -- or | * this means that the data is set on *return* from the system call -- or | ||||
* IN (meaning that the data is passed *into* the system call). | * IN (meaning that the data is passed *into* the system call). | ||||
*/ | */ | ||||
/* | /* | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
enum Argtype { None = 1, Hex, Octal, Int, LongHex, Name, Ptr, Stat, Ioctl, Quad, | enum Argtype { None = 1, Hex, Octal, Int, LongHex, Name, Ptr, Stat, Ioctl, Quad, | ||||
Signal, Sockaddr, StringArray, Timespec, Timeval, Itimerval, Pollfd, | Signal, Sockaddr, StringArray, Timespec, Timeval, Itimerval, Pollfd, | ||||
Fd_set, Sigaction, Fcntl, Mprot, Mmapflags, Whence, Readlinkres, | Fd_set, Sigaction, Fcntl, Mprot, Mmapflags, Whence, Readlinkres, | ||||
Sigset, Sigprocmask, StatFs, Kevent, Sockdomain, Socktype, Open, | Sigset, Sigprocmask, StatFs, Kevent, Sockdomain, Socktype, Open, | ||||
Fcntlflag, Rusage, BinString, Shutdown, Resource, Rlimit, Timeval2, | Fcntlflag, Rusage, BinString, Shutdown, Resource, Rlimit, Timeval2, | ||||
Pathconf, Rforkflags, ExitStatus, Waitoptions, Idtype, Procctl, | Pathconf, Rforkflags, ExitStatus, Waitoptions, Idtype, Procctl, | ||||
LinuxSockArgs, Umtxop, Atfd, Atflags, Timespec2, Accessmode, Long, | LinuxSockArgs, Umtxop, Atfd, Atflags, Timespec2, Accessmode, Long, | ||||
Sysarch, ExecArgs, ExecEnv, PipeFds, QuadHex }; | Sysarch, ExecArgs, ExecEnv, PipeFds, QuadHex, Utrace }; | ||||
#define ARG_MASK 0xff | #define ARG_MASK 0xff | ||||
#define OUT 0x100 | #define OUT 0x100 | ||||
#define IN /*0x20*/0 | #define IN /*0x20*/0 | ||||
struct syscall_args { | struct syscall_args { | ||||
enum Argtype type; | enum Argtype type; | ||||
int offset; | int offset; | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |