diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2017-09-04 05:34:36 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2017-09-04 05:34:36 +0000 |
| commit | 39a3a4386aa4aecfc8550a13cdc0d8386c6d2dd5 (patch) | |
| tree | 36d8e01b32d152f1c94241e0ff47ec0c34be6c08 /lib/libsysdecode/flags.c | |
| parent | ff6ea3fbc59a12291d5f9c51ac5f0d250b245a47 (diff) | |
Notes
Diffstat (limited to 'lib/libsysdecode/flags.c')
| -rw-r--r-- | lib/libsysdecode/flags.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/libsysdecode/flags.c b/lib/libsysdecode/flags.c index eb28820a0365..68ea0e678f58 100644 --- a/lib/libsysdecode/flags.c +++ b/lib/libsysdecode/flags.c @@ -46,6 +46,7 @@ __FBSDID("$FreeBSD$"); #include <sys/stat.h> #include <sys/thr.h> #include <sys/umtx.h> +#include <machine/sysarch.h> #include <netinet/in.h> #include <netinet/sctp.h> #include <netinet/tcp.h> @@ -250,6 +251,13 @@ sysdecode_atfd(int fd) return (NULL); } +bool +sysdecode_atflags(FILE *fp, int flag, int *rem) +{ + + return (print_mask_int(fp, atflags, flag, rem)); +} + static struct name_table semctlops[] = { X(GETNCNT) X(GETPID) X(GETVAL) X(GETALL) X(GETZCNT) X(SETVAL) X(SETALL) X(IPC_RMID) X(IPC_SET) X(IPC_STAT) XEND @@ -948,6 +956,13 @@ sysdecode_mmap_flags(FILE *fp, int flags, int *rem) } const char * +sysdecode_pathconf_name(int name) +{ + + return (lookup_value(pathconfname, name)); +} + +const char * sysdecode_rtprio_function(int function) { @@ -988,6 +1003,13 @@ sysdecode_sigcode(int sig, int si_code) } } +const char * +sysdecode_sysarch_number(int number) +{ + + return (lookup_value(sysarchnum, number)); +} + bool sysdecode_umtx_cvwait_flags(FILE *fp, u_long flags, u_long *rem) { |
