Browse Source

Improve the language used

Change the terminology to better fit legacy computer documentation.
Also, as an important statement against censorship.
coderain 3 years ago
parent
commit
d0a03df8a3
3 changed files with 12 additions and 12 deletions
  1. 2 2
      kernel/include/pipe.h
  2. 8 8
      kernel/src/pipe.c
  3. 2 2
      sdk/pipe.h

+ 2 - 2
kernel/include/pipe.h

@@ -68,8 +68,8 @@ typedef struct
     dword_t flags;
     lock_t lock;
     uintptr_t status;
-    dword_t server_pid;
-    dword_t client_pid;
+    dword_t master_pid;
+    dword_t slave_pid;
     pipe_t *request_pipe;
     pipe_t *response_pipe;
     dword_t last_error;

+ 8 - 8
kernel/src/pipe.c

@@ -368,8 +368,8 @@ sysret_t syscall_listen_pipeline(handle_t handle, dword_t timeout, pipe_connecti
         return ERR_BUSY;
     }
 
-    pipeline->server_pid = proc->pid;
-    pipeline->client_pid = 0;
+    pipeline->master_pid = proc->pid;
+    pipeline->slave_pid  = 0;
     pipeline->request_pipe = pipeline->response_pipe = NULL;
 
     pipeline->status = PIPELINE_ACCEPTING;
@@ -399,8 +399,8 @@ sysret_t syscall_listen_pipeline(handle_t handle, dword_t timeout, pipe_connecti
     }
 
     pipe_connection_t conn;
-    conn.server_pid = pipeline->server_pid;
-    conn.client_pid = pipeline->client_pid;
+    conn.master_pid = pipeline->master_pid;
+    conn.slave_pid  = pipeline->slave_pid;
     conn.request_pipe = conn.response_pipe = INVALID_HANDLE;
 
     ret = connect_to_pipeline(pipeline, &conn);
@@ -459,7 +459,7 @@ sysret_t syscall_connect_pipeline(handle_t handle, access_flags_t access, pipe_c
         goto cleanup;
     }
 
-    pipeline->client_pid = proc->pid;
+    pipeline->slave_pid = proc->pid;
 
     ret = pipeline_create_pipes(pipeline);
     if (ret != ERR_SUCCESS)
@@ -469,9 +469,9 @@ sysret_t syscall_connect_pipeline(handle_t handle, access_flags_t access, pipe_c
     }
 
     pipe_connection_t conn;
-    conn.server_pid = pipeline->server_pid;
-    conn.client_pid = pipeline->client_pid;
-    conn.request_pipe = INVALID_HANDLE;
+    conn.master_pid = pipeline->master_pid;
+    conn.slave_pid  = pipeline->slave_pid;
+    conn.request_pipe  = INVALID_HANDLE;
     conn.response_pipe = INVALID_HANDLE;
 
     ret = connect_to_pipeline(pipeline, &conn);

+ 2 - 2
sdk/pipe.h

@@ -28,8 +28,8 @@
 
 typedef struct
 {
-    dword_t server_pid;
-    dword_t client_pid;
+    dword_t master_pid;
+    dword_t slave_pid;
     handle_t request_pipe;
     handle_t response_pipe;
 } pipe_connection_t;