Add support for fflush and close syscalls

This commit is contained in:
2025-04-27 02:48:55 -04:00
parent f07d793e6c
commit adfdaa27f7
5 changed files with 84 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ int main() {
write(STDOUT, input_buffer, n_read);
if(fout > 0) {
write(fout, input_buffer, n_read);
fsync(fout);
close(fout);
}
// Test the open syscall