forked from Imagelibrary/rtems
2011-08-21 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1890/cpukit * psxmsgq01/init.c: POSIX says msg_prio is allowed to be NULL.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2011-08-21 Joel Sherrill <joel.sherrilL@OARcorp.com>
|
||||||
|
|
||||||
|
PR 1890/cpukit
|
||||||
|
* psxmsgq01/init.c: POSIX says msg_prio is allowed to be NULL.
|
||||||
|
|
||||||
2011-07-31 Joel Sherrill <joel.sherrilL@OARcorp.com>
|
2011-07-31 Joel Sherrill <joel.sherrilL@OARcorp.com>
|
||||||
|
|
||||||
PR 1855/cpukit
|
PR 1855/cpukit
|
||||||
|
|||||||
@@ -789,11 +789,10 @@ void verify_timed_receive_queue(
|
|||||||
int is_blocking
|
int is_blocking
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
char message[ 100 ];
|
char message[ 100 ];
|
||||||
unsigned int priority;
|
struct timespec tm;
|
||||||
struct timespec tm;
|
struct timeval tv1, tv2, tv3;
|
||||||
struct timeval tv1, tv2, tv3;
|
struct timezone tz1, tz2;
|
||||||
struct timezone tz1, tz2;
|
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
@@ -806,7 +805,7 @@ void verify_timed_receive_queue(
|
|||||||
tm.tv_sec = tv1.tv_sec + 1;
|
tm.tv_sec = tv1.tv_sec + 1;
|
||||||
tm.tv_nsec = tv1.tv_usec * 1000;
|
tm.tv_nsec = tv1.tv_usec * 1000;
|
||||||
|
|
||||||
status = mq_timedreceive( Test_q[ que ].mq, message, 100, &priority, &tm );
|
status = mq_timedreceive( Test_q[ que ].mq, message, 100, NULL, &tm );
|
||||||
|
|
||||||
gettimeofday( &tv2, &tz2 );
|
gettimeofday( &tv2, &tz2 );
|
||||||
tv3.tv_sec = tv2.tv_sec - tv1.tv_sec;
|
tv3.tv_sec = tv2.tv_sec - tv1.tv_sec;
|
||||||
|
|||||||
Reference in New Issue
Block a user