Skip to content

Commit

Permalink
test_MQ return types and libmsgque.h removal of PUBLIC
Browse files Browse the repository at this point in the history
  • Loading branch information
akailash committed Oct 23, 2011
1 parent a3305ce commit 5f72485
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions include/minix/libmsgque.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,8 @@
* Multicast Message Queue User syscall's
* and structures associated with it
*/

/* Return codes */
#define MQ_SUCCESS 0
#define MQ_FAILED -1
#define MQ_ERR_MAX_MSGQUE -2
#define MQ_ERR_MAX_MESSAGES -3
#define MQ_ERR_MAX_RECIEVERS -4
#define ERR_INVALID_MQ -5
#define ERR_MQ_INUSE -6

PUBLIC struct MsgQue {
struct MsgQue {
int token; /* This identifies the Message Queue uniquely
* Multiple applications can use same key to
* operate of single queue in multicast mode */
Expand All @@ -29,3 +20,12 @@ PUBLIC struct MsgQue {
};



/* Return codes */
#define MQ_SUCCESS 0
#define MQ_FAILED -1
#define MQ_ERR_MAX_MSGQUE -2
#define MQ_ERR_MAX_MESSAGES -3
#define MQ_ERR_MAX_RECIEVERS -4
#define ERR_INVALID_MQ -5
#define ERR_MQ_INUSE -6
2 changes: 1 addition & 1 deletion test_MQ.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void child_proc(int key, int proc_num)
Convert seconds to a unsigned
integer.
*/
srand((unsigned int) seconds);
srand((unsigned int) seconds+proc_num);

printf("Child%d:msgque=0x%x\n",proc_num, &msgque);

Expand Down

0 comments on commit 5f72485

Please sign in to comment.