NewbiZ / xv6

Reimplementation in ANSI C of Unix v6 + POSIX compliance + VFS + ulibc + ACPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

exit() should flush/close all opened streams

NewbiZ opened this issue · comments

This means

  • We need to keep track of all opened streams in fopen/fclose (array of FOPEN_MAX or linked list like musl?)
  • call fflush(NULL)/fclose(NULL)