diff options
author | dzwdz | 2023-01-25 19:22:18 +0100 |
---|---|---|
committer | dzwdz | 2023-01-25 19:22:18 +0100 |
commit | 2ad6ee8ed15d1bf898645a16dbc06991a3c1425e (patch) | |
tree | 9e9d50d7447da03a0ff898bf9b268d26ef343702 /src/user/lib/include | |
parent | 2a2fc4dffe0117ce874a6cf1dcc34321ed8add77 (diff) |
user: process titles, /bin/ps
Diffstat (limited to 'src/user/lib/include')
-rw-r--r-- | src/user/lib/include/_proc.h | 7 | ||||
-rw-r--r-- | src/user/lib/include/stdlib.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/user/lib/include/_proc.h b/src/user/lib/include/_proc.h new file mode 100644 index 0000000..c8fd70b --- /dev/null +++ b/src/user/lib/include/_proc.h @@ -0,0 +1,7 @@ +#pragma once + +/* That page contains a null-terminated string that describes the process + * for tools such as ps. It's first allocated in the bootstrap process, and + * then it's freed on every exec() - just to be immediately reallocated by + * _start2(). */ +static char *const _libc_psdata = (void*)0x10000; diff --git a/src/user/lib/include/stdlib.h b/src/user/lib/include/stdlib.h index 8a86265..050ca80 100644 --- a/src/user/lib/include/stdlib.h +++ b/src/user/lib/include/stdlib.h @@ -14,6 +14,7 @@ _Noreturn void exit(int); const char *getprogname(void); void setprogname(const char *progname); +void setproctitle(const char *fmt, ...); int mkstemp(char *template); char *getenv(const char *name); |