summaryrefslogtreecommitdiff
path: root/fanotify.c
Commit message (Collapse)AuthorAgeFilesLines
* Add copyright headers to some files which lack themDmitry V. Levin2015-12-171-0/+27
| | | | | | | | | | Before this change, all files that exist since 20th century had copyright headers, while most files that appeared later didn't. This change fixes the inconsistency by adding missing copyright headers. It doesn't mean that copyright headers became maintained. In my view, git history provides much better information on this subject and is much more accurate than copyright headers.
* fanotify_init: mark return code with RVAL_FD flagDmitry V. Levin2015-08-021-1/+1
| | | | * fanotify.c (sys_fanotify_init): Set RVAL_FD flag in the return code.
* fanotify.c: make use of RVAL_DECODEDDmitry V. Levin2015-07-201-8/+2
| | | | | * fanotify.c (sys_fanotify_init, sys_fanotify_mark): Update for RVAL_DECODED.
* Declare syscall parsers using SYS_FUNC macroDmitry V. Levin2015-04-071-4/+2
| | | | | | | | | | | | | | Introduce SYS_FUNC macro to declare and define all syscall parsers. * Makefile.am (BUILT_SOURCES, CLEANFILES): Add sys_func.h. (sys_func.h): New rule. * defs.h (SYS_FUNC_NAME, SYS_FUNC): New macros. * linux/syscall.h: Include "sys_func.h". [NEED_UID16_PARSERS]: Use SYS_FUNC to declare uid16 syscall parsers. Remove other declarations. * linux/alpha/syscallent.h (160, 161): Add sys_ prefix to osf_statfs and osf_fstatfs syscall parsers. * *.c: Use SYS_FUNC to define syscall parsers.
* hppa: fix fanotify_mark decodingMike Frysinger2015-02-261-0/+4
| | | | | | | The parisc kernel has some legacy baggage here and decodes the 64bit field in the reverse order. Handle it in strace too. * fanotify.c [HPPA] (sys_fanotify_mark): Reverse the mask bits.
* Remove linux/fanotify.hDmitry V. Levin2015-02-191-1/+7
| | | | | | | | | | * linux/fanotify.h: Remove. * Makefile.am (EXTRA_DIST): Remove it. * fanotify.c: Do not include <linux/fanotify.h>. * xlat/fan_classes.in: Add default values. * xlat/fan_event_flags.in: Likewise. * xlat/fan_init_flags.in: Likewise. * xlat/fan_mark_flags.in: Likewise.
* Fix fanotify_mark decoding on 32-bit architecturesDmitry V. Levin2015-01-101-4/+12
| | | | | | | | | | | | | | | | | | The fanotify_mark syscall takes a 64-bit mask, and on 32-bit architectures it is split up into two syscall arguments. * configure.ac (AC_CHECK_FUNCS): Add fanotify_mark. (AC_CHECK_HEADERS): Add sys/fanotify.h. * defs.h (getllval): New prototype. * util.c (getllval): New function based on printllval. (printllval): Use getllval. * fanotify.c (sys_fanotify_mark): Use getllval to properly decode 64-bit mask and two syscall arguments followed by it. * tests/fanotify_mark.c: New file. * tests/fanotify_mark.test: New test. * tests/Makefile.am (check_PROGRAMS): Add fanotify_mark. (TESTS): Add fanotify_mark.test. * tests/.gitignore: Add fanotify_mark.
* Compress blank linesDmitry V. Levin2014-05-301-2/+0
| | | | Suppress empty lines left after automated xlat conversion.
* Generate xlat/*.in filesDmitry V. Levin2014-05-301-38/+4
| | | | | Automatically convert xlat structures from *.c files to xlat/*.in files using "./generate_xlat_in.sh *.c" command.
* Implement fanotify_init and fanotify_mark decodingDmitry V. Levin2014-02-051-0/+86
* fanotify.c: New file. * linux/fanotify.h: Likewise. * Makefile.am (strace_SOURCES): Add fanotify.c. (EXTRA_DIST): Add linux/fanotify.h. * defs.h (print_dirfd): New prototype. * file.c (print_dirfd): Export. * linux/dummy.h (sys_fanotify_init, sys_fanotify_mark): Remove. * linux/syscall.h (sys_fanotify_init, sys_fanotify_mark): New prototypes. * pathtrace.c (pathtrace_match): Handle sys_fanotify_init and sys_fanotify_mark.