summaryrefslogtreecommitdiff
path: root/tests/openat2-v-y-Xraw.c
Commit message (Collapse)AuthorAgeFilesLines
* open: implement openat2 syscall decodingEugene Syromyatnikov2020-03-301-0/+2
Introduced by Linux commit v5.6-rc1~133^2~2. * configure.ac (AC_CHECK_HEADERS): Check for linux/openat2.h. * defs.h (print_numeric_umode_t_64): New declaration. * linux/syscallent-common.h ([BASE_NR + 437]): Wire up openat2. * types/openat2.h: New file. * open.c: Include "print_fields.h", "types/openat2.h", and "xlat/open_resolve_flags.h". (sprint_open_modes64): Rename from sprint_open_modes, change argument type to uint64_t. (sprint_open_modes): New function, a wrapper for sprint_open_modes64 with argument type of unsigned int. (tprint_open_modes64): Rename from tprint_open_modes, change argument type to uint64_t, call sprint_open_modes64 instead of sprint_open_modes. (tprint_open_modes): New function, a wrapper for tprint_open_modes64 with an argument of type unsigned int. (print_open_how): New function. (SYS_FUNC(openat2)): New decoder. * printmode.c (print_numeric_umode_t_64): New function. * tests/openat2.c: New file. * tests/openat2-Xabbrev.c: Likewise. * tests/openat2-Xraw.c: Likewise. * tests/openat2-Xverbose.c: Likewise. * tests/openat2-v.c: Likewise. * tests/openat2-v-y.c: Likewise. * tests/openat2-v-y-Xabbrev.c: Likewise. * tests/openat2-v-y-Xraw.c: Likewise. * tests/openat2-v-y-Xverbose.c: Likewise. * tests/openat2-y.c: Likewise. * tests/.gitignore: Add openat2, openat2-Xabbrev, openat2-Xraw, openat2-Xverbose, openat2-v, openat2-v-y, openat2-v-y-Xabbrev, openat2-v-y-Xraw, openat2-v-y-Xverbose, openat2-y. * tests/pure_executables.list: Likewise. * tests/gen_tests.in: Add openat2, openat2-Xabbrev, openat2-Xraw, openat2-Xverbose, openat2-v, openat2-v-y, openat2-v-y-Xabbrev, openat2-v-y-Xraw, openat2-v-y-Xverbose, openat2-y tests. * xlat/open_resolve_flags.in: New file.