Commit d2b3237e authored by Dmitry Chagin's avatar Dmitry Chagin
Browse files

libsysdecode: Decode Linux *at() flags

MFC after:		2 weeks
parent 39de84b6
......@@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$");
#endif
#include <compat/linux/linux.h>
#include <compat/linux/linux_file.h>
#include <compat/linux/linux_timer.h>
#define X(a,b) { a, #b },
......@@ -197,3 +198,10 @@ sysdecode_linux_clock_flags(FILE *fp, int flags, int *rem)
return (print_mask_int(fp, clockflags, flags, rem));
}
bool
sysdecode_linux_atflags(FILE *fp, int flag, int *rem)
{
return (print_mask_int(fp, atflags, flag, rem));
}
......@@ -88,6 +88,7 @@ cat <<_EOF_
_EOF_
gen_table "atflags" "LINUX_AT_[A-Z_]+[[:space:]]+[0-9]+" "compat/linux/linux_file.h"
gen_table "clockids" "LINUX_CLOCK_[A-Z_]+[[:space:]]+[0-9]+" "compat/linux/linux_timer.h"
gen_table "clockflags" "LINUX_TIMER_[A-Z_]+[[:space:]]+0x[0-9]+" "compat/linux/linux_timer.h"
gen_table "clockcpuids" "LINUX_CPUCLOCK_[A-Z_]+[[:space:]]+[0-9]+" "compat/linux/linux_timer.h" "_MASK|_MAX"
......
......@@ -139,6 +139,7 @@ bool sysdecode_shmflags(FILE *_fp, int _flags, int *_rem);
#define SYSDECODE_HAVE_LINUX
bool sysdecode_linux_atflags(FILE *_fp, int _flag, int *_rem);
void sysdecode_linux_clockid(FILE *_fp, clockid_t _which);
bool sysdecode_linux_clock_flags(FILE *_fp, int _flags, int *_rem);
const char *sysdecode_linux_signal(int _sig);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment