nuttx-apps/graphics/twm4nx/apps
Xiang Xiao e76ab9c868 Remove all fclose with stdin, stdout and stderr
since it is wrong to close the builtin stream and specially note
https://pubs.opengroup.org/onlinepubs/9699919799/functions/fclose.html:

Since after the call to fclose() any use of stream results in
undefined behavior, fclose() should not be used on stdin, stdout,
or stderr except immediately before process termination (see XBD
Process Termination), so as to avoid triggering undefined behavior
in other standard interfaces that rely on these streams. If there
are any atexit() handlers registered by the application, such a
call to fclose() should not occur until the last handler is
finishing. Once fclose() has been used to close stdin, stdout, or
stderr, there is no standard way to reopen any of these streams.

and it is also unnecessary because the stream always get flushed.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-29 20:43:59 +09:00
..
ccalibration.cxx Unify the void cast usage 2020-01-02 23:21:01 +08:00
cclock.cxx Unify the void cast usage 2020-01-02 23:21:01 +08:00
cnxterm.cxx Remove all fclose with stdin, stdout and stderr 2020-10-29 20:43:59 +09:00
Kconfig Squashed commit of the following: 2019-06-01 13:00:02 -06:00