diff options
Diffstat (limited to 'src/user/lib/stdlib.c')
-rw-r--r-- | src/user/lib/stdlib.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/user/lib/stdlib.c b/src/user/lib/stdlib.c index ffa9f15..5d1b09f 100644 --- a/src/user/lib/stdlib.c +++ b/src/user/lib/stdlib.c @@ -8,6 +8,14 @@ _Noreturn void abort(void) { _syscall_exit(1); } +static const char *progname; +const char *getprogname(void) { + return progname; +} +void setprogname(const char *pg) { + progname = pg; +} + int mkstemp(char *template) { // TODO randomize template handle_t h = camellia_open(template, OPEN_CREATE | OPEN_RW); |