Lines Matching refs:messagebuffer
308 struct php_msgbuf *messagebuffer = NULL; /* buffer to transmit */ in PHP_FUNCTION() local
343 messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
345 result = msgrcv(mq->id, messagebuffer, maxsize, desiredmsgtype, realflags); in PHP_FUNCTION()
359 ZVAL_LONG(out_msgtype, messagebuffer->mtype); in PHP_FUNCTION()
365 const unsigned char *p = (const unsigned char *) messagebuffer->mtext; in PHP_FUNCTION()
378 ZVAL_STRINGL(out_message, messagebuffer->mtext, result, 1); in PHP_FUNCTION()
383 efree(messagebuffer); in PHP_FUNCTION()
395 struct php_msgbuf * messagebuffer = NULL; /* buffer to transmit */ in PHP_FUNCTION() local
418 messagebuffer = safe_emalloc(msg_var.len, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
419 memcpy(messagebuffer->mtext, msg_var.c, msg_var.len + 1); in PHP_FUNCTION()
444 messagebuffer = safe_emalloc(message_len, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
445 memcpy(messagebuffer->mtext, p, message_len + 1); in PHP_FUNCTION()
453 messagebuffer->mtype = msgtype; in PHP_FUNCTION()
455 result = msgsnd(mq->id, messagebuffer, message_len, blocking ? 0 : IPC_NOWAIT); in PHP_FUNCTION()
457 efree(messagebuffer); in PHP_FUNCTION()