| ... | ... | @@ -32,11 +32,11 @@ pub const MailboxId = union(enum) { |
| 32 | 32 | }; |
| 33 | 33 | |
| 34 | 34 | |
| 35 | | /////////////////////////////////////// |
| 36 | | //// Ports reserved for services //// |
| 37 | | /////////////////////////////////////// |
| 35 | ////////////////////////////////////// |
| 36 | //// Ports reserved for servers //// |
| 37 | ////////////////////////////////////// |
| 38 | 38 | |
| 39 | | pub const Service = struct { |
| 39 | pub const Server = struct { |
| 40 | 40 | pub const Keyboard = MailboxId { .Port = 0 }; |
| 41 | 41 | pub const Terminal = MailboxId { .Port = 1 }; |
| 42 | 42 | }; |
| ... | ... | @@ -62,7 +62,7 @@ pub fn write(fd: i32, buf: &const u8, count: usize) usize { |
| 62 | 62 | STDOUT_FILENO, STDERR_FILENO => { |
| 63 | 63 | var i: usize = 0; |
| 64 | 64 | while (i < count) : (i += 1) { |
| 65 | | send(Message.to(Service.Terminal, buf[i])); |
| 65 | send(Message.to(Server.Terminal, buf[i])); |
| 66 | 66 | } |
| 67 | 67 | }, |
| 68 | 68 | else => unreachable, |