Lines Matching refs:msqbuf
389 struct msqid_ds msqbuf;
394 (error = copyin(uap->buf, &msqbuf, sizeof(msqbuf))) != 0)
396 error = kern_msgctl(td, msqid, cmd, &msqbuf);
398 error = copyout(&msqbuf, uap->buf, sizeof(struct msqid_ds));
403 kern_msgctl(td, msqid, cmd, msqbuf)
407 struct msqid_ds *msqbuf;
509 if (msqbuf->msg_qbytes > msqkptr->u.msg_qbytes) {
514 if (msqbuf->msg_qbytes > msginfo.msgmnb) {
517 msqbuf->msg_qbytes = msginfo.msgmnb; /* silently restrict qbytes to system limit */
519 if (msqbuf->msg_qbytes == 0) {
524 msqkptr->u.msg_perm.uid = msqbuf->msg_perm.uid; /* change the owner */
525 msqkptr->u.msg_perm.gid = msqbuf->msg_perm.gid; /* change the owner */
527 (msqbuf->msg_perm.mode & 0777);
528 msqkptr->u.msg_qbytes = msqbuf->msg_qbytes;
537 *msqbuf = msqkptr->u;
1378 struct msqid_ds msqbuf;
1386 freebsd32_ipcperm_old_in(&msqbuf32.msg_perm, &msqbuf.msg_perm);
1387 PTRIN_CP(msqbuf32, msqbuf, msg_first);
1388 PTRIN_CP(msqbuf32, msqbuf, msg_last);
1389 CP(msqbuf32, msqbuf, msg_cbytes);
1390 CP(msqbuf32, msqbuf, msg_qnum);
1391 CP(msqbuf32, msqbuf, msg_qbytes);
1392 CP(msqbuf32, msqbuf, msg_lspid);
1393 CP(msqbuf32, msqbuf, msg_lrpid);
1394 CP(msqbuf32, msqbuf, msg_stime);
1395 CP(msqbuf32, msqbuf, msg_rtime);
1396 CP(msqbuf32, msqbuf, msg_ctime);
1398 error = kern_msgctl(td, uap->msqid, uap->cmd, &msqbuf);
1403 freebsd32_ipcperm_old_out(&msqbuf.msg_perm, &msqbuf32.msg_perm);
1404 PTROUT_CP(msqbuf, msqbuf32, msg_first);
1405 PTROUT_CP(msqbuf, msqbuf32, msg_last);
1406 CP(msqbuf, msqbuf32, msg_cbytes);
1407 CP(msqbuf, msqbuf32, msg_qnum);
1408 CP(msqbuf, msqbuf32, msg_qbytes);
1409 CP(msqbuf, msqbuf32, msg_lspid);
1410 CP(msqbuf, msqbuf32, msg_lrpid);
1411 CP(msqbuf, msqbuf32, msg_stime);
1412 CP(msqbuf, msqbuf32, msg_rtime);
1413 CP(msqbuf, msqbuf32, msg_ctime);
1423 struct msqid_ds msqbuf;
1431 freebsd32_ipcperm_in(&msqbuf32.msg_perm, &msqbuf.msg_perm);
1432 PTRIN_CP(msqbuf32, msqbuf, msg_first);
1433 PTRIN_CP(msqbuf32, msqbuf, msg_last);
1434 CP(msqbuf32, msqbuf, msg_cbytes);
1435 CP(msqbuf32, msqbuf, msg_qnum);
1436 CP(msqbuf32, msqbuf, msg_qbytes);
1437 CP(msqbuf32, msqbuf, msg_lspid);
1438 CP(msqbuf32, msqbuf, msg_lrpid);
1439 CP(msqbuf32, msqbuf, msg_stime);
1440 CP(msqbuf32, msqbuf, msg_rtime);
1441 CP(msqbuf32, msqbuf, msg_ctime);
1443 error = kern_msgctl(td, uap->msqid, uap->cmd, &msqbuf);
1447 freebsd32_ipcperm_out(&msqbuf.msg_perm, &msqbuf32.msg_perm);
1448 PTROUT_CP(msqbuf, msqbuf32, msg_first);
1449 PTROUT_CP(msqbuf, msqbuf32, msg_last);
1450 CP(msqbuf, msqbuf32, msg_cbytes);
1451 CP(msqbuf, msqbuf32, msg_qnum);
1452 CP(msqbuf, msqbuf32, msg_qbytes);
1453 CP(msqbuf, msqbuf32, msg_lspid);
1454 CP(msqbuf, msqbuf32, msg_lrpid);
1455 CP(msqbuf, msqbuf32, msg_stime);
1456 CP(msqbuf, msqbuf32, msg_rtime);
1457 CP(msqbuf, msqbuf32, msg_ctime);
1551 struct msqid_ds msqbuf;
1560 ipcperm_old2new(&msqold.msg_perm, &msqbuf.msg_perm);
1561 CP(msqold, msqbuf, msg_first);
1562 CP(msqold, msqbuf, msg_last);
1563 CP(msqold, msqbuf, msg_cbytes);
1564 CP(msqold, msqbuf, msg_qnum);
1565 CP(msqold, msqbuf, msg_qbytes);
1566 CP(msqold, msqbuf, msg_lspid);
1567 CP(msqold, msqbuf, msg_lrpid);
1568 CP(msqold, msqbuf, msg_stime);
1569 CP(msqold, msqbuf, msg_rtime);
1570 CP(msqold, msqbuf, msg_ctime);
1572 error = kern_msgctl(td, uap->msqid, uap->cmd, &msqbuf);
1577 ipcperm_new2old(&msqbuf.msg_perm, &msqold.msg_perm);
1578 CP(msqbuf, msqold, msg_first);
1579 CP(msqbuf, msqold, msg_last);
1580 CP(msqbuf, msqold, msg_cbytes);
1581 CP(msqbuf, msqold, msg_qnum);
1582 CP(msqbuf, msqold, msg_qbytes);
1583 CP(msqbuf, msqold, msg_lspid);
1584 CP(msqbuf, msqold, msg_lrpid);
1585 CP(msqbuf, msqold, msg_stime);
1586 CP(msqbuf, msqold, msg_rtime);
1587 CP(msqbuf, msqold, msg_ctime);