Lines Matching refs:messagebuffer
312 struct php_msgbuf *messagebuffer = NULL; /* buffer to transmit */ in PHP_FUNCTION() local
349 messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
351 result = msgrcv(mq->id, messagebuffer, maxsize, desiredmsgtype, realflags); in PHP_FUNCTION()
366 ZVAL_LONG(out_msgtype, messagebuffer->mtype); in PHP_FUNCTION()
372 const unsigned char *p = (const unsigned char *) messagebuffer->mtext; in PHP_FUNCTION()
383 ZVAL_STRINGL(out_message, messagebuffer->mtext, result); in PHP_FUNCTION()
388 efree(messagebuffer); in PHP_FUNCTION()
400 struct php_msgbuf * messagebuffer = NULL; /* buffer to transmit */ in PHP_FUNCTION() local
425 messagebuffer = safe_emalloc(ZSTR_LEN(msg_var.s), 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
426 memcpy(messagebuffer->mtext, ZSTR_VAL(msg_var.s), ZSTR_LEN(msg_var.s) + 1); in PHP_FUNCTION()
454 messagebuffer = safe_emalloc(message_len, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
455 memcpy(messagebuffer->mtext, p, message_len + 1); in PHP_FUNCTION()
463 messagebuffer->mtype = msgtype; in PHP_FUNCTION()
465 result = msgsnd(mq->id, messagebuffer, message_len, blocking ? 0 : IPC_NOWAIT); in PHP_FUNCTION()
467 efree(messagebuffer); in PHP_FUNCTION()