5c5
< * $FreeBSD: head/sys/compat/cloudabi64/cloudabi64_systrace_args.c 285907 2015-07-27 10:04:28Z ed $
---
> * $FreeBSD: head/sys/compat/cloudabi64/cloudabi64_systrace_args.c 286319 2015-08-05 13:10:13Z ed $
370,375c370,373
< iarg[0] = p->fd; /* cloudabi_fd_t */
< uarg[1] = (intptr_t) p->in; /* const cloudabi64_subscription_t * */
< iarg[2] = p->nin; /* cloudabi64_size_t */
< uarg[3] = (intptr_t) p->out; /* cloudabi64_event_t * */
< iarg[4] = p->nout; /* cloudabi64_size_t */
< *n_args = 5;
---
> uarg[0] = (intptr_t) p->in; /* const cloudabi64_subscription_t * */
> uarg[1] = (intptr_t) p->out; /* cloudabi64_event_t * */
> iarg[2] = p->nevents; /* cloudabi64_size_t */
> *n_args = 3;
513a512,523
> /* cloudabi64_sys_poll_fd */
> case 57: {
> struct cloudabi64_sys_poll_fd_args *p = params;
> iarg[0] = p->fd; /* cloudabi_fd_t */
> uarg[1] = (intptr_t) p->in; /* const cloudabi64_subscription_t * */
> iarg[2] = p->nin; /* cloudabi64_size_t */
> uarg[3] = (intptr_t) p->out; /* cloudabi64_event_t * */
> iarg[4] = p->nout; /* cloudabi64_size_t */
> uarg[5] = (intptr_t) p->timeout; /* const cloudabi64_subscription_t * */
> *n_args = 6;
> break;
> }
1158c1168
< p = "cloudabi_fd_t";
---
> p = "const cloudabi64_subscription_t *";
1161c1171
< p = "const cloudabi64_subscription_t *";
---
> p = "cloudabi64_event_t *";
1166,1171d1175
< case 3:
< p = "cloudabi64_event_t *";
< break;
< case 4:
< p = "cloudabi64_size_t";
< break;
1394a1399,1423
> /* cloudabi64_sys_poll_fd */
> case 57:
> switch(ndx) {
> case 0:
> p = "cloudabi_fd_t";
> break;
> case 1:
> p = "const cloudabi64_subscription_t *";
> break;
> case 2:
> p = "cloudabi64_size_t";
> break;
> case 3:
> p = "cloudabi64_event_t *";
> break;
> case 4:
> p = "cloudabi64_size_t";
> break;
> case 5:
> p = "const cloudabi64_subscription_t *";
> break;
> default:
> break;
> };
> break;
1684a1714,1718
> /* cloudabi64_sys_poll_fd */
> case 57:
> if (ndx == 0 || ndx == 1)
> p = "cloudabi64_size_t";
> break;
< * $FreeBSD: head/sys/compat/cloudabi64/cloudabi64_systrace_args.c 285907 2015-07-27 10:04:28Z ed $
---
> * $FreeBSD: head/sys/compat/cloudabi64/cloudabi64_systrace_args.c 286319 2015-08-05 13:10:13Z ed $
370,375c370,373
< iarg[0] = p->fd; /* cloudabi_fd_t */
< uarg[1] = (intptr_t) p->in; /* const cloudabi64_subscription_t * */
< iarg[2] = p->nin; /* cloudabi64_size_t */
< uarg[3] = (intptr_t) p->out; /* cloudabi64_event_t * */
< iarg[4] = p->nout; /* cloudabi64_size_t */
< *n_args = 5;
---
> uarg[0] = (intptr_t) p->in; /* const cloudabi64_subscription_t * */
> uarg[1] = (intptr_t) p->out; /* cloudabi64_event_t * */
> iarg[2] = p->nevents; /* cloudabi64_size_t */
> *n_args = 3;
513a512,523
> /* cloudabi64_sys_poll_fd */
> case 57: {
> struct cloudabi64_sys_poll_fd_args *p = params;
> iarg[0] = p->fd; /* cloudabi_fd_t */
> uarg[1] = (intptr_t) p->in; /* const cloudabi64_subscription_t * */
> iarg[2] = p->nin; /* cloudabi64_size_t */
> uarg[3] = (intptr_t) p->out; /* cloudabi64_event_t * */
> iarg[4] = p->nout; /* cloudabi64_size_t */
> uarg[5] = (intptr_t) p->timeout; /* const cloudabi64_subscription_t * */
> *n_args = 6;
> break;
> }
1158c1168
< p = "cloudabi_fd_t";
---
> p = "const cloudabi64_subscription_t *";
1161c1171
< p = "const cloudabi64_subscription_t *";
---
> p = "cloudabi64_event_t *";
1166,1171d1175
< case 3:
< p = "cloudabi64_event_t *";
< break;
< case 4:
< p = "cloudabi64_size_t";
< break;
1394a1399,1423
> /* cloudabi64_sys_poll_fd */
> case 57:
> switch(ndx) {
> case 0:
> p = "cloudabi_fd_t";
> break;
> case 1:
> p = "const cloudabi64_subscription_t *";
> break;
> case 2:
> p = "cloudabi64_size_t";
> break;
> case 3:
> p = "cloudabi64_event_t *";
> break;
> case 4:
> p = "cloudabi64_size_t";
> break;
> case 5:
> p = "const cloudabi64_subscription_t *";
> break;
> default:
> break;
> };
> break;
1684a1714,1718
> /* cloudabi64_sys_poll_fd */
> case 57:
> if (ndx == 0 || ndx == 1)
> p = "cloudabi64_size_t";
> break;