diff options
author | Anton Kling <anton@kling.gg> | 2023-11-17 21:28:16 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-11-17 21:28:16 +0100 |
commit | 0c9282bb61b0d7c463045139655b3f1f1ec5422b (patch) | |
tree | b34933688c523d2b9319ab82ec9ba6572246d80f /userland/libc/include | |
parent | 99e5c8e046dfff53c331eb35394bfbcab4629fd0 (diff) |
LibC: Add isatty()
Diffstat (limited to 'userland/libc/include')
-rw-r--r-- | userland/libc/include/syscall.h | 1 | ||||
-rw-r--r-- | userland/libc/include/unistd.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/userland/libc/include/syscall.h b/userland/libc/include/syscall.h index 32d7b33..135c669 100644 --- a/userland/libc/include/syscall.h +++ b/userland/libc/include/syscall.h @@ -38,6 +38,7 @@ #define SYS_SIGACTION 30 #define SYS_CHDIR 31 #define SYS_GETCWD 32 +#define SYS_ISATTY 33 int syscall(uint32_t eax, uint32_t ebx, uint32_t ecx, uint32_t edx, uint32_t esi, uint32_t edi); diff --git a/userland/libc/include/unistd.h b/userland/libc/include/unistd.h index 89c48d0..d8c8b9d 100644 --- a/userland/libc/include/unistd.h +++ b/userland/libc/include/unistd.h @@ -23,4 +23,5 @@ void msleep(uint32_t ms); // not standard uint32_t uptime(void); // not standard int chdir(const char *path); char *getcwd(char *buf, size_t size); +int isatty(int fd); #endif |