syscall.h (158630) | syscall.h (168569) |
---|---|
1/* 2 * See i386-fbsd.c for copyright and license terms. 3 * 4 * System call arguments come in several flavours: 5 * Hex -- values that should be printed in hex (addresses) 6 * Octal -- Same as above, but octal 7 * Int -- normal integer values (file descriptors, for example) 8 * Name -- pointer to a NULL-terminated string. --- 18 unchanged lines hidden (view full) --- 27 * Kevent -- a pointer to an array of struct kevents. Prints all elements. 28 * Pathconf -- the 2nd argument of patchconf(). 29 * 30 * In addition, the pointer types (String, Ptr) may have OUT masked in -- 31 * this means that the data is set on *return* from the system call -- or 32 * IN (meaning that the data is passed *into* the system call). 33 */ 34/* | 1/* 2 * See i386-fbsd.c for copyright and license terms. 3 * 4 * System call arguments come in several flavours: 5 * Hex -- values that should be printed in hex (addresses) 6 * Octal -- Same as above, but octal 7 * Int -- normal integer values (file descriptors, for example) 8 * Name -- pointer to a NULL-terminated string. --- 18 unchanged lines hidden (view full) --- 27 * Kevent -- a pointer to an array of struct kevents. Prints all elements. 28 * Pathconf -- the 2nd argument of patchconf(). 29 * 30 * In addition, the pointer types (String, Ptr) may have OUT masked in -- 31 * this means that the data is set on *return* from the system call -- or 32 * IN (meaning that the data is passed *into* the system call). 33 */ 34/* |
35 * $FreeBSD: head/usr.bin/truss/syscall.h 158630 2006-05-15 21:18:28Z pav $ | 35 * $FreeBSD: head/usr.bin/truss/syscall.h 168569 2007-04-10 04:03:34Z delphij $ |
36 */ 37 38enum Argtype { None = 1, Hex, Octal, Int, Name, Ptr, Stat, Ioctl, Quad, 39 Signal, Sockaddr, StringArray, Timespec, Timeval, Itimerval, Pollfd, 40 Fd_set, Sigaction, Fcntl, Mprot, Mmapflags, Whence, Readlinkres, 41 Umtx, Sigset, Sigprocmask, Kevent, Sockdomain, Socktype, Open, 42 Fcntlflag, Rusage, BinString, Shutdown, Resource, Rlimit, Timeval2, 43 Pathconf }; --- 11 unchanged lines hidden (view full) --- 55 const char *name; 56 int ret_type; /* 0, 1, or 2 return values */ 57 int nargs; /* actual number of meaningful arguments */ 58 /* Hopefully, no syscalls with > 10 args */ 59 struct syscall_args args[10]; 60}; 61 62struct syscall *get_syscall(const char*); | 36 */ 37 38enum Argtype { None = 1, Hex, Octal, Int, Name, Ptr, Stat, Ioctl, Quad, 39 Signal, Sockaddr, StringArray, Timespec, Timeval, Itimerval, Pollfd, 40 Fd_set, Sigaction, Fcntl, Mprot, Mmapflags, Whence, Readlinkres, 41 Umtx, Sigset, Sigprocmask, Kevent, Sockdomain, Socktype, Open, 42 Fcntlflag, Rusage, BinString, Shutdown, Resource, Rlimit, Timeval2, 43 Pathconf }; --- 11 unchanged lines hidden (view full) --- 55 const char *name; 56 int ret_type; /* 0, 1, or 2 return values */ 57 int nargs; /* actual number of meaningful arguments */ 58 /* Hopefully, no syscalls with > 10 args */ 59 struct syscall_args args[10]; 60}; 61 62struct syscall *get_syscall(const char*); |
63char *get_string(int, void*, int); 64char *print_arg(int, struct syscall_args *, unsigned long*, long, struct trussinfo *); | 63char *print_arg(struct syscall_args *, unsigned long*, long, struct trussinfo *); |
65void print_syscall(struct trussinfo *, const char *, int, char **); 66void print_syscall_ret(struct trussinfo *, const char *, int, char **, int, 67 long); | 64void print_syscall(struct trussinfo *, const char *, int, char **); 65void print_syscall_ret(struct trussinfo *, const char *, int, char **, int, 66 long); |