]> granicus.if.org Git - strace/commit
Fix SYS_FUNC and SEN macros for musl
authorSzabolcs Nagy <nsz@port70.net>
Tue, 15 Dec 2015 18:32:17 +0000 (18:32 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 16 Dec 2015 00:06:59 +0000 (00:06 +0000)
commit34683e3926d8c2daa368afb805da422ee7043396
treeaac98978c971addc8256846b75433e92a7b192fd
parentb6b38fa73b9e0810c68a19dcb3ade2974db20f8c
Fix SYS_FUNC and SEN macros for musl

The syscall_name argument was subject to macro expansion because
it was passed down to other macros before it was prefixed.

musl libc defines lfs64 names as macros (e.g. fstat64 as fstat)
so SYS_FUNC(fstat64) was expanded to sys_fstat.

This change adds the prefix before the name is passed to other macros,
i.e. the argument of SYS_FUNC_NAME is already prefixed with sys_.

* defs.h (SYS_FUNC): Add sys_ prefix to SYS_FUNC_NAME's argument.
(SYS_FUNC_NAME): Do not add sys_ prefix to MPERS_FUNC_NAME's argument.
* linux/ia64/syscallent.h (SYS_FUNC_NAME): Do not add sys_ prefix
to MPERS_FUNC_NAME's argument.
* syscall.c (SEN_NAME): Remove.
(SEN): Replace SEN_NAME call with its definition.  Add sys_ prefix
to SYS_FUNC_NAME's argument.
defs.h
linux/ia64/syscallent.h
syscall.c