diff options
author | Benji Dial <benji@benjidial.net> | 2024-07-31 17:16:21 -0400 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2024-07-31 17:16:21 -0400 |
commit | e6915fb6dd715e39e37702a6d69c220c0f1798bf (patch) | |
tree | 2e3b59335f70f2725802d254168ceaee85faf891 /documentation/kernel-interfaces | |
parent | b1cf9e5dfbc8967bd7cb2a22ec1e5e521f4e0e6e (diff) | |
download | hilbert-os-e6915fb6dd715e39e37702a6d69c220c0f1798bf.tar.gz |
remove argc, argv; arguments will be passed via environment variables
Diffstat (limited to 'documentation/kernel-interfaces')
-rw-r--r-- | documentation/kernel-interfaces/app-entry.txt | 3 | ||||
-rw-r--r-- | documentation/kernel-interfaces/syscalls.txt | 5 |
2 files changed, 4 insertions, 4 deletions
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 |