2019-06-22 11:11:12 -05:00
|
|
|
#include <tasking.h>
|
2019-06-22 16:11:44 -05:00
|
|
|
#include <ipc/vfs.h>
|
2019-06-27 17:00:23 -05:00
|
|
|
#include <mailboxes.h>
|
2019-06-22 11:11:12 -05:00
|
|
|
|
2019-05-24 11:52:13 -05:00
|
|
|
int main() {
|
2019-06-27 17:00:23 -05:00
|
|
|
uint32_t box=mailbox_new(16);
|
|
|
|
yield();
|
|
|
|
Message msg;
|
|
|
|
msg.msg=malloc(sizeof(vfs_message));
|
|
|
|
mailbox_get_msg(box,&msg,sizeof(vfs_message));
|
|
|
|
vfs_message* vfs_msg=(vfs_message*)msg.msg;
|
|
|
|
vfs_msg->fd=2;
|
|
|
|
msg.to=msg.from;
|
|
|
|
msg.from=box;
|
|
|
|
mailbox_send_msg(&msg);
|
|
|
|
// send_msg(1,msg,size);
|
2019-06-22 11:11:12 -05:00
|
|
|
yield();
|
2019-05-24 11:52:13 -05:00
|
|
|
for (;;);
|
|
|
|
}
|