You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#define __LIBRARY__
|
|
#include<unistd.h>
|
|
#include<stdio.h>
|
|
#include<stdlib.h>
|
|
#include<assert.h>
|
|
|
|
_syscall1(void ,get_message ,struct message ,* msg)
|
|
|
|
int main()
|
|
{
|
|
struct message *msg;
|
|
int i;
|
|
for(i=0;i<10;i++)
|
|
{
|
|
get_message(msg);
|
|
printf("mid:%d pid:%d\n",msg->mid,msg->pid);
|
|
}
|
|
return 0;
|
|
}
|