print_sigset_addr_len: change address argument type from long to kernel_ureg_t
* defs.h (print_sigset_addr_len) Change address argument type from long to kernel_ureg_t. * signal.c (print_sigset_addr_len_limit, print_sigset_addr_len, decode_old_sigaction, decode_new_sigaction): Likewise.
This commit is contained in:
parent
3106adf4af
commit
0aa9cf807e
5
defs.h
5
defs.h
@ -671,7 +671,10 @@ extern int
|
||||
decode_sockaddr(struct tcb *, kernel_ureg_t addr, int addrlen);
|
||||
|
||||
extern void printuid(const char *, const unsigned int);
|
||||
extern void print_sigset_addr_len(struct tcb *, long, long);
|
||||
|
||||
extern void
|
||||
print_sigset_addr_len(struct tcb *, kernel_ureg_t addr, long len);
|
||||
|
||||
extern const char *sprintsigmask_n(const char *, const void *, unsigned int);
|
||||
#define tprintsigmask_addr(prefix, mask) \
|
||||
tprints(sprintsigmask_n((prefix), (mask), sizeof(mask)))
|
||||
|
10
signal.c
10
signal.c
@ -242,7 +242,8 @@ printsignal(int nr)
|
||||
}
|
||||
|
||||
static void
|
||||
print_sigset_addr_len_limit(struct tcb *tcp, long addr, long len, long min_len)
|
||||
print_sigset_addr_len_limit(struct tcb *const tcp, const kernel_ureg_t addr,
|
||||
const long len, const long min_len)
|
||||
{
|
||||
/*
|
||||
* Here len is usually equal to NSIG / 8 or current_wordsize.
|
||||
@ -259,7 +260,8 @@ print_sigset_addr_len_limit(struct tcb *tcp, long addr, long len, long min_len)
|
||||
}
|
||||
|
||||
void
|
||||
print_sigset_addr_len(struct tcb *tcp, long addr, long len)
|
||||
print_sigset_addr_len(struct tcb *const tcp, const kernel_ureg_t addr,
|
||||
const long len)
|
||||
{
|
||||
print_sigset_addr_len_limit(tcp, addr, len, current_wordsize);
|
||||
}
|
||||
@ -304,7 +306,7 @@ struct old_sigaction32 {
|
||||
};
|
||||
|
||||
static void
|
||||
decode_old_sigaction(struct tcb *tcp, long addr)
|
||||
decode_old_sigaction(struct tcb *const tcp, const kernel_ureg_t addr)
|
||||
{
|
||||
struct old_sigaction sa;
|
||||
|
||||
@ -501,7 +503,7 @@ struct new_sigaction32
|
||||
};
|
||||
|
||||
static void
|
||||
decode_new_sigaction(struct tcb *tcp, long addr)
|
||||
decode_new_sigaction(struct tcb *const tcp, const kernel_ureg_t addr)
|
||||
{
|
||||
struct new_sigaction sa;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user