2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>

* psxmsgq02/init.c, psxmsgq02/psxmsgq02.scn: Open the message queue
	with create option so we are sure it will get a control block and
	proceed to allocate other memory. Clean up screen output.
This commit is contained in:
Joel Sherrill
2009-01-05 19:39:56 +00:00
parent 745109a276
commit 8bafd774c2
3 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,9 @@
2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxmsgq02/init.c, psxmsgq02/psxmsgq02.scn: Open the message queue
with create option so we are sure it will get a control block and
proceed to allocate other memory. Clean up screen output.
2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* psx05/init.c: Add parameter to call to sched_get_priority_max().

View File

@@ -54,8 +54,8 @@ void *POSIX_Init(
attr.mq_maxmsg = MAXMSG;
attr.mq_msgsize = MSGSIZE;
puts("Init: ENOMEM (Workspace not available)");
mq = mq_open( Get_Longest_Name(), O_WRONLY, 0x777, &attr );
puts("Init: mq_open - Workspace not available - ENOMEM");
mq = mq_open( Get_Longest_Name(), O_CREAT, 0x777, &attr );
fatal_posix_service_status_errno( mq, ENOMEM, "no workspace available" );
puts( "*** END OF POSIX MESSAGE QUEUE 02 TEST ***" );

View File

@@ -1,5 +1,4 @@
*** POSIX MESSAGE QUEUE 02 TEST ***
Init's ID is 0x0b010001
Allocate_majority_of_workspace:
Init: ENOMEM (Workspace not available)
Init: mq_open - Workspace not available - ENOMEM
*** END POSIX MESSAGE QUEUE 02 TEST ***