int sys_msgsnd(struct lwp *l, const struct sys_msgsnd_args *uap, register_t *retval) { /* { syscallarg(int) msqid; syscallarg(const void *) msgp; syscallarg(size_t) msgsz; syscallarg(int) msgflg; } */ return msgsnd1(l, SCARG(uap, msqid), SCARG(uap, msgp), SCARG(uap, msgsz), SCARG(uap, msgflg), sizeof(long), copyin); }
int netbsd32_msgsnd(struct lwp *l, const struct netbsd32_msgsnd_args *uap, register_t *retval) { /* { syscallarg(int) msqid; syscallarg(const netbsd32_voidp) msgp; syscallarg(netbsd32_size_t) msgsz; syscallarg(int) msgflg; } */ return msgsnd1(l, SCARG(uap, msqid), SCARG_P32(uap, msgp), SCARG(uap, msgsz), SCARG(uap, msgflg), sizeof(netbsd32_long), netbsd32_msgsnd_fetch_type); }