summaryrefslogtreecommitdiff
path: root/src/user/lib/include
diff options
context:
space:
mode:
authordzwdz2022-10-19 14:23:14 +0200
committerdzwdz2022-10-19 14:23:14 +0200
commit3655115e5a3c50fc06afd801100a9d75d813fd2b (patch)
treec9d4f39608d19d0a4b0b886d70d9b86463a59d60 /src/user/lib/include
parent753d43d349bfde6b83cff650c9354c4a0442a3ae (diff)
user/libc: BSD err.h, getprogname()
Diffstat (limited to 'src/user/lib/include')
-rw-r--r--src/user/lib/include/err.h8
-rw-r--r--src/user/lib/include/stdlib.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/src/user/lib/include/err.h b/src/user/lib/include/err.h
index e69de29..9ce4253 100644
--- a/src/user/lib/include/err.h
+++ b/src/user/lib/include/err.h
@@ -0,0 +1,8 @@
+#pragma once
+#include <stdarg.h>
+
+_Noreturn void err(int ret, const char *fmt, ...);
+_Noreturn void errx(int ret, const char *fmt, ...);
+
+void vwarn(const char *fmt, va_list args);
+void vwarnx(const char *fmt, va_list args);
diff --git a/src/user/lib/include/stdlib.h b/src/user/lib/include/stdlib.h
index 2df0bf7..8a86265 100644
--- a/src/user/lib/include/stdlib.h
+++ b/src/user/lib/include/stdlib.h
@@ -12,6 +12,9 @@
_Noreturn void abort(void);
_Noreturn void exit(int);
+const char *getprogname(void);
+void setprogname(const char *progname);
+
int mkstemp(char *template);
char *getenv(const char *name);
int system(const char *cmd);