nuttx-apps/graphics
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
..
ft80x build: Replace $(TOPDIR)/Make.defs with $(APPDIR)/Make.defs 2020-07-09 15:17:37 -03:00
lvgl graphics/lvgl: Specific LVGL version by kconfig 2020-08-14 16:02:25 +01:00
nxglyphs build: Replace $(TOPDIR)/Make.defs with $(APPDIR)/Make.defs 2020-07-09 15:17:37 -03:00
nxwidgets Change all 'Nuttx' to 'NuttX' 2020-10-18 22:27:57 -07:00
nxwm Remove all fclose with stdin, stdout and stderr 2020-10-29 20:43:59 +09:00
pdcurs34 Change FBIO_UPDATE argument from nxgl_rect_s to fb_area_s 2020-08-10 10:45:37 +01:00
screenshot build: Replace $(TOPDIR)/Make.defs with $(APPDIR)/Make.defs 2020-07-09 15:17:37 -03:00
slcd build: Replace $(TOPDIR)/Make.defs with $(APPDIR)/Make.defs 2020-07-09 15:17:37 -03:00
tiff Rewritten READMEs to Markdown 2020-07-25 01:01:51 -07:00
twm4nx Remove all fclose with stdin, stdout and stderr 2020-10-29 20:43:59 +09:00
.gitignore Remove extra whitespace from files (#43) 2020-01-31 08:29:24 -06:00
Make.defs Make.defs: Use complete include path 2020-02-19 12:56:10 -06:00
Makefile Remove extra whitespace from files (#43) 2020-01-31 08:29:24 -06:00