freebsd-skq/lib/libc
Enji Cooper 7661ad590f Fix double fclose of fp1 when freopen fails
freopen handles closing file descriptors on error, with the exception of
fdopen'ed descriptors, so closing an already fclose'd file descriptor is
incorrect

CID: 1338525
Differential Revision: https://reviews.freebsd.org/D6013
MFC after: 2 weeks
Reported by: Coverity
Sponsored by: EMC / Isilon Storage Division
2016-04-20 00:19:04 +00:00
..
aarch64 arm64 libc: hide .cerror, .curbrk, .minbrk for WITHOUT_SYMVER 2016-04-14 16:32:27 +00:00
amd64 libc: stop exporting curbrk and minbrk in the private namespace 2016-03-24 18:47:19 +00:00
arm Revert a change that sneeked with 297619 2016-04-06 16:50:18 +00:00
capability use .Mt to mark up email addresses consistently (part4) 2014-06-23 08:25:03 +00:00
compat-43 Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. 2015-09-20 20:53:24 +00:00
db libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
gdtoa META MODE: Don't create .meta files when symlinking sources into the obj directory. 2015-11-25 19:44:43 +00:00
gen Remove trailing whitespace and use nitems(mib) instead of 2 when 2016-04-19 22:59:21 +00:00
gmon Replace the last non-optional use of sbrk() in the tree with mmap(). 2016-01-21 18:17:19 +00:00
i386 libc: stop exporting curbrk and minbrk in the private namespace 2016-03-24 18:47:19 +00:00
iconv libc: don't build compat functions if building WITHOUT_SYMVER 2016-03-15 19:26:32 +00:00
include Disable support for compat syscalls on arm64. These symbols were never 2016-04-06 16:09:10 +00:00
inet libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
isc libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
locale libc: replace 0 with NULL for pointers. 2016-04-10 19:33:58 +00:00
md Bring the md5 functions into libc for internal use only. 2014-08-12 12:25:56 +00:00
mips libc: stop exporting cerror 2016-03-30 14:42:09 +00:00
nameser Add missing break. 2014-08-20 14:58:25 +00:00
net libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
nls Move logic to destroy a struct catentry to its own function. 2016-02-02 23:33:58 +00:00
posix1e libc: replace 0 with NULL for pointers. 2016-04-10 19:33:58 +00:00
powerpc libc: make some more use of the nitems() macro. 2016-04-16 17:52:00 +00:00
powerpc64 libc: make some more use of the nitems() macro. 2016-04-16 17:52:00 +00:00
quad Remove MK_ARM_EABI, the armeb issues have been fixed. The code to support 2014-10-01 08:26:51 +00:00
regex Add -static to CFLAGS to unbreak the tests by using a libc.a with 2015-12-13 06:33:52 +00:00
resolv libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
riscv libc: stop exporting curbrk and minbrk in the private namespace 2016-03-24 18:47:19 +00:00
rpc libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
secure libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
softfloat libc: replace 0 with NULL for pointers. 2016-04-10 19:33:58 +00:00
sparc64 libc: stop exporting cerror 2016-03-30 14:42:09 +00:00
stdio freopen(3): prevent uninitialized errno. 2016-03-30 13:26:35 +00:00
stdlib libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
stdtime Implement (ACFLAGS|CFLAGS|CXXFLAGS).SRC globally. 2016-03-26 03:46:12 +00:00
string Make it clear that the "size" argument is for the dst string. 2016-02-26 22:14:19 +00:00
sys Document KTRFAC_FAULT and KTRFAC_FAULTEND. 2016-03-31 23:55:19 +00:00
tests Fix double fclose of fp1 when freopen fails 2016-04-20 00:19:04 +00:00
uuid libc: replace 0 with NULL for pointers. 2016-04-10 19:33:58 +00:00
xdr libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
yp libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
libc.ldscript Attempt to move the POSIX iconv* symbols out of runtime linker space. 2013-11-17 22:52:17 +00:00
Makefile MFH 2016-04-04 23:55:32 +00:00
Makefile.depend DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
Versions.def Fix the inheritance of the FBSDprivate_1.0 namespace. 2014-04-03 17:31:38 +00:00