Lines Matching refs:msqbuf
348 struct user_msqid_ds msqbuf;
460 eval = copyin(uap->buf, &msqbuf, sizeof(struct user_msqid_ds));
462 eval = copyin(uap->buf, &msqbuf, sizeof(struct msqid_ds));
464 msqid_ds_32to64((struct msqid_ds *)&msqbuf, &msqbuf);
471 if (msqbuf.msg_qbytes > msqptr->u.msg_qbytes) {
479 if (msqbuf.msg_qbytes > (msglen_t)msginfo.msgmnb) {
484 msqbuf.msg_qbytes = msginfo.msgmnb; /* silently restrict qbytes to system limit */
486 if (msqbuf.msg_qbytes == 0) {
493 msqptr->u.msg_perm.uid = msqbuf.msg_perm.uid; /* change the owner */
494 msqptr->u.msg_perm.gid = msqbuf.msg_perm.gid; /* change the owner */
496 (msqbuf.msg_perm.mode & 0777);
497 msqptr->u.msg_qbytes = msqbuf.msg_qbytes;