git: 6b7c23a026f0 - main - syscalls: regen
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 22 Nov 2021 22:37:54 UTC
The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=6b7c23a026f0991b0e5ec447b91913d871901924 commit 6b7c23a026f0991b0e5ec447b91913d871901924 Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2021-11-22 22:36:57 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2021-11-22 22:36:57 +0000 syscalls: regen --- sys/amd64/linux/linux_systrace_args.c | 1505 ++++++++--------- sys/amd64/linux32/linux32_systrace_args.c | 1775 ++++++++++---------- sys/arm64/linux/linux_systrace_args.c | 1343 +++++++-------- sys/compat/freebsd32/freebsd32_systrace_args.c | 2099 ++++++++++++------------ sys/i386/linux/linux_systrace_args.c | 1773 ++++++++++---------- sys/kern/systrace_args.c | 1987 +++++++++++----------- 6 files changed, 5244 insertions(+), 5238 deletions(-) diff --git a/sys/amd64/linux/linux_systrace_args.c b/sys/amd64/linux/linux_systrace_args.c index 4093a29b6b8d..eec96830a242 100644 --- a/sys/amd64/linux/linux_systrace_args.c +++ b/sys/amd64/linux/linux_systrace_args.c @@ -10,217 +10,218 @@ static void systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args) { int64_t *iarg = (int64_t *)uarg; + int a = 0; switch (sysnum) { #define nosys linux_nosys /* read */ case 0: { struct read_args *p = params; - iarg[0] = p->fd; /* int */ - uarg[1] = (intptr_t)p->buf; /* char * */ - iarg[2] = p->nbyte; /* l_size_t */ + iarg[a++] = p->fd; /* int */ + uarg[a++] = (intptr_t)p->buf; /* char * */ + iarg[a++] = p->nbyte; /* l_size_t */ *n_args = 3; break; } /* write */ case 1: { struct write_args *p = params; - iarg[0] = p->fd; /* int */ - uarg[1] = (intptr_t)p->buf; /* char * */ - iarg[2] = p->nbyte; /* l_size_t */ + iarg[a++] = p->fd; /* int */ + uarg[a++] = (intptr_t)p->buf; /* char * */ + iarg[a++] = p->nbyte; /* l_size_t */ *n_args = 3; break; } /* linux_open */ case 2: { struct linux_open_args *p = params; - uarg[0] = (intptr_t)p->path; /* char * */ - iarg[1] = p->flags; /* l_int */ - iarg[2] = p->mode; /* l_mode_t */ + uarg[a++] = (intptr_t)p->path; /* char * */ + iarg[a++] = p->flags; /* l_int */ + iarg[a++] = p->mode; /* l_mode_t */ *n_args = 3; break; } /* close */ case 3: { struct close_args *p = params; - iarg[0] = p->fd; /* int */ + iarg[a++] = p->fd; /* int */ *n_args = 1; break; } /* linux_newstat */ case 4: { struct linux_newstat_args *p = params; - uarg[0] = (intptr_t)p->path; /* char * */ - uarg[1] = (intptr_t)p->buf; /* struct l_newstat * */ + uarg[a++] = (intptr_t)p->path; /* char * */ + uarg[a++] = (intptr_t)p->buf; /* struct l_newstat * */ *n_args = 2; break; } /* linux_newfstat */ case 5: { struct linux_newfstat_args *p = params; - iarg[0] = p->fd; /* l_uint */ - uarg[1] = (intptr_t)p->buf; /* struct l_newstat * */ + iarg[a++] = p->fd; /* l_uint */ + uarg[a++] = (intptr_t)p->buf; /* struct l_newstat * */ *n_args = 2; break; } /* linux_newlstat */ case 6: { struct linux_newlstat_args *p = params; - uarg[0] = (intptr_t)p->path; /* char * */ - uarg[1] = (intptr_t)p->buf; /* struct l_newstat * */ + uarg[a++] = (intptr_t)p->path; /* char * */ + uarg[a++] = (intptr_t)p->buf; /* struct l_newstat * */ *n_args = 2; break; } /* linux_poll */ case 7: { struct linux_poll_args *p = params; - uarg[0] = (intptr_t)p->fds; /* struct pollfd * */ - uarg[1] = p->nfds; /* u_int */ - iarg[2] = p->timeout; /* int */ + uarg[a++] = (intptr_t)p->fds; /* struct pollfd * */ + uarg[a++] = p->nfds; /* u_int */ + iarg[a++] = p->timeout; /* int */ *n_args = 3; break; } /* linux_lseek */ case 8: { struct linux_lseek_args *p = params; - iarg[0] = p->fdes; /* l_uint */ - iarg[1] = p->off; /* l_off_t */ - iarg[2] = p->whence; /* l_int */ + iarg[a++] = p->fdes; /* l_uint */ + iarg[a++] = p->off; /* l_off_t */ + iarg[a++] = p->whence; /* l_int */ *n_args = 3; break; } /* linux_mmap2 */ case 9: { struct linux_mmap2_args *p = params; - iarg[0] = p->addr; /* l_ulong */ - iarg[1] = p->len; /* l_ulong */ - iarg[2] = p->prot; /* l_ulong */ - iarg[3] = p->flags; /* l_ulong */ - iarg[4] = p->fd; /* l_ulong */ - iarg[5] = p->pgoff; /* l_ulong */ + iarg[a++] = p->addr; /* l_ulong */ + iarg[a++] = p->len; /* l_ulong */ + iarg[a++] = p->prot; /* l_ulong */ + iarg[a++] = p->flags; /* l_ulong */ + iarg[a++] = p->fd; /* l_ulong */ + iarg[a++] = p->pgoff; /* l_ulong */ *n_args = 6; break; } /* linux_mprotect */ case 10: { struct linux_mprotect_args *p = params; - iarg[0] = p->addr; /* l_ulong */ - iarg[1] = p->len; /* l_size_t */ - iarg[2] = p->prot; /* l_ulong */ + iarg[a++] = p->addr; /* l_ulong */ + iarg[a++] = p->len; /* l_size_t */ + iarg[a++] = p->prot; /* l_ulong */ *n_args = 3; break; } /* munmap */ case 11: { struct munmap_args *p = params; - uarg[0] = (intptr_t)p->addr; /* void * */ - iarg[1] = p->len; /* l_size_t */ + uarg[a++] = (intptr_t)p->addr; /* void * */ + iarg[a++] = p->len; /* l_size_t */ *n_args = 2; break; } /* linux_brk */ case 12: { struct linux_brk_args *p = params; - iarg[0] = p->dsend; /* l_ulong */ + iarg[a++] = p->dsend; /* l_ulong */ *n_args = 1; break; } /* linux_rt_sigaction */ case 13: { struct linux_rt_sigaction_args *p = params; - iarg[0] = p->sig; /* l_int */ - uarg[1] = (intptr_t)p->act; /* l_sigaction_t * */ - uarg[2] = (intptr_t)p->oact; /* l_sigaction_t * */ - iarg[3] = p->sigsetsize; /* l_size_t */ + iarg[a++] = p->sig; /* l_int */ + uarg[a++] = (intptr_t)p->act; /* l_sigaction_t * */ + uarg[a++] = (intptr_t)p->oact; /* l_sigaction_t * */ + iarg[a++] = p->sigsetsize; /* l_size_t */ *n_args = 4; break; } /* linux_rt_sigprocmask */ case 14: { struct linux_rt_sigprocmask_args *p = params; - iarg[0] = p->how; /* l_int */ - uarg[1] = (intptr_t)p->mask; /* l_sigset_t * */ - uarg[2] = (intptr_t)p->omask; /* l_sigset_t * */ - iarg[3] = p->sigsetsize; /* l_size_t */ + iarg[a++] = p->how; /* l_int */ + uarg[a++] = (intptr_t)p->mask; /* l_sigset_t * */ + uarg[a++] = (intptr_t)p->omask; /* l_sigset_t * */ + iarg[a++] = p->sigsetsize; /* l_size_t */ *n_args = 4; break; } /* linux_rt_sigreturn */ case 15: { struct linux_rt_sigreturn_args *p = params; - uarg[0] = (intptr_t)p->ucp; /* struct l_ucontext * */ + uarg[a++] = (intptr_t)p->ucp; /* struct l_ucontext * */ *n_args = 1; break; } /* linux_ioctl */ case 16: { struct linux_ioctl_args *p = params; - iarg[0] = p->fd; /* l_uint */ - iarg[1] = p->cmd; /* l_uint */ - iarg[2] = p->arg; /* l_ulong */ + iarg[a++] = p->fd; /* l_uint */ + iarg[a++] = p->cmd; /* l_uint */ + iarg[a++] = p->arg; /* l_ulong */ *n_args = 3; break; } /* linux_pread */ case 17: { struct linux_pread_args *p = params; - iarg[0] = p->fd; /* l_uint */ - uarg[1] = (intptr_t)p->buf; /* char * */ - iarg[2] = p->nbyte; /* l_size_t */ - iarg[3] = p->offset; /* l_loff_t */ + iarg[a++] = p->fd; /* l_uint */ + uarg[a++] = (intptr_t)p->buf; /* char * */ + iarg[a++] = p->nbyte; /* l_size_t */ + iarg[a++] = p->offset; /* l_loff_t */ *n_args = 4; break; } /* linux_pwrite */ case 18: { struct linux_pwrite_args *p = params; - iarg[0] = p->fd; /* l_uint */ - uarg[1] = (intptr_t)p->buf; /* char * */ - iarg[2] = p->nbyte; /* l_size_t */ - iarg[3] = p->offset; /* l_loff_t */ + iarg[a++] = p->fd; /* l_uint */ + uarg[a++] = (intptr_t)p->buf; /* char * */ + iarg[a++] = p->nbyte; /* l_size_t */ + iarg[a++] = p->offset; /* l_loff_t */ *n_args = 4; break; } /* readv */ case 19: { struct readv_args *p = params; - iarg[0] = p->fd; /* int */ - uarg[1] = (intptr_t)p->iovp; /* struct iovec * */ - uarg[2] = p->iovcnt; /* u_int */ + iarg[a++] = p->fd; /* int */ + uarg[a++] = (intptr_t)p->iovp; /* struct iovec * */ + uarg[a++] = p->iovcnt; /* u_int */ *n_args = 3; break; } /* writev */ case 20: { struct writev_args *p = params; - iarg[0] = p->fd; /* int */ - uarg[1] = (intptr_t)p->iovp; /* struct iovec * */ - uarg[2] = p->iovcnt; /* u_int */ + iarg[a++] = p->fd; /* int */ + uarg[a++] = (intptr_t)p->iovp; /* struct iovec * */ + uarg[a++] = p->iovcnt; /* u_int */ *n_args = 3; break; } /* linux_access */ case 21: { struct linux_access_args *p = params; - uarg[0] = (intptr_t)p->path; /* char * */ - iarg[1] = p->amode; /* l_int */ + uarg[a++] = (intptr_t)p->path; /* char * */ + iarg[a++] = p->amode; /* l_int */ *n_args = 2; break; } /* linux_pipe */ case 22: { struct linux_pipe_args *p = params; - uarg[0] = (intptr_t)p->pipefds; /* l_int * */ + uarg[a++] = (intptr_t)p->pipefds; /* l_int * */ *n_args = 1; break; } /* linux_select */ case 23: { struct linux_select_args *p = params; - iarg[0] = p->nfds; /* l_int */ - uarg[1] = (intptr_t)p->readfds; /* l_fd_set * */ - uarg[2] = (intptr_t)p->writefds; /* l_fd_set * */ - uarg[3] = (intptr_t)p->exceptfds; /* l_fd_set * */ - uarg[4] = (intptr_t)p->timeout; /* struct l_timeval * */ + iarg[a++] = p->nfds; /* l_int */ + uarg[a++] = (intptr_t)p->readfds; /* l_fd_set * */ + uarg[a++] = (intptr_t)p->writefds; /* l_fd_set * */ + uarg[a++] = (intptr_t)p->exceptfds; /* l_fd_set * */ + uarg[a++] = (intptr_t)p->timeout; /* struct l_timeval * */ *n_args = 5; break; } @@ -232,80 +233,80 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args) /* linux_mremap */ case 25: { struct linux_mremap_args *p = params; - iarg[0] = p->addr; /* l_ulong */ - iarg[1] = p->old_len; /* l_ulong */ - iarg[2] = p->new_len; /* l_ulong */ - iarg[3] = p->flags; /* l_ulong */ - iarg[4] = p->new_addr; /* l_ulong */ + iarg[a++] = p->addr; /* l_ulong */ + iarg[a++] = p->old_len; /* l_ulong */ + iarg[a++] = p->new_len; /* l_ulong */ + iarg[a++] = p->flags; /* l_ulong */ + iarg[a++] = p->new_addr; /* l_ulong */ *n_args = 5; break; } /* linux_msync */ case 26: { struct linux_msync_args *p = params; - iarg[0] = p->addr; /* l_ulong */ - iarg[1] = p->len; /* l_size_t */ - iarg[2] = p->fl; /* l_int */ + iarg[a++] = p->addr; /* l_ulong */ + iarg[a++] = p->len; /* l_size_t */ + iarg[a++] = p->fl; /* l_int */ *n_args = 3; break; } /* linux_mincore */ case 27: { struct linux_mincore_args *p = params; - iarg[0] = p->start; /* l_ulong */ - iarg[1] = p->len; /* l_size_t */ - uarg[2] = (intptr_t)p->vec; /* u_char * */ + iarg[a++] = p->start; /* l_ulong */ + iarg[a++] = p->len; /* l_size_t */ + uarg[a++] = (intptr_t)p->vec; /* u_char * */ *n_args = 3; break; } /* linux_madvise */ case 28: { struct linux_madvise_args *p = params; - iarg[0] = p->addr; /* l_ulong */ - iarg[1] = p->len; /* l_size_t */ - iarg[2] = p->behav; /* l_int */ + iarg[a++] = p->addr; /* l_ulong */ + iarg[a++] = p->len; /* l_size_t */ + iarg[a++] = p->behav; /* l_int */ *n_args = 3; break; } /* linux_shmget */ case 29: { struct linux_shmget_args *p = params; - iarg[0] = p->key; /* l_key_t */ - iarg[1] = p->size; /* l_size_t */ - iarg[2] = p->shmflg; /* l_int */ + iarg[a++] = p->key; /* l_key_t */ + iarg[a++] = p->size; /* l_size_t */ + iarg[a++] = p->shmflg; /* l_int */ *n_args = 3; break; } /* linux_shmat */ case 30: { struct linux_shmat_args *p = params; - iarg[0] = p->shmid; /* l_int */ - uarg[1] = (intptr_t)p->shmaddr; /* char * */ - iarg[2] = p->shmflg; /* l_int */ + iarg[a++] = p->shmid; /* l_int */ + uarg[a++] = (intptr_t)p->shmaddr; /* char * */ + iarg[a++] = p->shmflg; /* l_int */ *n_args = 3; break; } /* linux_shmctl */ case 31: { struct linux_shmctl_args *p = params; - iarg[0] = p->shmid; /* l_int */ - iarg[1] = p->cmd; /* l_int */ - uarg[2] = (intptr_t)p->buf; /* struct l_shmid_ds * */ + iarg[a++] = p->shmid; /* l_int */ + iarg[a++] = p->cmd; /* l_int */ + uarg[a++] = (intptr_t)p->buf; /* struct l_shmid_ds * */ *n_args = 3; break; } /* dup */ case 32: { struct dup_args *p = params; - uarg[0] = p->fd; /* u_int */ + uarg[a++] = p->fd; /* u_int */ *n_args = 1; break; } /* dup2 */ case 33: { struct dup2_args *p = params; - uarg[0] = p->from; /* u_int */ - uarg[1] = p->to; /* u_int */ + uarg[a++] = p->from; /* u_int */ + uarg[a++] = p->to; /* u_int */ *n_args = 2; break; } @@ -317,32 +318,32 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args) /* linux_nanosleep */ case 35: { struct linux_nanosleep_args *p = params; - uarg[0] = (intptr_t)p->rqtp; /* const struct l_timespec * */ - uarg[1] = (intptr_t)p->rmtp; /* struct l_timespec * */ + uarg[a++] = (intptr_t)p->rqtp; /* const struct l_timespec * */ + uarg[a++] = (intptr_t)p->rmtp; /* struct l_timespec * */ *n_args = 2; break; } /* linux_getitimer */ case 36: { struct linux_getitimer_args *p = params; - iarg[0] = p->which; /* l_int */ - uarg[1] = (intptr_t)p->itv; /* struct l_itimerval * */ + iarg[a++] = p->which; /* l_int */ + uarg[a++] = (intptr_t)p->itv; /* struct l_itimerval * */ *n_args = 2; break; } /* linux_alarm */ case 37: { struct linux_alarm_args *p = params; - iarg[0] = p->secs; /* l_uint */ + iarg[a++] = p->secs; /* l_uint */ *n_args = 1; break; } /* linux_setitimer */ case 38: { struct linux_setitimer_args *p = params; - iarg[0] = p->which; /* l_int */ - uarg[1] = (intptr_t)p->itv; /* struct l_itimerval * */ - uarg[2] = (intptr_t)p->oitv; /* struct l_itimerval * */ + iarg[a++] = p->which; /* l_int */ + uarg[a++] = (intptr_t)p->itv; /* struct l_itimerval * */ + uarg[a++] = (intptr_t)p->oitv; /* struct l_itimerval * */ *n_args = 3; break; } @@ -354,165 +355,165 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args) /* linux_sendfile */ case 40: { struct linux_sendfile_args *p = params; - iarg[0] = p->out; /* l_int */ - iarg[1] = p->in; /* l_int */ - uarg[2] = (intptr_t)p->offset; /* l_off_t * */ - iarg[3] = p->count; /* l_size_t */ + iarg[a++] = p->out; /* l_int */ + iarg[a++] = p->in; /* l_int */ + uarg[a++] = (intptr_t)p->offset; /* l_off_t * */ + iarg[a++] = p->count; /* l_size_t */ *n_args = 4; break; } /* linux_socket */ case 41: { struct linux_socket_args *p = params; - iarg[0] = p->domain; /* l_int */ - iarg[1] = p->type; /* l_int */ - iarg[2] = p->protocol; /* l_int */ + iarg[a++] = p->domain; /* l_int */ + iarg[a++] = p->type; /* l_int */ + iarg[a++] = p->protocol; /* l_int */ *n_args = 3; break; } /* linux_connect */ case 42: { struct linux_connect_args *p = params; - iarg[0] = p->s; /* l_int */ - uarg[1] = (intptr_t)p->name; /* l_uintptr_t */ - iarg[2] = p->namelen; /* l_int */ + iarg[a++] = p->s; /* l_int */ + uarg[a++] = (intptr_t)p->name; /* l_uintptr_t */ + iarg[a++] = p->namelen; /* l_int */ *n_args = 3; break; } /* linux_accept */ case 43: { struct linux_accept_args *p = params; - iarg[0] = p->s; /* l_int */ - uarg[1] = (intptr_t)p->addr; /* l_uintptr_t */ - uarg[2] = (intptr_t)p->namelen; /* l_uintptr_t */ + iarg[a++] = p->s; /* l_int */ + uarg[a++] = (intptr_t)p->addr; /* l_uintptr_t */ + uarg[a++] = (intptr_t)p->namelen; /* l_uintptr_t */ *n_args = 3; break; } /* linux_sendto */ case 44: { struct linux_sendto_args *p = params; - iarg[0] = p->s; /* l_int */ - uarg[1] = (intptr_t)p->msg; /* l_uintptr_t */ - iarg[2] = p->len; /* l_size_t */ - iarg[3] = p->flags; /* l_uint */ - uarg[4] = (intptr_t)p->to; /* l_uintptr_t */ - iarg[5] = p->tolen; /* l_int */ + iarg[a++] = p->s; /* l_int */ + uarg[a++] = (intptr_t)p->msg; /* l_uintptr_t */ + iarg[a++] = p->len; /* l_size_t */ + iarg[a++] = p->flags; /* l_uint */ + uarg[a++] = (intptr_t)p->to; /* l_uintptr_t */ + iarg[a++] = p->tolen; /* l_int */ *n_args = 6; break; } /* linux_recvfrom */ case 45: { struct linux_recvfrom_args *p = params; - iarg[0] = p->s; /* l_int */ - uarg[1] = (intptr_t)p->buf; /* l_uintptr_t */ - iarg[2] = p->len; /* l_size_t */ - iarg[3] = p->flags; /* l_uint */ - uarg[4] = (intptr_t)p->from; /* l_uintptr_t */ - uarg[5] = (intptr_t)p->fromlen; /* l_uintptr_t */ + iarg[a++] = p->s; /* l_int */ + uarg[a++] = (intptr_t)p->buf; /* l_uintptr_t */ + iarg[a++] = p->len; /* l_size_t */ + iarg[a++] = p->flags; /* l_uint */ + uarg[a++] = (intptr_t)p->from; /* l_uintptr_t */ + uarg[a++] = (intptr_t)p->fromlen; /* l_uintptr_t */ *n_args = 6; break; } /* linux_sendmsg */ case 46: { struct linux_sendmsg_args *p = params; - iarg[0] = p->s; /* l_int */ - uarg[1] = (intptr_t)p->msg; /* l_uintptr_t */ - iarg[2] = p->flags; /* l_uint */ + iarg[a++] = p->s; /* l_int */ + uarg[a++] = (intptr_t)p->msg; /* l_uintptr_t */ + iarg[a++] = p->flags; /* l_uint */ *n_args = 3; break; } /* linux_recvmsg */ case 47: { struct linux_recvmsg_args *p = params; - iarg[0] = p->s; /* l_int */ - uarg[1] = (intptr_t)p->msg; /* l_uintptr_t */ - iarg[2] = p->flags; /* l_uint */ + iarg[a++] = p->s; /* l_int */ + uarg[a++] = (intptr_t)p->msg; /* l_uintptr_t */ + iarg[a++] = p->flags; /* l_uint */ *n_args = 3; break; } /* linux_shutdown */ case 48: { struct linux_shutdown_args *p = params; - iarg[0] = p->s; /* l_int */ - iarg[1] = p->how; /* l_int */ + iarg[a++] = p->s; /* l_int */ + iarg[a++] = p->how; /* l_int */ *n_args = 2; break; } /* linux_bind */ case 49: { struct linux_bind_args *p = params; - iarg[0] = p->s; /* l_int */ - uarg[1] = (intptr_t)p->name; /* l_uintptr_t */ - iarg[2] = p->namelen; /* l_int */ + iarg[a++] = p->s; /* l_int */ + uarg[a++] = (intptr_t)p->name; /* l_uintptr_t */ + iarg[a++] = p->namelen; /* l_int */ *n_args = 3; break; } /* linux_listen */ case 50: { struct linux_listen_args *p = params; - iarg[0] = p->s; /* l_int */ - iarg[1] = p->backlog; /* l_int */ + iarg[a++] = p->s; /* l_int */ + iarg[a++] = p->backlog; /* l_int */ *n_args = 2; break; } /* linux_getsockname */ case 51: { struct linux_getsockname_args *p = params; - iarg[0] = p->s; /* l_int */ - uarg[1] = (intptr_t)p->addr; /* l_uintptr_t */ - uarg[2] = (intptr_t)p->namelen; /* l_uintptr_t */ + iarg[a++] = p->s; /* l_int */ + uarg[a++] = (intptr_t)p->addr; /* l_uintptr_t */ + uarg[a++] = (intptr_t)p->namelen; /* l_uintptr_t */ *n_args = 3; break; } /* linux_getpeername */ case 52: { struct linux_getpeername_args *p = params; - iarg[0] = p->s; /* l_int */ - uarg[1] = (intptr_t)p->addr; /* l_uintptr_t */ - uarg[2] = (intptr_t)p->namelen; /* l_uintptr_t */ + iarg[a++] = p->s; /* l_int */ + uarg[a++] = (intptr_t)p->addr; /* l_uintptr_t */ + uarg[a++] = (intptr_t)p->namelen; /* l_uintptr_t */ *n_args = 3; break; } /* linux_socketpair */ case 53: { struct linux_socketpair_args *p = params; - iarg[0] = p->domain; /* l_int */ - iarg[1] = p->type; /* l_int */ - iarg[2] = p->protocol; /* l_int */ - uarg[3] = (intptr_t)p->rsv; /* l_uintptr_t */ + iarg[a++] = p->domain; /* l_int */ + iarg[a++] = p->type; /* l_int */ + iarg[a++] = p->protocol; /* l_int */ + uarg[a++] = (intptr_t)p->rsv; /* l_uintptr_t */ *n_args = 4; break; } /* linux_setsockopt */ case 54: { struct linux_setsockopt_args *p = params; - iarg[0] = p->s; /* l_int */ - iarg[1] = p->level; /* l_int */ - iarg[2] = p->optname; /* l_int */ - uarg[3] = (intptr_t)p->optval; /* l_uintptr_t */ - iarg[4] = p->optlen; /* l_int */ + iarg[a++] = p->s; /* l_int */ + iarg[a++] = p->level; /* l_int */ + iarg[a++] = p->optname; /* l_int */ + uarg[a++] = (intptr_t)p->optval; /* l_uintptr_t */ + iarg[a++] = p->optlen; /* l_int */ *n_args = 5; break; } /* linux_getsockopt */ case 55: { struct linux_getsockopt_args *p = params; - iarg[0] = p->s; /* l_int */ - iarg[1] = p->level; /* l_int */ - iarg[2] = p->optname; /* l_int */ - uarg[3] = (intptr_t)p->optval; /* l_uintptr_t */ - uarg[4] = (intptr_t)p->optlen; /* l_uintptr_t */ + iarg[a++] = p->s; /* l_int */ + iarg[a++] = p->level; /* l_int */ + iarg[a++] = p->optname; /* l_int */ + uarg[a++] = (intptr_t)p->optval; /* l_uintptr_t */ + uarg[a++] = (intptr_t)p->optlen; /* l_uintptr_t */ *n_args = 5; break; } /* linux_clone */ case 56: { struct linux_clone_args *p = params; - iarg[0] = p->flags; /* l_ulong */ - iarg[1] = p->stack; /* l_ulong */ - uarg[2] = (intptr_t)p->parent_tidptr; /* l_int * */ - uarg[3] = (intptr_t)p->child_tidptr; /* l_int * */ - iarg[4] = p->tls; /* l_ulong */ + iarg[a++] = p->flags; /* l_ulong */ + iarg[a++] = p->stack; /* l_ulong */ + uarg[a++] = (intptr_t)p->parent_tidptr; /* l_int * */ + uarg[a++] = (intptr_t)p->child_tidptr; /* l_int * */ + iarg[a++] = p->tls; /* l_ulong */ *n_args = 5; break; } @@ -529,353 +530,353 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args) /* linux_execve */ case 59: { struct linux_execve_args *p = params; - uarg[0] = (intptr_t)p->path; /* char * */ - uarg[1] = (intptr_t)p->argp; /* char ** */ - uarg[2] = (intptr_t)p->envp; /* char ** */ + uarg[a++] = (intptr_t)p->path; /* char * */ + uarg[a++] = (intptr_t)p->argp; /* char ** */ + uarg[a++] = (intptr_t)p->envp; /* char ** */ *n_args = 3; break; } /* linux_exit */ case 60: { struct linux_exit_args *p = params; - iarg[0] = p->rval; /* l_int */ + iarg[a++] = p->rval; /* l_int */ *n_args = 1; break; } /* linux_wait4 */ case 61: { struct linux_wait4_args *p = params; - iarg[0] = p->pid; /* l_pid_t */ - uarg[1] = (intptr_t)p->status; /* l_int * */ - iarg[2] = p->options; /* l_int */ - uarg[3] = (intptr_t)p->rusage; /* struct rusage * */ + iarg[a++] = p->pid; /* l_pid_t */ + uarg[a++] = (intptr_t)p->status; /* l_int * */ + iarg[a++] = p->options; /* l_int */ + uarg[a++] = (intptr_t)p->rusage; /* struct rusage * */ *n_args = 4; break; } /* linux_kill */ case 62: { struct linux_kill_args *p = params; - iarg[0] = p->pid; /* l_pid_t */ - iarg[1] = p->signum; /* l_int */ + iarg[a++] = p->pid; /* l_pid_t */ + iarg[a++] = p->signum; /* l_int */ *n_args = 2; break; } /* linux_newuname */ case 63: { struct linux_newuname_args *p = params; - uarg[0] = (intptr_t)p->buf; /* struct l_new_utsname * */ + uarg[a++] = (intptr_t)p->buf; /* struct l_new_utsname * */ *n_args = 1; break; } /* linux_semget */ case 64: { struct linux_semget_args *p = params; - iarg[0] = p->key; /* l_key_t */ - iarg[1] = p->nsems; /* l_int */ - iarg[2] = p->semflg; /* l_int */ + iarg[a++] = p->key; /* l_key_t */ + iarg[a++] = p->nsems; /* l_int */ + iarg[a++] = p->semflg; /* l_int */ *n_args = 3; break; } /* linux_semop */ case 65: { struct linux_semop_args *p = params; - iarg[0] = p->semid; /* l_int */ - uarg[1] = (intptr_t)p->tsops; /* struct l_sembuf * */ - iarg[2] = p->nsops; /* l_uint */ + iarg[a++] = p->semid; /* l_int */ + uarg[a++] = (intptr_t)p->tsops; /* struct l_sembuf * */ + iarg[a++] = p->nsops; /* l_uint */ *n_args = 3; break; } /* linux_semctl */ case 66: { struct linux_semctl_args *p = params; - iarg[0] = p->semid; /* l_int */ - iarg[1] = p->semnum; /* l_int */ - iarg[2] = p->cmd; /* l_int */ - uarg[3] = p->arg.buf; /* union l_semun */ + iarg[a++] = p->semid; /* l_int */ + iarg[a++] = p->semnum; /* l_int */ + iarg[a++] = p->cmd; /* l_int */ + uarg[a++] = p->arg.buf; /* union l_semun */ *n_args = 4; break; } /* linux_shmdt */ case 67: { struct linux_shmdt_args *p = params; - uarg[0] = (intptr_t)p->shmaddr; /* char * */ + uarg[a++] = (intptr_t)p->shmaddr; /* char * */ *n_args = 1; break; } /* linux_msgget */ case 68: { struct linux_msgget_args *p = params; - iarg[0] = p->key; /* l_key_t */ - iarg[1] = p->msgflg; /* l_int */ + iarg[a++] = p->key; /* l_key_t */ + iarg[a++] = p->msgflg; /* l_int */ *n_args = 2; break; } /* linux_msgsnd */ case 69: { struct linux_msgsnd_args *p = params; - iarg[0] = p->msqid; /* l_int */ - uarg[1] = (intptr_t)p->msgp; /* struct l_msgbuf * */ - iarg[2] = p->msgsz; /* l_size_t */ - iarg[3] = p->msgflg; /* l_int */ + iarg[a++] = p->msqid; /* l_int */ + uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ + iarg[a++] = p->msgsz; /* l_size_t */ + iarg[a++] = p->msgflg; /* l_int */ *n_args = 4; break; } /* linux_msgrcv */ case 70: { struct linux_msgrcv_args *p = params; - iarg[0] = p->msqid; /* l_int */ - uarg[1] = (intptr_t)p->msgp; /* struct l_msgbuf * */ - iarg[2] = p->msgsz; /* l_size_t */ - iarg[3] = p->msgtyp; /* l_long */ - iarg[4] = p->msgflg; /* l_int */ + iarg[a++] = p->msqid; /* l_int */ + uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ + iarg[a++] = p->msgsz; /* l_size_t */ + iarg[a++] = p->msgtyp; /* l_long */ + iarg[a++] = p->msgflg; /* l_int */ *n_args = 5; break; } /* linux_msgctl */ case 71: { struct linux_msgctl_args *p = params; - iarg[0] = p->msqid; /* l_int */ - iarg[1] = p->cmd; /* l_int */ - uarg[2] = (intptr_t)p->buf; /* struct l_msqid_ds * */ + iarg[a++] = p->msqid; /* l_int */ + iarg[a++] = p->cmd; /* l_int */ + uarg[a++] = (intptr_t)p->buf; /* struct l_msqid_ds * */ *n_args = 3; break; } /* linux_fcntl */ case 72: { struct linux_fcntl_args *p = params; - iarg[0] = p->fd; /* l_uint */ - iarg[1] = p->cmd; /* l_uint */ - iarg[2] = p->arg; /* l_ulong */ + iarg[a++] = p->fd; /* l_uint */ + iarg[a++] = p->cmd; /* l_uint */ + iarg[a++] = p->arg; /* l_ulong */ *n_args = 3; break; } /* flock */ case 73: { struct flock_args *p = params; - iarg[0] = p->fd; /* int */ - iarg[1] = p->how; /* int */ + iarg[a++] = p->fd; /* int */ + iarg[a++] = p->how; /* int */ *n_args = 2; break; } /* fsync */ case 74: { struct fsync_args *p = params; - iarg[0] = p->fd; /* int */ + iarg[a++] = p->fd; /* int */ *n_args = 1; break; } /* linux_fdatasync */ case 75: { struct linux_fdatasync_args *p = params; - iarg[0] = p->fd; /* l_uint */ + iarg[a++] = p->fd; /* l_uint */ *n_args = 1; break; } /* linux_truncate */ case 76: { struct linux_truncate_args *p = params; - uarg[0] = (intptr_t)p->path; /* char * */ - iarg[1] = p->length; /* l_long */ + uarg[a++] = (intptr_t)p->path; /* char * */ + iarg[a++] = p->length; /* l_long */ *n_args = 2; break; } /* linux_ftruncate */ case 77: { struct linux_ftruncate_args *p = params; - iarg[0] = p->fd; /* l_int */ - iarg[1] = p->length; /* l_ulong */ + iarg[a++] = p->fd; /* l_int */ + iarg[a++] = p->length; /* l_ulong */ *n_args = 2; break; } /* linux_getdents */ case 78: { struct linux_getdents_args *p = params; - iarg[0] = p->fd; /* l_uint */ - uarg[1] = (intptr_t)p->dent; /* void * */ - iarg[2] = p->count; /* l_uint */ + iarg[a++] = p->fd; /* l_uint */ + uarg[a++] = (intptr_t)p->dent; /* void * */ + iarg[a++] = p->count; /* l_uint */ *n_args = 3; break; } /* linux_getcwd */ case 79: { struct linux_getcwd_args *p = params; - uarg[0] = (intptr_t)p->buf; /* char * */ - iarg[1] = p->bufsize; /* l_ulong */ + uarg[a++] = (intptr_t)p->buf; /* char * */ + iarg[a++] = p->bufsize; /* l_ulong */ *n_args = 2; break; } /* linux_chdir */ case 80: { struct linux_chdir_args *p = params; - uarg[0] = (intptr_t)p->path; /* char * */ + uarg[a++] = (intptr_t)p->path; /* char * */ *n_args = 1; break; } /* fchdir */ case 81: { struct fchdir_args *p = params; - iarg[0] = p->fd; /* int */ + iarg[a++] = p->fd; /* int */ *n_args = 1; break; } /* linux_rename */ case 82: { struct linux_rename_args *p = params; - uarg[0] = (intptr_t)p->from; /* char * */ - uarg[1] = (intptr_t)p->to; /* char * */ + uarg[a++] = (intptr_t)p->from; /* char * */ + uarg[a++] = (intptr_t)p->to; /* char * */ *n_args = 2; break; } /* linux_mkdir */ case 83: { struct linux_mkdir_args *p = params; - uarg[0] = (intptr_t)p->path; /* char * */ - iarg[1] = p->mode; /* l_mode_t */ + uarg[a++] = (intptr_t)p->path; /* char * */ + iarg[a++] = p->mode; /* l_mode_t */ *n_args = 2; break; } /* linux_rmdir */ case 84: { struct linux_rmdir_args *p = params; - uarg[0] = (intptr_t)p->path; /* char * */ + uarg[a++] = (intptr_t)p->path; /* char * */ *n_args = 1; break; } /* linux_creat */ case 85: { struct linux_creat_args *p = params; - uarg[0] = (intptr_t)p->path; /* char * */ - iarg[1] = p->mode; /* l_mode_t */ + uarg[a++] = (intptr_t)p->path; /* char * */ + iarg[a++] = p->mode; /* l_mode_t */ *n_args = 2; break; } /* linux_link */ case 86: { struct linux_link_args *p = params; - uarg[0] = (intptr_t)p->path; /* char * */ - uarg[1] = (intptr_t)p->to; /* char * */ + uarg[a++] = (intptr_t)p->path; /* char * */ + uarg[a++] = (intptr_t)p->to; /* char * */ *n_args = 2; break; } /* linux_unlink */ case 87: { struct linux_unlink_args *p = params; - uarg[0] = (intptr_t)p->path; /* char * */ *** 20990 LINES SKIPPED ***