Move decoder of getpagesize syscall to libstrace
As only five architectures have getpagesize syscall, moving the decoder to libstrace allows to get rid of getpagesize related ifdefs and check build of getpagesize decoder on other architectures. * mem.c (SYS_FUNC(getpagesize)): Move ... * getpagesize.c: ... to this new file. * Makefile.am (libstrace_a_SOURCES): Add it.
This commit is contained in:
parent
1b75ffef40
commit
af955678b9
@ -72,6 +72,7 @@ libstrace_a_CFLAGS = $(strace_CFLAGS)
|
||||
libstrace_a_SOURCES = \
|
||||
fstatfs.c \
|
||||
fstatfs64.c \
|
||||
getpagesize.c \
|
||||
ipc.c \
|
||||
sigreturn.c \
|
||||
socketcall.c \
|
||||
|
6
getpagesize.c
Normal file
6
getpagesize.c
Normal file
@ -0,0 +1,6 @@
|
||||
#include "defs.h"
|
||||
|
||||
SYS_FUNC(getpagesize)
|
||||
{
|
||||
return RVAL_DECODED | RVAL_HEX;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user