Lines Matching refs:msqbuf

485 	struct msqid_ds msqbuf;  in sys_msgctl()  local
490 (error = copyin(uap->buf, &msqbuf, sizeof(msqbuf))) != 0) in sys_msgctl()
492 error = kern_msgctl(td, msqid, cmd, &msqbuf); in sys_msgctl()
494 error = copyout(&msqbuf, uap->buf, sizeof(struct msqid_ds)); in sys_msgctl()
499 kern_msgctl(struct thread *td, int msqid, int cmd, struct msqid_ds *msqbuf) in kern_msgctl() argument
581 AUDIT_ARG_SVIPC_PERM(&msqbuf->msg_perm); in kern_msgctl()
584 if (msqbuf->msg_qbytes > msqkptr->u.msg_qbytes) { in kern_msgctl()
589 if (msqbuf->msg_qbytes > msginfo.msgmnb) { in kern_msgctl()
592 msqbuf->msg_qbytes = msginfo.msgmnb; /* silently restrict qbytes to system limit */ in kern_msgctl()
594 if (msqbuf->msg_qbytes == 0) { in kern_msgctl()
599 msqkptr->u.msg_perm.uid = msqbuf->msg_perm.uid; /* change the owner */ in kern_msgctl()
600 msqkptr->u.msg_perm.gid = msqbuf->msg_perm.gid; /* change the owner */ in kern_msgctl()
602 (msqbuf->msg_perm.mode & 0777); in kern_msgctl()
603 msqkptr->u.msg_qbytes = msqbuf->msg_qbytes; in kern_msgctl()
612 *msqbuf = msqkptr->u; in kern_msgctl()
614 msqbuf->msg_perm.key = IPC_PRIVATE; in kern_msgctl()
621 msqbuf->__msg_first = msqbuf->__msg_last = NULL; in kern_msgctl()
1706 struct msqid_ds msqbuf; in freebsd7_freebsd32_msgctl() local
1714 freebsd32_ipcperm_old_in(&msqbuf32.msg_perm, &msqbuf.msg_perm); in freebsd7_freebsd32_msgctl()
1715 PTRIN_CP(msqbuf32, msqbuf, __msg_first); in freebsd7_freebsd32_msgctl()
1716 PTRIN_CP(msqbuf32, msqbuf, __msg_last); in freebsd7_freebsd32_msgctl()
1717 CP(msqbuf32, msqbuf, msg_cbytes); in freebsd7_freebsd32_msgctl()
1718 CP(msqbuf32, msqbuf, msg_qnum); in freebsd7_freebsd32_msgctl()
1719 CP(msqbuf32, msqbuf, msg_qbytes); in freebsd7_freebsd32_msgctl()
1720 CP(msqbuf32, msqbuf, msg_lspid); in freebsd7_freebsd32_msgctl()
1721 CP(msqbuf32, msqbuf, msg_lrpid); in freebsd7_freebsd32_msgctl()
1722 CP(msqbuf32, msqbuf, msg_stime); in freebsd7_freebsd32_msgctl()
1723 CP(msqbuf32, msqbuf, msg_rtime); in freebsd7_freebsd32_msgctl()
1724 CP(msqbuf32, msqbuf, msg_ctime); in freebsd7_freebsd32_msgctl()
1726 error = kern_msgctl(td, uap->msqid, uap->cmd, &msqbuf); in freebsd7_freebsd32_msgctl()
1731 freebsd32_ipcperm_old_out(&msqbuf.msg_perm, &msqbuf32.msg_perm); in freebsd7_freebsd32_msgctl()
1732 PTROUT_CP(msqbuf, msqbuf32, __msg_first); in freebsd7_freebsd32_msgctl()
1733 PTROUT_CP(msqbuf, msqbuf32, __msg_last); in freebsd7_freebsd32_msgctl()
1734 CP(msqbuf, msqbuf32, msg_cbytes); in freebsd7_freebsd32_msgctl()
1735 CP(msqbuf, msqbuf32, msg_qnum); in freebsd7_freebsd32_msgctl()
1736 CP(msqbuf, msqbuf32, msg_qbytes); in freebsd7_freebsd32_msgctl()
1737 CP(msqbuf, msqbuf32, msg_lspid); in freebsd7_freebsd32_msgctl()
1738 CP(msqbuf, msqbuf32, msg_lrpid); in freebsd7_freebsd32_msgctl()
1739 CP(msqbuf, msqbuf32, msg_stime); in freebsd7_freebsd32_msgctl()
1740 CP(msqbuf, msqbuf32, msg_rtime); in freebsd7_freebsd32_msgctl()
1741 CP(msqbuf, msqbuf32, msg_ctime); in freebsd7_freebsd32_msgctl()
1751 struct msqid_ds msqbuf; in freebsd32_msgctl() local
1759 freebsd32_ipcperm_in(&msqbuf32.msg_perm, &msqbuf.msg_perm); in freebsd32_msgctl()
1760 PTRIN_CP(msqbuf32, msqbuf, __msg_first); in freebsd32_msgctl()
1761 PTRIN_CP(msqbuf32, msqbuf, __msg_last); in freebsd32_msgctl()
1762 CP(msqbuf32, msqbuf, msg_cbytes); in freebsd32_msgctl()
1763 CP(msqbuf32, msqbuf, msg_qnum); in freebsd32_msgctl()
1764 CP(msqbuf32, msqbuf, msg_qbytes); in freebsd32_msgctl()
1765 CP(msqbuf32, msqbuf, msg_lspid); in freebsd32_msgctl()
1766 CP(msqbuf32, msqbuf, msg_lrpid); in freebsd32_msgctl()
1767 CP(msqbuf32, msqbuf, msg_stime); in freebsd32_msgctl()
1768 CP(msqbuf32, msqbuf, msg_rtime); in freebsd32_msgctl()
1769 CP(msqbuf32, msqbuf, msg_ctime); in freebsd32_msgctl()
1771 error = kern_msgctl(td, uap->msqid, uap->cmd, &msqbuf); in freebsd32_msgctl()
1775 freebsd32_ipcperm_out(&msqbuf.msg_perm, &msqbuf32.msg_perm); in freebsd32_msgctl()
1776 PTROUT_CP(msqbuf, msqbuf32, __msg_first); in freebsd32_msgctl()
1777 PTROUT_CP(msqbuf, msqbuf32, __msg_last); in freebsd32_msgctl()
1778 CP(msqbuf, msqbuf32, msg_cbytes); in freebsd32_msgctl()
1779 CP(msqbuf, msqbuf32, msg_qnum); in freebsd32_msgctl()
1780 CP(msqbuf, msqbuf32, msg_qbytes); in freebsd32_msgctl()
1781 CP(msqbuf, msqbuf32, msg_lspid); in freebsd32_msgctl()
1782 CP(msqbuf, msqbuf32, msg_lrpid); in freebsd32_msgctl()
1783 CP(msqbuf, msqbuf32, msg_stime); in freebsd32_msgctl()
1784 CP(msqbuf, msqbuf32, msg_rtime); in freebsd32_msgctl()
1785 CP(msqbuf, msqbuf32, msg_ctime); in freebsd32_msgctl()
1875 struct msqid_ds msqbuf; in freebsd7_msgctl() local
1884 ipcperm_old2new(&msqold.msg_perm, &msqbuf.msg_perm); in freebsd7_msgctl()
1885 CP(msqold, msqbuf, __msg_first); in freebsd7_msgctl()
1886 CP(msqold, msqbuf, __msg_last); in freebsd7_msgctl()
1887 CP(msqold, msqbuf, msg_cbytes); in freebsd7_msgctl()
1888 CP(msqold, msqbuf, msg_qnum); in freebsd7_msgctl()
1889 CP(msqold, msqbuf, msg_qbytes); in freebsd7_msgctl()
1890 CP(msqold, msqbuf, msg_lspid); in freebsd7_msgctl()
1891 CP(msqold, msqbuf, msg_lrpid); in freebsd7_msgctl()
1892 CP(msqold, msqbuf, msg_stime); in freebsd7_msgctl()
1893 CP(msqold, msqbuf, msg_rtime); in freebsd7_msgctl()
1894 CP(msqold, msqbuf, msg_ctime); in freebsd7_msgctl()
1896 error = kern_msgctl(td, uap->msqid, uap->cmd, &msqbuf); in freebsd7_msgctl()
1901 ipcperm_new2old(&msqbuf.msg_perm, &msqold.msg_perm); in freebsd7_msgctl()
1902 CP(msqbuf, msqold, __msg_first); in freebsd7_msgctl()
1903 CP(msqbuf, msqold, __msg_last); in freebsd7_msgctl()
1904 CP(msqbuf, msqold, msg_cbytes); in freebsd7_msgctl()
1905 CP(msqbuf, msqold, msg_qnum); in freebsd7_msgctl()
1906 CP(msqbuf, msqold, msg_qbytes); in freebsd7_msgctl()
1907 CP(msqbuf, msqold, msg_lspid); in freebsd7_msgctl()
1908 CP(msqbuf, msqold, msg_lrpid); in freebsd7_msgctl()
1909 CP(msqbuf, msqold, msg_stime); in freebsd7_msgctl()
1910 CP(msqbuf, msqold, msg_rtime); in freebsd7_msgctl()
1911 CP(msqbuf, msqold, msg_ctime); in freebsd7_msgctl()