Add read support for mips
This commit is contained in:
@@ -25,14 +25,12 @@ int main() {
|
||||
if(pid == 0) return 0;
|
||||
//TODO: wait on child to remove zombie process
|
||||
|
||||
#if defined(__x86_64__) || defined(__aarch64__)
|
||||
// Test the read syscall
|
||||
#define INPUT_BUFFER_LEN 4096
|
||||
char input_buffer[INPUT_BUFFER_LEN] = {0};
|
||||
write(STDIO, "Enter some text:", 16);
|
||||
intptr_t n_read = read(STDIO, input_buffer, INPUT_BUFFER_LEN);
|
||||
write(STDIO, input_buffer, n_read);
|
||||
#endif
|
||||
|
||||
return 69;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user