Files
ladybird/Userland/Libraries/LibC
Daniel Bertalan a1dfa1efb2 LibC: Flush all file streams on exit
The POSIX standard specifies the following:

> If the main() function returns to its original caller, or if the
> exit() function is called, all open files are closed (hence all output
> streams are flushed) before program termination.

This means that flushing `stdin` and `stdout` only is not enough, as the
program might have pending writes in other file buffers too.

Now that we support `fflush(nullptr)`, we call that in `exit()` to flush
all streams. This fixes one of bash's generated headers not being
written to disk.
2022-01-16 14:59:21 -08:00
..
2021-12-24 05:26:21 -08:00
2022-01-16 14:59:21 -08:00
2021-12-18 21:01:10 -08:00
2021-12-28 11:00:51 +01:00
2022-01-07 15:44:42 +01:00
2022-01-13 18:46:22 +01:00
2021-12-21 21:24:36 +03:30
2022-01-07 18:38:32 +01:00
2021-10-26 08:47:06 +02:00
2022-01-02 08:10:08 +02:00
2021-10-20 09:20:18 +01:00
2021-12-16 22:21:35 +03:30
2021-12-24 05:26:21 -08:00
2021-12-12 08:34:19 +02:00
2022-01-07 15:44:42 +01:00
2022-01-16 14:59:21 -08:00
2022-01-10 23:47:30 +01:00
2022-01-10 23:47:30 +01:00
2021-10-15 14:47:41 -07:00