Lines Matching refs:mq

124 	sysvmsg_queue_t *mq = (sysvmsg_queue_t *) rsrc->ptr;  in ZEND_GET_MODULE()  local
125 efree(mq); in ZEND_GET_MODULE()
158 sysvmsg_queue_t *mq = NULL; in PHP_FUNCTION() local
167 …if ((mq = (sysvmsg_queue_t *)zend_fetch_resource(Z_RES_P(queue), "sysvmsg queue", le_sysvmsg)) == … in PHP_FUNCTION()
171 if (msgctl(mq->id, IPC_STAT, &stat) == 0) { in PHP_FUNCTION()
191 if (msgctl(mq->id, IPC_SET, &stat) == 0) { in PHP_FUNCTION()
203 sysvmsg_queue_t *mq = NULL; in PHP_FUNCTION() local
212 …if ((mq = (sysvmsg_queue_t *)zend_fetch_resource(Z_RES_P(queue), "sysvmsg queue", le_sysvmsg)) == … in PHP_FUNCTION()
216 if (msgctl(mq->id, IPC_STAT, &stat) == 0) { in PHP_FUNCTION()
257 sysvmsg_queue_t *mq; in PHP_FUNCTION() local
263 mq = (sysvmsg_queue_t *) emalloc(sizeof(sysvmsg_queue_t)); in PHP_FUNCTION()
265 mq->key = key; in PHP_FUNCTION()
266 mq->id = msgget(key, 0); in PHP_FUNCTION()
267 if (mq->id < 0) { in PHP_FUNCTION()
269 mq->id = msgget(key, IPC_CREAT | IPC_EXCL | perms); in PHP_FUNCTION()
270 if (mq->id < 0) { in PHP_FUNCTION()
272 efree(mq); in PHP_FUNCTION()
276 ZVAL_COPY_VALUE(return_value, zend_list_insert(mq, le_sysvmsg)); in PHP_FUNCTION()
285 sysvmsg_queue_t *mq = NULL; in PHP_FUNCTION() local
291 …if ((mq = (sysvmsg_queue_t *)zend_fetch_resource(Z_RES_P(queue), "sysvmsg queue", le_sysvmsg)) == … in PHP_FUNCTION()
295 if (msgctl(mq->id, IPC_RMID, NULL) == 0) { in PHP_FUNCTION()
311 sysvmsg_queue_t *mq = NULL; in PHP_FUNCTION() local
345 …if ((mq = (sysvmsg_queue_t *)zend_fetch_resource(Z_RES_P(queue), "sysvmsg queue", le_sysvmsg)) == … in PHP_FUNCTION()
351 result = msgrcv(mq->id, messagebuffer, maxsize, desiredmsgtype, realflags); in PHP_FUNCTION()
399 sysvmsg_queue_t * mq = NULL; in PHP_FUNCTION() local
411 …if ((mq = (sysvmsg_queue_t *)zend_fetch_resource(Z_RES_P(queue), "sysvmsg queue", le_sysvmsg)) == … in PHP_FUNCTION()
465 result = msgsnd(mq->id, messagebuffer, message_len, blocking ? 0 : IPC_NOWAIT); in PHP_FUNCTION()