Rev 4496 | Rev 4653 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4496 | Rev 4584 | ||
---|---|---|---|
Line 633... | Line 633... | ||
633 | 633 | ||
634 | proto_init(); |
634 | proto_init(); |
635 | 635 | ||
636 | p = proto_new("vfs"); |
636 | p = proto_new("vfs"); |
637 | o = oper_new("read", 1, arg_def, V_ERRNO, 1, resp_def); |
637 | o = oper_new("read", 1, arg_def, V_ERRNO, 1, resp_def); |
638 | proto_add_oper(p, VFS_READ, o); |
638 | proto_add_oper(p, VFS_IN_READ, o); |
639 | o = oper_new("write", 1, arg_def, V_ERRNO, 1, resp_def); |
639 | o = oper_new("write", 1, arg_def, V_ERRNO, 1, resp_def); |
640 | proto_add_oper(p, VFS_WRITE, o); |
640 | proto_add_oper(p, VFS_IN_WRITE, o); |
641 | o = oper_new("truncate", 5, arg_def, V_ERRNO, 0, resp_def); |
641 | o = oper_new("truncate", 5, arg_def, V_ERRNO, 0, resp_def); |
642 | proto_add_oper(p, VFS_TRUNCATE, o); |
642 | proto_add_oper(p, VFS_IN_TRUNCATE, o); |
643 | o = oper_new("mount", 2, arg_def, V_ERRNO, 0, resp_def); |
643 | o = oper_new("mount", 2, arg_def, V_ERRNO, 0, resp_def); |
644 | proto_add_oper(p, VFS_MOUNT, o); |
644 | proto_add_oper(p, VFS_IN_MOUNT, o); |
645 | /* o = oper_new("unmount", 0, arg_def); |
645 | /* o = oper_new("unmount", 0, arg_def); |
646 | proto_add_oper(p, VFS_UNMOUNT, o);*/ |
646 | proto_add_oper(p, VFS_IN_UNMOUNT, o);*/ |
647 | o = oper_new("open", 2, arg_def, V_INT_ERRNO, 0, resp_def); |
647 | o = oper_new("open", 2, arg_def, V_INT_ERRNO, 0, resp_def); |
648 | proto_add_oper(p, VFS_OPEN, o); |
648 | proto_add_oper(p, VFS_IN_OPEN, o); |
649 | o = oper_new("close", 1, arg_def, V_ERRNO, 0, resp_def); |
649 | o = oper_new("close", 1, arg_def, V_ERRNO, 0, resp_def); |
650 | proto_add_oper(p, VFS_CLOSE, o); |
650 | proto_add_oper(p, VFS_IN_CLOSE, o); |
651 | o = oper_new("seek", 3, arg_def, V_ERRNO, 0, resp_def); |
651 | o = oper_new("seek", 3, arg_def, V_ERRNO, 0, resp_def); |
652 | proto_add_oper(p, VFS_SEEK, o); |
652 | proto_add_oper(p, VFS_IN_SEEK, o); |
653 | o = oper_new("mkdir", 1, arg_def, V_ERRNO, 0, resp_def); |
653 | o = oper_new("mkdir", 1, arg_def, V_ERRNO, 0, resp_def); |
654 | proto_add_oper(p, VFS_MKDIR, o); |
654 | proto_add_oper(p, VFS_IN_MKDIR, o); |
655 | o = oper_new("unlink", 0, arg_def, V_ERRNO, 0, resp_def); |
655 | o = oper_new("unlink", 0, arg_def, V_ERRNO, 0, resp_def); |
656 | proto_add_oper(p, VFS_UNLINK, o); |
656 | proto_add_oper(p, VFS_IN_UNLINK, o); |
657 | o = oper_new("rename", 0, arg_def, V_ERRNO, 0, resp_def); |
657 | o = oper_new("rename", 0, arg_def, V_ERRNO, 0, resp_def); |
658 | proto_add_oper(p, VFS_RENAME, o); |
658 | proto_add_oper(p, VFS_IN_RENAME, o); |
659 | 659 | ||
660 | proto_register(SERVICE_VFS, p); |
660 | proto_register(SERVICE_VFS, p); |
661 | 661 | ||
662 | p = proto_new("console"); |
662 | p = proto_new("console"); |
663 | resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER; |
663 | resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER; |