authorgravatar for andrea@orru.ioAndrea Orru <andrea@orru.io> 2018-03-16 20:27:13-07:00
committergravatar for andrea@orru.ioAndrea Orru <andrea@orru.io> 2018-03-16 20:27:13-07:00
logdf3d2115b5e45eefb3898d89307b05505c2f5b5a
tree048c8fe970eb4a6dcc4fdc73831ff55591af2544
parent81941f91611adb33796b846f492f1073b4ab9d31

Service -> Server


1 files changed, 5 insertions(+), 5 deletions(-)

std/os/zen.zig+5-5
......@@ -32,11 +32,11 @@ pub const MailboxId = union(enum) {
3232};
3333
3434
35///////////////////////////////////////
36//// Ports reserved for services ////
37///////////////////////////////////////
35//////////////////////////////////////
36//// Ports reserved for servers ////
37//////////////////////////////////////
3838
39pub const Service = struct {
39pub const Server = struct {
4040 pub const Keyboard = MailboxId { .Port = 0 };
4141 pub const Terminal = MailboxId { .Port = 1 };
4242};
......@@ -62,7 +62,7 @@ pub fn write(fd: i32, buf: &const u8, count: usize) usize {
6262 STDOUT_FILENO, STDERR_FILENO => {
6363 var i: usize = 0;
6464 while (i < count) : (i += 1) {
65 send(Message.to(Service.Terminal, buf[i]));
65 send(Message.to(Server.Terminal, buf[i]));
6666 }
6767 },
6868 else => unreachable,