aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Orru <andrea@orru.io>2018-03-16 20:27:13 -0700
committerAndrea Orru <andrea@orru.io>2018-03-16 20:27:13 -0700
commitdf3d2115b5e45eefb3898d89307b05505c2f5b5a (patch)
tree048c8fe970eb4a6dcc4fdc73831ff55591af2544
parent81941f91611adb33796b846f492f1073b4ab9d31 (diff)
downloadzig-df3d2115b5e45eefb3898d89307b05505c2f5b5a.tar.gz
zig-df3d2115b5e45eefb3898d89307b05505c2f5b5a.zip
Service -> Server
-rw-r--r--std/os/zen.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/std/os/zen.zig b/std/os/zen.zig
index 814ec36884..b1a904a7c1 100644
--- a/std/os/zen.zig
+++ b/std/os/zen.zig
@@ -32,11 +32,11 @@ pub const MailboxId = union(enum) {
};
-///////////////////////////////////////
-//// Ports reserved for services ////
-///////////////////////////////////////
+//////////////////////////////////////
+//// Ports reserved for servers ////
+//////////////////////////////////////
-pub const Service = struct {
+pub const Server = struct {
pub const Keyboard = MailboxId { .Port = 0 };
pub const Terminal = MailboxId { .Port = 1 };
};
@@ -62,7 +62,7 @@ pub fn write(fd: i32, buf: &const u8, count: usize) usize {
STDOUT_FILENO, STDERR_FILENO => {
var i: usize = 0;
while (i < count) : (i += 1) {
- send(Message.to(Service.Terminal, buf[i]));
+ send(Message.to(Server.Terminal, buf[i]));
}
},
else => unreachable,