Home | History | Annotate | Download | only in netbsd32

Lines Matching refs:uap

51 netbsd32_mq_open(struct lwp *l, const struct netbsd32_mq_open_args *uap,
64 if ((SCARG(uap, oflag) & O_CREAT) && SCARG_P32(uap, attr) != NULL) {
65 error = copyin(SCARG_P32(uap, attr), &attr32, sizeof(attr32));
72 return mq_handle_open(l, SCARG_P32(uap, name), SCARG(uap, oflag),
73 SCARG(uap, mode), attr, retval);
77 netbsd32_mq_close(struct lwp *l, const struct netbsd32_mq_close_args *uap,
84 return netbsd32_close(l, (const void*)uap, retval);
88 netbsd32_mq_unlink(struct lwp *l, const struct netbsd32_mq_unlink_args *uap,
101 netbsd32_mq_getattr(struct lwp *l, const struct netbsd32_mq_getattr_args *uap,
113 error = mqueue_get(SCARG(uap, mqdes), 0, &mq);
119 fd_putfile((int)SCARG(uap, mqdes));
121 return copyout(&a32, SCARG_P32(uap,mqstat), sizeof(a32));
125 netbsd32_mq_setattr(struct lwp *l, const struct netbsd32_mq_setattr_args *uap,
138 error = copyin(SCARG_P32(uap, mqstat), &attr32, sizeof(attr32));
144 error = mqueue_get(SCARG(uap, mqdes), 0, &mq);
149 if (SCARG_P32(uap, omqstat))
159 fd_putfile((int)SCARG(uap, mqdes));
166 if (SCARG_P32(uap, omqstat)) {
168 error = copyout(&attr32, SCARG_P32(uap, omqstat),
176 netbsd32_mq_notify(struct lwp *l, const struct netbsd32_mq_notify_args *uap,
187 if (SCARG_P32(uap, notification)) {
189 error = copyin(SCARG_P32(uap, notification), &sig32,
198 error = mqueue_get(SCARG(uap, mqdes), 0, &mq);
202 if (SCARG_P32(uap, notification)) {
216 fd_putfile((int)SCARG(uap, mqdes));
222 netbsd32_mq_send(struct lwp *l, const struct netbsd32_mq_send_args *uap,
233 return mq_send1(SCARG(uap, mqdes), SCARG_P32(uap, msg_ptr),
234 SCARG(uap, msg_len), SCARG(uap, msg_prio), NULL);
238 netbsd32_mq_receive(struct lwp *l, const struct netbsd32_mq_receive_args *uap,
250 error = mq_recv1(SCARG(uap, mqdes), SCARG_P32(uap, msg_ptr),
251 SCARG(uap, msg_len), SCARG_P32(uap, msg_prio), NULL, &mlen);
260 const struct netbsd32___mq_timedsend50_args *uap, register_t *retval)
274 if (SCARG_P32(uap, abs_timeout)) {
275 error = copyin(SCARG_P32(uap, abs_timeout), &ts32,
285 return mq_send1(SCARG(uap, mqdes), SCARG_P32(uap, msg_ptr),
286 SCARG(uap, msg_len), SCARG(uap, msg_prio), tsp);
291 const struct netbsd32___mq_timedreceive50_args *uap, register_t *retval)
306 if (SCARG_P32(uap, abs_timeout)) {
307 error = copyin(SCARG_P32(uap, abs_timeout), &ts32,
317 error = mq_recv1(SCARG(uap, mqdes), SCARG_P32(uap, msg_ptr),
318 SCARG(uap, msg_len), SCARG_P32(uap, msg_prio), tsp, &mlen);
329 const struct compat_50_netbsd32_mq_timedsend_args *uap,
344 if (SCARG_P32(uap, abs_timeout)) {
345 error = copyin(SCARG_P32(uap, abs_timeout), &ts32,
355 return mq_send1(SCARG(uap, mqdes), SCARG_P32(uap, msg_ptr),
356 SCARG(uap, msg_len), SCARG(uap, msg_prio), tsp);
361 const struct compat_50_netbsd32_mq_timedreceive_args *uap,
377 if (SCARG_P32(uap, abs_timeout)) {
378 error = copyin(SCARG_P32(uap, abs_timeout), &ts32,
388 error = mq_recv1(SCARG(uap, mqdes), SCARG_P32(uap, msg_ptr),
389 SCARG(uap, msg_len), SCARG_P32(uap, msg_prio), tsp, &mlen);