Lines Matching refs:mq
131 sysvmsg_queue_t *mq = NULL; in PHP_FUNCTION() local
140 mq = Z_SYSVMSG_QUEUE_P(queue); in PHP_FUNCTION()
142 if (msgctl(mq->id, IPC_STAT, &stat) == 0) { in PHP_FUNCTION()
158 if (msgctl(mq->id, IPC_SET, &stat) == 0) { in PHP_FUNCTION()
169 sysvmsg_queue_t *mq = NULL; in PHP_FUNCTION() local
178 mq = Z_SYSVMSG_QUEUE_P(queue); in PHP_FUNCTION()
180 if (msgctl(mq->id, IPC_STAT, &stat) == 0) { in PHP_FUNCTION()
219 sysvmsg_queue_t *mq; in PHP_FUNCTION() local
226 mq = Z_SYSVMSG_QUEUE_P(return_value); in PHP_FUNCTION()
228 mq->key = key; in PHP_FUNCTION()
229 mq->id = msgget(key, 0); in PHP_FUNCTION()
230 if (mq->id < 0) { in PHP_FUNCTION()
232 mq->id = msgget(key, IPC_CREAT | IPC_EXCL | perms); in PHP_FUNCTION()
233 if (mq->id < 0) { in PHP_FUNCTION()
246 sysvmsg_queue_t *mq = NULL; in PHP_FUNCTION() local
252 mq = Z_SYSVMSG_QUEUE_P(queue); in PHP_FUNCTION()
254 if (msgctl(mq->id, IPC_RMID, NULL) == 0) { in PHP_FUNCTION()
269 sysvmsg_queue_t *mq = NULL; in PHP_FUNCTION() local
303 mq = Z_SYSVMSG_QUEUE_P(queue); in PHP_FUNCTION()
307 result = msgrcv(mq->id, messagebuffer, maxsize, desiredmsgtype, realflags); in PHP_FUNCTION()
351 sysvmsg_queue_t * mq = NULL; in PHP_FUNCTION() local
363 mq = Z_SYSVMSG_QUEUE_P(queue); in PHP_FUNCTION()
423 result = msgsnd(mq->id, messagebuffer, message_len, blocking ? 0 : IPC_NOWAIT); in PHP_FUNCTION()