summaryrefslogtreecommitdiff
path: root/utility/rtos_compatibility_layers/posix/px_mq_create.c
diff options
context:
space:
mode:
authorTiejun Zhou <[email protected]>2022-10-26 23:41:13 +0000
committerTiejun Zhou <[email protected]>2022-10-26 23:41:13 +0000
commit3e8e85cdc1e51f9de577457377a4f9a4f6b9b82f (patch)
tree861c0ab74e5dc5de7509b4b85f5e75dd74457117 /utility/rtos_compatibility_layers/posix/px_mq_create.c
parentb871c33620f9b58a83e92a33f4ca00025e850c7f (diff)
Release 6.2.0v6.2.0_rel
Diffstat (limited to 'utility/rtos_compatibility_layers/posix/px_mq_create.c')
-rw-r--r--utility/rtos_compatibility_layers/posix/px_mq_create.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/utility/rtos_compatibility_layers/posix/px_mq_create.c b/utility/rtos_compatibility_layers/posix/px_mq_create.c
index 19a55921..e52cefa5 100644
--- a/utility/rtos_compatibility_layers/posix/px_mq_create.c
+++ b/utility/rtos_compatibility_layers/posix/px_mq_create.c
@@ -26,13 +26,12 @@
#include "pthread.h" /* Posix API */
#include "px_int.h" /* Posix helper functions */
-
/**************************************************************************/
/* */
/* FUNCTION RELEASE */
/* */
/* posix_mq_create PORTABLE C */
-/* 6.1.7 */
+/* 6.2.0 */
/* AUTHOR */
/* */
/* William E. Lamie, Microsoft Corporation */
@@ -74,7 +73,9 @@
/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 06-02-2021 William E. Lamie Initial Version 6.1.7 */
+/* 06-02-2021 William E. Lamie Initial Version 6.1.7 */
+/* 10-31-2022 Scott Larson Add 64-bit support, */
+/* resulting in version 6.2.0 */
/* */
/**************************************************************************/
POSIX_MSG_QUEUE * posix_mq_create (const CHAR * mq_name,
@@ -125,9 +126,9 @@ TX_QUEUE *TheQ;
to store only the message pointer and message length. */
temp1 = tx_queue_create((&(posix_q->queue)),
(CHAR *)mq_name,
- TX_4_ULONG,
+ TX_POSIX_MESSAGE_SIZE,
posix_q->storage,
- (msgq_attr->mq_maxmsg * 16));
+ (msgq_attr->mq_maxmsg * (sizeof(ULONG) * TX_POSIX_MESSAGE_SIZE)));
/* Make sure it worked. */
if (temp1 != TX_SUCCESS)