summaryrefslogtreecommitdiff
path: root/Kernel/Process.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-22 01:55:22 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-22 01:55:22 +0100
commit6d3e12899b8b0a3ddc6062fc43b18cba0c788920 (patch)
tree02692f889820a183b6ed3b5b2fc3683b897e913e /Kernel/Process.h
parente96941920209434ebaf76d6c6b1dc24f18026352 (diff)
downloadserenity-6d3e12899b8b0a3ddc6062fc43b18cba0c788920.zip
Kernel: Pass process arguments directly on the stack.
Get rid of the convoluted get_arguments and get_environment syscalls. This patch also adds a simple /bin/env that just prints its environment.
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index b95c633506..c6d2bbb03f 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -183,8 +183,6 @@ public:
int sys$usleep(useconds_t usec);
int sys$gettimeofday(timeval*);
int sys$gethostname(char* name, size_t length);
- int sys$get_arguments(int* argc, char*** argv);
- int sys$get_environment(char*** environ);
int sys$uname(utsname*);
int sys$readlink(const char*, char*, size_t);
int sys$ttyname_r(int fd, char*, size_t);
@@ -386,8 +384,6 @@ private:
static void notify_waiters(pid_t waitee, int exit_status, int signal);
- Vector<String> m_initial_arguments;
- Vector<String> m_initial_environment;
HashTable<gid_t> m_gids;
Region* m_signal_stack_user_region { nullptr };