Lines Matching refs:messagebuffer
287 struct php_msgbuf *messagebuffer = NULL; /* buffer to transmit */ in PHP_FUNCTION() local
322 messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
324 result = msgrcv(mq->id, messagebuffer, maxsize, desiredmsgtype, realflags); in PHP_FUNCTION()
328 ZEND_TRY_ASSIGN_REF_LONG(out_msgtype, messagebuffer->mtype); in PHP_FUNCTION()
337 const unsigned char *p = (const unsigned char *) messagebuffer->mtext; in PHP_FUNCTION()
349 ZEND_TRY_ASSIGN_REF_STRINGL(out_message, messagebuffer->mtext, result); in PHP_FUNCTION()
358 efree(messagebuffer); in PHP_FUNCTION()
369 struct php_msgbuf * messagebuffer = NULL; /* buffer to transmit */ in PHP_FUNCTION() local
392 messagebuffer = safe_emalloc(ZSTR_LEN(msg_var.s), 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
393 memcpy(messagebuffer->mtext, ZSTR_VAL(msg_var.s), ZSTR_LEN(msg_var.s) + 1); in PHP_FUNCTION()
421 messagebuffer = safe_emalloc(message_len, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
422 memcpy(messagebuffer->mtext, p, message_len + 1); in PHP_FUNCTION()
430 messagebuffer->mtype = msgtype; in PHP_FUNCTION()
432 result = msgsnd(mq->id, messagebuffer, message_len, blocking ? 0 : IPC_NOWAIT); in PHP_FUNCTION()
434 efree(messagebuffer); in PHP_FUNCTION()