mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 14:08:21 +00:00
syscalls: isatty
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include <arch/e9.h>
|
||||
#include <arch/cpu.h>
|
||||
|
||||
#define SYSCALL_COUNT 23
|
||||
#define SYSCALL_COUNT 24
|
||||
#define LOGSTR(x) arch_e9_puts(x)
|
||||
|
||||
static char *name[] = {
|
||||
@@ -28,7 +28,8 @@ static char *name[] = {
|
||||
"dup3",
|
||||
"fcntl",
|
||||
"chdir",
|
||||
"pipe2"
|
||||
"pipe2",
|
||||
"isatty"
|
||||
};
|
||||
|
||||
static char *args[] = {
|
||||
@@ -55,6 +56,7 @@ static char *args[] = {
|
||||
"fd %d cmd %d arg %lu", // fcntl
|
||||
"path %s", // chdir
|
||||
"flags %d", // pipe2
|
||||
"fd %d", // isatty
|
||||
};
|
||||
|
||||
__attribute__((no_caller_saved_registers)) void arch_syscall_log(int syscall, uint64_t a1, uint64_t a2, uint64_t a3, uint64_t a4, uint64_t a5, uint64_t a6) {
|
||||
|
||||
Reference in New Issue
Block a user