summaryrefslogtreecommitdiff
path: root/src/user/lib/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib/include')
-rw-r--r--src/user/lib/include/_proc.h7
-rw-r--r--src/user/lib/include/stdlib.h1
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);