Rev 4660 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4660 | Rev 4661 | ||
---|---|---|---|
Line 768... | Line 768... | ||
768 | fibril_condvar_initialize(&state_cv); |
768 | fibril_condvar_initialize(&state_cv); |
769 | 769 | ||
770 | proto_init(); |
770 | proto_init(); |
771 | 771 | ||
772 | p = proto_new("vfs"); |
772 | p = proto_new("vfs"); |
- | 773 | o = oper_new("open", 2, arg_def, V_INT_ERRNO, 0, resp_def); |
|
- | 774 | proto_add_oper(p, VFS_IN_OPEN, o); |
|
- | 775 | o = oper_new("open_node", 4, arg_def, V_INT_ERRNO, 0, resp_def); |
|
- | 776 | proto_add_oper(p, VFS_IN_OPEN_NODE, o); |
|
773 | o = oper_new("read", 1, arg_def, V_ERRNO, 1, resp_def); |
777 | o = oper_new("read", 1, arg_def, V_ERRNO, 1, resp_def); |
774 | proto_add_oper(p, VFS_IN_READ, o); |
778 | proto_add_oper(p, VFS_IN_READ, o); |
775 | o = oper_new("write", 1, arg_def, V_ERRNO, 1, resp_def); |
779 | o = oper_new("write", 1, arg_def, V_ERRNO, 1, resp_def); |
776 | proto_add_oper(p, VFS_IN_WRITE, o); |
780 | proto_add_oper(p, VFS_IN_WRITE, o); |
- | 781 | o = oper_new("seek", 3, arg_def, V_ERRNO, 0, resp_def); |
|
- | 782 | proto_add_oper(p, VFS_IN_SEEK, o); |
|
777 | o = oper_new("truncate", 5, arg_def, V_ERRNO, 0, resp_def); |
783 | o = oper_new("truncate", 5, arg_def, V_ERRNO, 0, resp_def); |
778 | proto_add_oper(p, VFS_IN_TRUNCATE, o); |
784 | proto_add_oper(p, VFS_IN_TRUNCATE, o); |
- | 785 | o = oper_new("fstat", 1, arg_def, V_ERRNO, 0, resp_def); |
|
- | 786 | proto_add_oper(p, VFS_IN_FSTAT, o); |
|
- | 787 | o = oper_new("close", 1, arg_def, V_ERRNO, 0, resp_def); |
|
- | 788 | proto_add_oper(p, VFS_IN_CLOSE, o); |
|
779 | o = oper_new("mount", 2, arg_def, V_ERRNO, 0, resp_def); |
789 | o = oper_new("mount", 2, arg_def, V_ERRNO, 0, resp_def); |
780 | proto_add_oper(p, VFS_IN_MOUNT, o); |
790 | proto_add_oper(p, VFS_IN_MOUNT, o); |
781 | /* o = oper_new("unmount", 0, arg_def); |
791 | /* o = oper_new("unmount", 0, arg_def); |
782 | proto_add_oper(p, VFS_IN_UNMOUNT, o);*/ |
792 | proto_add_oper(p, VFS_IN_UNMOUNT, o);*/ |
783 | o = oper_new("open", 2, arg_def, V_INT_ERRNO, 0, resp_def); |
- | |
784 | proto_add_oper(p, VFS_IN_OPEN, o); |
- | |
785 | o = oper_new("close", 1, arg_def, V_ERRNO, 0, resp_def); |
- | |
786 | proto_add_oper(p, VFS_IN_CLOSE, o); |
- | |
787 | o = oper_new("seek", 3, arg_def, V_ERRNO, 0, resp_def); |
793 | o = oper_new("sync", 1, arg_def, V_ERRNO, 0, resp_def); |
788 | proto_add_oper(p, VFS_IN_SEEK, o); |
794 | proto_add_oper(p, VFS_IN_SYNC, o); |
789 | o = oper_new("mkdir", 1, arg_def, V_ERRNO, 0, resp_def); |
795 | o = oper_new("mkdir", 1, arg_def, V_ERRNO, 0, resp_def); |
790 | proto_add_oper(p, VFS_IN_MKDIR, o); |
796 | proto_add_oper(p, VFS_IN_MKDIR, o); |
791 | o = oper_new("unlink", 0, arg_def, V_ERRNO, 0, resp_def); |
797 | o = oper_new("unlink", 0, arg_def, V_ERRNO, 0, resp_def); |
792 | proto_add_oper(p, VFS_IN_UNLINK, o); |
798 | proto_add_oper(p, VFS_IN_UNLINK, o); |
793 | o = oper_new("rename", 0, arg_def, V_ERRNO, 0, resp_def); |
799 | o = oper_new("rename", 0, arg_def, V_ERRNO, 0, resp_def); |
794 | proto_add_oper(p, VFS_IN_RENAME, o); |
800 | proto_add_oper(p, VFS_IN_RENAME, o); |
- | 801 | o = oper_new("stat", 0, arg_def, V_ERRNO, 0, resp_def); |
|
- | 802 | proto_add_oper(p, VFS_IN_STAT, o); |
|
795 | 803 | ||
796 | proto_register(SERVICE_VFS, p); |
804 | proto_register(SERVICE_VFS, p); |
797 | 805 | ||
798 | p = proto_new("console"); |
806 | p = proto_new("console"); |
- | 807 | ||
- | 808 | o = oper_new("write", 1, arg_def, V_ERRNO, 1, resp_def); |
|
- | 809 | proto_add_oper(p, VFS_IN_WRITE, o); |
|
- | 810 | ||
799 | resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER; |
811 | resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER; |
800 | resp_def[2] = V_INTEGER; resp_def[3] = V_CHAR; |
812 | resp_def[2] = V_INTEGER; resp_def[3] = V_CHAR; |
801 | o = oper_new("getkey", 0, arg_def, V_ERRNO, 4, resp_def); |
813 | o = oper_new("getkey", 0, arg_def, V_ERRNO, 4, resp_def); |
802 | 814 | ||
803 | arg_def[0] = V_CHAR; |
815 | arg_def[0] = V_CHAR; |