Changeset View
Changeset View
Standalone View
Standalone View
lib/libsysdecode/flags.c
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
#include <vm/vm_param.h> | #include <vm/vm_param.h> | ||||
#include <aio.h> | #include <aio.h> | ||||
#include <fcntl.h> | #include <fcntl.h> | ||||
#include <sched.h> | #include <sched.h> | ||||
#include <stdbool.h> | #include <stdbool.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <strings.h> | #include <strings.h> | ||||
#include <sysdecode.h> | |||||
#include <unistd.h> | #include <unistd.h> | ||||
#include <sys/bitstring.h> | #include <sys/bitstring.h> | ||||
#include <netgraph/bluetooth/include/ng_hci.h> | #include <netgraph/bluetooth/include/ng_hci.h> | ||||
#include <netgraph/bluetooth/include/ng_l2cap.h> | #include <netgraph/bluetooth/include/ng_l2cap.h> | ||||
#include <netgraph/bluetooth/include/ng_btsocket.h> | #include <netgraph/bluetooth/include/ng_btsocket.h> | ||||
#include <compat/linux/linux_file.h> | |||||
#include "sysdecode.h" | |||||
yuripv: Otherwise /usr/include/sysdecode.h was used. | |||||
jhbUnsubmitted Not Done Inline ActionsThat should not matter during buildworld since buildworld installs the new sysdecode.h to the sysroot. jhb: That should not matter during buildworld since buildworld installs the new sysdecode.h to the… | |||||
/* | /* | ||||
* This is taken from the xlat tables originally in truss which were | * This is taken from the xlat tables originally in truss which were | ||||
* in turn taken from strace. | * in turn taken from strace. | ||||
*/ | */ | ||||
struct name_table { | struct name_table { | ||||
uintmax_t val; | uintmax_t val; | ||||
const char *str; | const char *str; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 170 Lines • ▼ Show 20 Lines | sysdecode_atfd(int fd) | ||||
return (NULL); | return (NULL); | ||||
} | } | ||||
bool | bool | ||||
sysdecode_atflags(FILE *fp, int flag, int *rem) | sysdecode_atflags(FILE *fp, int flag, int *rem) | ||||
{ | { | ||||
return (print_mask_int(fp, atflags, flag, rem)); | return (print_mask_int(fp, atflags, flag, rem)); | ||||
} | |||||
static struct name_table linux_atflags[] = { | |||||
jhbUnsubmitted Not Done Inline ActionsIs it not possible to build this table automatically by matching on the LINUX_AT_* pattern in mktables? jhb: Is it not possible to build this table automatically by matching on the LINUX_AT_* pattern in… | |||||
X(LINUX_AT_SYMLINK_NOFOLLOW) X(LINUX_AT_EACCESS) | |||||
X(LINUX_AT_REMOVEDIR) X(LINUX_AT_SYMLINK_FOLLOW) XEND | |||||
}; | |||||
bool | |||||
sysdecode_linux_atflags(FILE *fp, int flag, int *rem) | |||||
{ | |||||
return (print_mask_int(fp, linux_atflags, flag, rem)); | |||||
} | } | ||||
static struct name_table semctlops[] = { | static struct name_table semctlops[] = { | ||||
X(GETNCNT) X(GETPID) X(GETVAL) X(GETALL) X(GETZCNT) X(SETVAL) X(SETALL) | X(GETNCNT) X(GETPID) X(GETVAL) X(GETALL) X(GETZCNT) X(SETVAL) X(SETALL) | ||||
X(IPC_RMID) X(IPC_SET) X(IPC_STAT) XEND | X(IPC_RMID) X(IPC_SET) X(IPC_STAT) XEND | ||||
}; | }; | ||||
const char * | const char * | ||||
▲ Show 20 Lines • Show All 1,012 Lines • Show Last 20 Lines |
Otherwise /usr/include/sysdecode.h was used.