Add support for openat on mips

This commit is contained in:
2025-04-25 19:43:55 -04:00
parent f5722b2c09
commit 47d317b977
2 changed files with 32 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ int main() {
write(STDIO, input_buffer, n_read);
// Test the open syscall
#if defined(__x86_64__)
#if defined(__x86_64__) || defined(__mips__)
int32_t file = open("/proc/version", O_RDONLY);
int i = read(file, input_buffer, INPUT_BUFFER_LEN);
while(i > 0) {