* defs.h (DECL_IOCTL): Change arg type from long to kernel_ureg_t.
* dm.c (dm_known_ioctl, dm_ioctl): Likewise.
* file_ioctl.c (file_ioctl): Likewise.
* fs_x_ioctl.c (fs_x_ioctl): Likewise.
* ioctl.c (ioctl_decode): Likewise.
* loop.c (decode_loop_info, decode_loop_info64): Change addr type
from long to kernel_ureg_t.
(loop_ioctl): Change arg type from long to kernel_ureg_t.
* ptp.c (ptp_ioctl): Likewise.
* scsi.c (print_sg_io_v3_req, print_sg_io_v3_res, print_sg_io_v4_req,
print_sg_io_v4_res, scsi_ioctl): Likewise.
* sock.c (print_ifreq, sock_ioctl): Likewise.
(decode_ifconf): Change addr type from long to kernel_ureg_t.
* term.c (decode_termios, decode_termio, decode_winsize, decode_ttysize,
decode_modem_flags): Likewise.
(term_ioctl): Change arg type from long to kernel_ureg_t.
* ubi.c (ubi_ioctl): Likewise.
* userfaultfd.c (uffdio_ioctl): Likewise.
#define DECL_IOCTL(name) \
extern int \
-name ## _ioctl(struct tcb *, unsigned int request, long arg)
+name ## _ioctl(struct tcb *, unsigned int request, kernel_ureg_t arg)
DECL_IOCTL(dm);
DECL_IOCTL(file);
DECL_IOCTL(fs_x);
}
static int
-dm_known_ioctl(struct tcb *tcp, const unsigned int code, long arg)
+dm_known_ioctl(struct tcb *const tcp, const unsigned int code,
+ const kernel_ureg_t arg)
{
struct dm_ioctl *ioc = NULL;
struct dm_ioctl *entering_ioc = NULL;
}
int
-dm_ioctl(struct tcb *tcp, const unsigned int code, long arg)
+dm_ioctl(struct tcb *const tcp, const unsigned int code, const kernel_ureg_t arg)
{
switch (code) {
case DM_VERSION:
# else /* !(DM_VERSION_MAJOR == 4) */
int
-dm_ioctl(struct tcb *tcp, const unsigned int code, long arg)
+dm_ioctl(struct tcb *const tcp, const unsigned int code, const kernel_ureg_t arg)
{
return 0;
}
#endif /* HAVE_LINUX_FIEMAP_H */
int
-file_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
+file_ioctl(struct tcb *const tcp, const unsigned int code,
+ const kernel_ureg_t arg)
{
switch (code) {
case FICLONE: /* W */
#include <linux/fs.h>
int
-fs_x_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
+fs_x_ioctl(struct tcb *const tcp, const unsigned int code,
+ const kernel_ureg_t arg)
{
switch (code) {
#ifdef FITRIM
ioctl_decode(struct tcb *tcp)
{
const unsigned int code = tcp->u_arg[1];
- const long arg = tcp->u_arg[2];
+ const kernel_ureg_t arg = tcp->u_arg[2];
switch (_IOC_TYPE(code)) {
#if defined(ALPHA) || defined(POWERPC)
#include "xlat/loop_crypt_type_options.h"
static void
-decode_loop_info(struct tcb *tcp, const long addr)
+decode_loop_info(struct tcb *const tcp, const kernel_ureg_t addr)
{
struct loop_info info;
}
static void
-decode_loop_info64(struct tcb *tcp, const long addr)
+decode_loop_info64(struct tcb *const tcp, const kernel_ureg_t addr)
{
struct loop_info64 info64;
}
int
-loop_ioctl(struct tcb *tcp, const unsigned int code, long arg)
+loop_ioctl(struct tcb *const tcp, const unsigned int code,
+ const kernel_ureg_t arg)
{
if (!verbose(tcp))
return RVAL_DECODED;
#include "xlat/ptp_flags_options.h"
int
-ptp_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
+ptp_ioctl(struct tcb *const tcp, const unsigned int code,
+ const kernel_ureg_t arg)
{
if (!verbose(tcp))
return RVAL_DECODED;
}
static int
-print_sg_io_v3_req(struct tcb *tcp, const long arg)
+print_sg_io_v3_req(struct tcb *const tcp, const kernel_ureg_t arg)
{
struct sg_io_hdr sg_io;
}
static void
-print_sg_io_v3_res(struct tcb *tcp, const long arg)
+print_sg_io_v3_res(struct tcb *const tcp, const kernel_ureg_t arg)
{
struct sg_io_hdr sg_io;
#ifdef HAVE_LINUX_BSG_H
static int
-print_sg_io_v4_req(struct tcb *tcp, const long arg)
+print_sg_io_v4_req(struct tcb *const tcp, const kernel_ureg_t arg)
{
struct sg_io_v4 sg_io;
}
static void
-print_sg_io_v4_res(struct tcb *tcp, const long arg)
+print_sg_io_v4_res(struct tcb *const tcp, const kernel_ureg_t arg)
{
struct sg_io_v4 sg_io;
uint32_t din_len;
#else /* !HAVE_LINUX_BSG_H */
static int
-print_sg_io_v4_req(struct tcb *tcp, const long arg)
+print_sg_io_v4_req(struct tcb *const tcp, const kernel_ureg_t arg)
{
tprints("...}");
return RVAL_DECODED | 1;
}
static void
-print_sg_io_v4_res(struct tcb *tcp, const long arg)
+print_sg_io_v4_res(struct tcb *const tcp, const kernel_ureg_t arg)
{
}
#endif
static int
-print_sg_io_req(struct tcb *tcp, uint32_t iid, const long arg)
+print_sg_io_req(struct tcb *const tcp, const uint32_t iid,
+ const kernel_ureg_t arg)
{
tprintf("{'%c', ", iid);
}
static void
-print_sg_io_res(struct tcb *tcp, uint32_t iid, const long arg)
+print_sg_io_res(struct tcb *const tcp, const uint32_t iid,
+ const kernel_ureg_t arg)
{
switch (iid) {
case 'S':
}
int
-scsi_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
+scsi_ioctl(struct tcb *const tcp, const unsigned int code,
+ const kernel_ureg_t arg)
{
uint32_t iid;
}
static void
-print_ifreq(struct tcb *tcp, const unsigned int code, const long arg,
- const struct ifreq *ifr)
+print_ifreq(struct tcb *const tcp, const unsigned int code,
+ const kernel_ureg_t arg, const struct ifreq *const ifr)
{
switch (code) {
case SIOCSIFADDR:
}
static int
-decode_ifconf(struct tcb *tcp, const long addr)
+decode_ifconf(struct tcb *const tcp, const kernel_ureg_t addr)
{
struct ifconf ifc;
}
int
-sock_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
+sock_ioctl(struct tcb *const tcp, const unsigned int code, const kernel_ureg_t arg)
{
struct ifreq ifr;
#include "xlat/modem_flags.h"
static void
-decode_termios(struct tcb *tcp, const long addr)
+decode_termios(struct tcb *const tcp, const kernel_ureg_t addr)
{
struct termios tios;
int i;
}
static void
-decode_termio(struct tcb *tcp, const long addr)
+decode_termio(struct tcb *const tcp, const kernel_ureg_t addr)
{
struct termio tio;
int i;
}
static void
-decode_winsize(struct tcb *tcp, const long addr)
+decode_winsize(struct tcb *const tcp, const kernel_ureg_t addr)
{
struct winsize ws;
#ifdef TIOCGSIZE
static void
-decode_ttysize(struct tcb *tcp, const long addr)
+decode_ttysize(struct tcb *const tcp, const kernel_ureg_t addr)
{
struct ttysize ts;
#endif
static void
-decode_modem_flags(struct tcb *tcp, const long addr)
+decode_modem_flags(struct tcb *const tcp, const kernel_ureg_t addr)
{
int i;
}
int
-term_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
+term_ioctl(struct tcb *const tcp, const unsigned int code,
+ const kernel_ureg_t arg)
{
switch (code) {
/* struct termios */
#include "xlat/ubi_volume_props.h"
int
-ubi_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
+ubi_ioctl(struct tcb *const tcp, const unsigned int code,
+ const kernel_ureg_t arg)
{
if (!verbose(tcp))
return RVAL_DECODED;
}
int
-uffdio_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
+uffdio_ioctl(struct tcb *const tcp, const unsigned int code,
+ const kernel_ureg_t arg)
{
switch (code) {
case UFFDIO_API: {