e160bffe28
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> |
||
---|---|---|
.. | ||
Kconfig | ||
lib_access.c | ||
lib_alarm.c | ||
lib_chdir.c | ||
lib_daemon.c | ||
lib_execl.c | ||
lib_fstatvfs.c | ||
lib_futimens.c | ||
lib_futimes.c | ||
lib_getcwd.c | ||
lib_getegid.c | ||
lib_geteuid.c | ||
lib_getgid.c | ||
lib_gethostname.c | ||
lib_getopt.c | ||
lib_getoptargp.c | ||
lib_getoptindp.c | ||
lib_getoptoptp.c | ||
lib_getpriority.c | ||
lib_getrlimit.c | ||
lib_getrusage.c | ||
lib_gettid.c | ||
lib_getuid.c | ||
lib_pathconf.c | ||
lib_pipe2.c | ||
lib_pipe.c | ||
lib_restoredir.c | ||
lib_setegid.c | ||
lib_seteuid.c | ||
lib_setgid.c | ||
lib_sethostname.c | ||
lib_setpriority.c | ||
lib_setregid.c | ||
lib_setreuid.c | ||
lib_setrlimit.c | ||
lib_setuid.c | ||
lib_sleep.c | ||
lib_statvfs.c | ||
lib_swab.c | ||
lib_sysconf.c | ||
lib_truncate.c | ||
lib_usleep.c | ||
lib_utimes.c | ||
Make.defs |