From e6915fb6dd715e39e37702a6d69c220c0f1798bf Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Wed, 31 Jul 2024 17:16:21 -0400 Subject: remove argc, argv; arguments will be passed via environment variables --- documentation/kernel-interfaces/app-entry.txt | 3 --- documentation/kernel-interfaces/syscalls.txt | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 documentation/kernel-interfaces/app-entry.txt (limited to 'documentation/kernel-interfaces') diff --git a/documentation/kernel-interfaces/app-entry.txt b/documentation/kernel-interfaces/app-entry.txt deleted file mode 100644 index 1a09d22..0000000 --- a/documentation/kernel-interfaces/app-entry.txt +++ /dev/null @@ -1,3 +0,0 @@ -on entry, the stack is set up, and all registers other than rsp are set to 0. -the ARGC environment variable holds the number of arguments to main. -the ARGV0, ARGV1, ARGV2, etc environment variables hold those arguments. diff --git a/documentation/kernel-interfaces/syscalls.txt b/documentation/kernel-interfaces/syscalls.txt index f7dddba..de00451 100644 --- a/documentation/kernel-interfaces/syscalls.txt +++ b/documentation/kernel-interfaces/syscalls.txt @@ -157,7 +157,10 @@ start process: qword: stream handle here qword: new stream handle in child new handle must be < 65536 - any gifted streams must not have threads waiting to read from our end + any gifted streams must not have threads waiting to read from our end. + any environment variables in the current process whose names do not begin + with an underscore are also set in the child process. the environment + variables in the process start info override any with the same name. end this process: rax in: 17 -- cgit v1.2.3