diff options
Diffstat (limited to 'src/libc/include')
-rw-r--r-- | src/libc/include/camellia/intr.h | 4 | ||||
-rw-r--r-- | src/libc/include/unistd.h | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/libc/include/camellia/intr.h b/src/libc/include/camellia/intr.h new file mode 100644 index 0000000..b9390fd --- /dev/null +++ b/src/libc/include/camellia/intr.h @@ -0,0 +1,4 @@ +#pragma once + +void intr_set(void (*fn)(void)); +void intr_default(void); diff --git a/src/libc/include/unistd.h b/src/libc/include/unistd.h index 750d6e2..2158511 100644 --- a/src/libc/include/unistd.h +++ b/src/libc/include/unistd.h @@ -1,5 +1,6 @@ #pragma once #include <camellia/types.h> // TODO only needed because of hid_t +#include <camellia/intr.h> // TODO only included for backwards compat #include <sys/types.h> #include <getopt.h> @@ -64,8 +65,5 @@ unsigned int sleep(unsigned int seconds); * @return 0 on failure, length of the path otherwise */ size_t absolutepath(char *out, const char *in, size_t size); -// TODO put in an internal libc header -void __setinitialcwd(const char *c); - -void intr_set(void (*fn)(void)); -void intr_default(void); +/* used internally */ +extern const char *__initialcwd; |