summaryrefslogtreecommitdiff
path: root/statfs.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2015-04-07 01:36:50 +0000
committerDmitry V. Levin <ldv@altlinux.org>2015-04-07 11:22:49 +0000
commita0bd3749fc6fdf6364c1e269a4c02e8c153eb84b (patch)
treed4a8cf7e8b95d626a6c916c4a325dfa23e89a52d /statfs.c
parentcc59f14fb8eb951f41c8d823ba35c3b636092cd4 (diff)
downloadstrace-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.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/statfs.c b/statfs.c
index 6373195d2..3845c2a7c 100644
--- a/statfs.c
+++ b/statfs.c
@@ -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]);