diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2015-04-07 01:36:50 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2015-04-07 11:22:49 +0000 |
commit | a0bd3749fc6fdf6364c1e269a4c02e8c153eb84b (patch) | |
tree | d4a8cf7e8b95d626a6c916c4a325dfa23e89a52d /statfs.c | |
parent | cc59f14fb8eb951f41c8d823ba35c3b636092cd4 (diff) | |
download | strace-a0bd3749fc6fdf6364c1e269a4c02e8c153eb84b.tar.gz |
Declare syscall parsers using SYS_FUNC macro
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.
Diffstat (limited to 'statfs.c')
-rw-r--r-- | statfs.c | 18 |
1 files changed, 6 insertions, 12 deletions
@@ -52,8 +52,7 @@ printstatfs(struct tcb *tcp, const long addr) tprints("}"); } -int -sys_statfs(struct tcb *tcp) +SYS_FUNC(statfs) { if (entering(tcp)) { printpath(tcp, tcp->u_arg[0]); @@ -64,8 +63,7 @@ sys_statfs(struct tcb *tcp) return 0; } -int -sys_fstatfs(struct tcb *tcp) +SYS_FUNC(fstatfs) { if (entering(tcp)) { printfd(tcp, tcp->u_arg[0]); @@ -181,16 +179,14 @@ do_statfs64_fstatfs64(struct tcb *tcp) return 0; } -int -sys_statfs64(struct tcb *tcp) +SYS_FUNC(statfs64) { if (entering(tcp)) printpath(tcp, tcp->u_arg[0]); return do_statfs64_fstatfs64(tcp); } -int -sys_fstatfs64(struct tcb *tcp) +SYS_FUNC(fstatfs64) { if (entering(tcp)) printfd(tcp, tcp->u_arg[0]); @@ -199,8 +195,7 @@ sys_fstatfs64(struct tcb *tcp) #endif /* HAVE_STRUCT_STATFS64 */ #ifdef ALPHA -int -osf_statfs(struct tcb *tcp) +SYS_FUNC(osf_statfs) { if (entering(tcp)) { printpath(tcp, tcp->u_arg[0]); @@ -212,8 +207,7 @@ osf_statfs(struct tcb *tcp) return 0; } -int -osf_fstatfs(struct tcb *tcp) +SYS_FUNC(osf_fstatfs) { if (entering(tcp)) { tprintf("%lu, ", tcp->u_arg[0]); |