Lines Matching refs:uap

481 sys_msgctl(struct thread *td, struct msgctl_args *uap)  in sys_msgctl()  argument
483 int msqid = uap->msqid; in sys_msgctl()
484 int cmd = uap->cmd; in sys_msgctl()
488 DPRINTF(("call to msgctl(%d, %d, %p)\n", msqid, cmd, uap->buf)); in sys_msgctl()
490 (error = copyin(uap->buf, &msqbuf, sizeof(msqbuf))) != 0) in sys_msgctl()
494 error = copyout(&msqbuf, uap->buf, sizeof(struct msqid_ds)); in sys_msgctl()
645 sys_msgget(struct thread *td, struct msgget_args *uap) in sys_msgget() argument
648 int key = uap->key; in sys_msgget()
649 int msgflg = uap->msgflg; in sys_msgget()
1111 sys_msgsnd(struct thread *td, struct msgsnd_args *uap) in sys_msgsnd() argument
1116 DPRINTF(("call to msgsnd(%d, %p, %zu, %d)\n", uap->msqid, uap->msgp, in sys_msgsnd()
1117 uap->msgsz, uap->msgflg)); in sys_msgsnd()
1119 if ((error = copyin(uap->msgp, &mtype, sizeof(mtype))) != 0) { in sys_msgsnd()
1123 return (kern_msgsnd(td, uap->msqid, in sys_msgsnd()
1124 (const char *)uap->msgp + sizeof(mtype), in sys_msgsnd()
1125 uap->msgsz, uap->msgflg, mtype)); in sys_msgsnd()
1399 sys_msgrcv(struct thread *td, struct msgrcv_args *uap) in sys_msgrcv() argument
1404 DPRINTF(("call to msgrcv(%d, %p, %zu, %ld, %d)\n", uap->msqid, in sys_msgrcv()
1405 uap->msgp, uap->msgsz, uap->msgtyp, uap->msgflg)); in sys_msgrcv()
1407 if ((error = kern_msgrcv(td, uap->msqid, in sys_msgrcv()
1408 (char *)uap->msgp + sizeof(mtype), uap->msgsz, in sys_msgrcv()
1409 uap->msgtyp, uap->msgflg, &mtype)) != 0) in sys_msgrcv()
1411 if ((error = copyout(&mtype, uap->msgp, sizeof(mtype))) != 0) in sys_msgrcv()
1676 freebsd32_msgsys(struct thread *td, struct freebsd32_msgsys_args *uap) in freebsd32_msgsys() argument
1681 AUDIT_ARG_SVIPC_WHICH(uap->which); in freebsd32_msgsys()
1682 switch (uap->which) { in freebsd32_msgsys()
1685 (struct freebsd7_freebsd32_msgctl_args *)&uap->a2)); in freebsd32_msgsys()
1688 (struct freebsd32_msgsnd_args *)&uap->a2)); in freebsd32_msgsys()
1691 (struct freebsd32_msgrcv_args *)&uap->a2)); in freebsd32_msgsys()
1693 return (sys_msgsys(td, (struct msgsys_args *)uap)); in freebsd32_msgsys()
1704 struct freebsd7_freebsd32_msgctl_args *uap) in freebsd7_freebsd32_msgctl() argument
1710 if (uap->cmd == IPC_SET) { in freebsd7_freebsd32_msgctl()
1711 error = copyin(uap->buf, &msqbuf32, sizeof(msqbuf32)); in freebsd7_freebsd32_msgctl()
1726 error = kern_msgctl(td, uap->msqid, uap->cmd, &msqbuf); in freebsd7_freebsd32_msgctl()
1729 if (uap->cmd == IPC_STAT) { in freebsd7_freebsd32_msgctl()
1742 error = copyout(&msqbuf32, uap->buf, sizeof(struct msqid_ds32)); in freebsd7_freebsd32_msgctl()
1749 freebsd32_msgctl(struct thread *td, struct freebsd32_msgctl_args *uap) in freebsd32_msgctl() argument
1755 if (uap->cmd == IPC_SET) { in freebsd32_msgctl()
1756 error = copyin(uap->buf, &msqbuf32, sizeof(msqbuf32)); in freebsd32_msgctl()
1771 error = kern_msgctl(td, uap->msqid, uap->cmd, &msqbuf); in freebsd32_msgctl()
1774 if (uap->cmd == IPC_STAT) { in freebsd32_msgctl()
1786 error = copyout(&msqbuf32, uap->buf, sizeof(struct msqid_ds32)); in freebsd32_msgctl()
1792 freebsd32_msgsnd(struct thread *td, struct freebsd32_msgsnd_args *uap) in freebsd32_msgsnd() argument
1799 msgp = PTRIN(uap->msgp); in freebsd32_msgsnd()
1803 return (kern_msgsnd(td, uap->msqid, in freebsd32_msgsnd()
1805 uap->msgsz, uap->msgflg, mtype)); in freebsd32_msgsnd()
1809 freebsd32_msgrcv(struct thread *td, struct freebsd32_msgrcv_args *uap) in freebsd32_msgrcv() argument
1816 msgp = PTRIN(uap->msgp); in freebsd32_msgrcv()
1817 if ((error = kern_msgrcv(td, uap->msqid, in freebsd32_msgrcv()
1818 (char *)msgp + sizeof(mtype32), uap->msgsz, in freebsd32_msgrcv()
1819 uap->msgtyp, uap->msgflg, &mtype)) != 0) in freebsd32_msgrcv()
1849 sys_msgsys(struct thread *td, struct msgsys_args *uap) in sys_msgsys() argument
1853 AUDIT_ARG_SVIPC_WHICH(uap->which); in sys_msgsys()
1854 if (uap->which < 0 || uap->which >= nitems(msgcalls)) in sys_msgsys()
1856 error = (*msgcalls[uap->which])(td, &uap->a2); in sys_msgsys()
1872 freebsd7_msgctl(struct thread *td, struct freebsd7_msgctl_args *uap) in freebsd7_msgctl() argument
1878 DPRINTF(("call to freebsd7_msgctl(%d, %d, %p)\n", uap->msqid, uap->cmd, in freebsd7_msgctl()
1879 uap->buf)); in freebsd7_msgctl()
1880 if (uap->cmd == IPC_SET) { in freebsd7_msgctl()
1881 error = copyin(uap->buf, &msqold, sizeof(msqold)); in freebsd7_msgctl()
1896 error = kern_msgctl(td, uap->msqid, uap->cmd, &msqbuf); in freebsd7_msgctl()
1899 if (uap->cmd == IPC_STAT) { in freebsd7_msgctl()
1912 error = copyout(&msqold, uap->buf, sizeof(struct msqid_ds_old)); in freebsd7_msgctl()