Make shuffle_scno globally available
* syscall.c (shuffle_scno): Move the declaration... * defs.h (shuffle_scno): ...here. Remove static qualifier. * linux/aarch64/shuffle_scno.c (shuffle_scno): Remove static qualifier. * linux/arm/shuffle_scno.c: Likewise. * linux/shuffle_scno.c: Likewise. * linux/x32/shuffle_scno.c: Likewise. * linux/x86_64/shuffle_scno.c: Likewise.
This commit is contained in:
parent
c3e8a9ebb4
commit
f729ab68dd
8
defs.h
8
defs.h
@ -407,6 +407,14 @@ extern kernel_ulong_t get_rt_sigframe_addr(struct tcb *);
|
||||
* is valid; NULL otherwise.
|
||||
*/
|
||||
extern const char *syscall_name(kernel_ulong_t scno);
|
||||
/**
|
||||
* Shuffle syscall numbers so that we don't have huge gaps in syscall table.
|
||||
* The shuffling should be an involution: shuffle_scno(shuffle_scno(n)) == n.
|
||||
*
|
||||
* @param scno Raw or shuffled syscall number.
|
||||
* @return Shuffled or raw syscall number, respectively.
|
||||
*/
|
||||
extern kernel_ulong_t shuffle_scno(kernel_ulong_t scno);
|
||||
extern const char *err_name(unsigned long err);
|
||||
|
||||
extern bool is_erestart(struct tcb *);
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include "../arm/shuffle_scno.c"
|
||||
#undef shuffle_scno
|
||||
|
||||
static kernel_ulong_t
|
||||
kernel_ulong_t
|
||||
shuffle_scno(kernel_ulong_t scno)
|
||||
{
|
||||
if (current_personality == 1)
|
||||
|
@ -1,4 +1,4 @@
|
||||
static kernel_ulong_t
|
||||
kernel_ulong_t
|
||||
shuffle_scno(kernel_ulong_t scno)
|
||||
{
|
||||
if (scno < ARM_FIRST_SHUFFLED_SYSCALL)
|
||||
|
@ -1,4 +1,4 @@
|
||||
static kernel_ulong_t
|
||||
kernel_ulong_t
|
||||
shuffle_scno(kernel_ulong_t scno)
|
||||
{
|
||||
return scno;
|
||||
|
@ -1,4 +1,4 @@
|
||||
static kernel_ulong_t
|
||||
kernel_ulong_t
|
||||
shuffle_scno(kernel_ulong_t scno)
|
||||
{
|
||||
if (current_personality == 0 && scno != (kernel_ulong_t) -1)
|
||||
|
@ -1,4 +1,4 @@
|
||||
static kernel_ulong_t
|
||||
kernel_ulong_t
|
||||
shuffle_scno(kernel_ulong_t scno)
|
||||
{
|
||||
if (current_personality == 2)
|
||||
|
@ -486,12 +486,6 @@ dumpio(struct tcb *tcp)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Shuffle syscall numbers so that we don't have huge gaps in syscall table.
|
||||
* The shuffling should be an involution: shuffle_scno(shuffle_scno(n)) == n.
|
||||
*/
|
||||
static kernel_ulong_t shuffle_scno(kernel_ulong_t scno);
|
||||
|
||||
const char *
|
||||
err_name(unsigned long err)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user