Lines Matching refs:mq
132 sysvmsg_queue_t *mq = NULL; in PHP_FUNCTION() local
141 mq = Z_SYSVMSG_QUEUE_P(queue); in PHP_FUNCTION()
143 if (msgctl(mq->id, IPC_STAT, &stat) == 0) { in PHP_FUNCTION()
159 if (msgctl(mq->id, IPC_SET, &stat) == 0) { in PHP_FUNCTION()
170 sysvmsg_queue_t *mq = NULL; in PHP_FUNCTION() local
179 mq = Z_SYSVMSG_QUEUE_P(queue); in PHP_FUNCTION()
181 if (msgctl(mq->id, IPC_STAT, &stat) == 0) { in PHP_FUNCTION()
220 sysvmsg_queue_t *mq; in PHP_FUNCTION() local
227 mq = Z_SYSVMSG_QUEUE_P(return_value); in PHP_FUNCTION()
229 mq->key = key; in PHP_FUNCTION()
230 mq->id = msgget(key, 0); in PHP_FUNCTION()
231 if (mq->id < 0) { in PHP_FUNCTION()
233 mq->id = msgget(key, IPC_CREAT | IPC_EXCL | perms); in PHP_FUNCTION()
234 if (mq->id < 0) { in PHP_FUNCTION()
247 sysvmsg_queue_t *mq = NULL; in PHP_FUNCTION() local
253 mq = Z_SYSVMSG_QUEUE_P(queue); in PHP_FUNCTION()
255 if (msgctl(mq->id, IPC_RMID, NULL) == 0) { in PHP_FUNCTION()
270 sysvmsg_queue_t *mq = NULL; in PHP_FUNCTION() local
304 mq = Z_SYSVMSG_QUEUE_P(queue); in PHP_FUNCTION()
308 result = msgrcv(mq->id, messagebuffer, maxsize, desiredmsgtype, realflags); in PHP_FUNCTION()
352 sysvmsg_queue_t * mq = NULL; in PHP_FUNCTION() local
364 mq = Z_SYSVMSG_QUEUE_P(queue); in PHP_FUNCTION()
424 result = msgsnd(mq->id, messagebuffer, message_len, blocking ? 0 : IPC_NOWAIT); in PHP_FUNCTION()