From 2ad6ee8ed15d1bf898645a16dbc06991a3c1425e Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 25 Jan 2023 19:22:18 +0100 Subject: user: process titles, /bin/ps --- src/user/lib/include/_proc.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/user/lib/include/_proc.h (limited to 'src/user/lib/include/_proc.h') 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; -- cgit v1.2.3