freebsd-nq/lib/libc
Andrey A. Chernov 96700463ec 1) IEEE Std 1003.1-2008, "errno" section, is explicit that
"The setting of errno after a successful call to a function is
unspecified unless the description of that function specifies that
errno shall not be modified."

However, free() in IEEE Std 1003.1-2008 does not mention its interaction
with errno, so MAY modify it after successful call
(it depends on particular free() implementation, OS-specific, etc.).

So, save errno across free() calls to make code portable and
POSIX-conformant.

2) Remove unused serrno assignment.

MFC after:      1 week
2012-06-04 21:34:49 +00:00
..
amd64
arm
compat-43 General mdoc(7) and typo fixes. 2012-05-08 18:56:21 +00:00
db
gdtoa
gen mdoc: minor Bl improvements. 2012-06-02 08:47:26 +00:00
gmon mdoc: end list context with El. 2012-05-12 07:52:45 +00:00
i386
ia64
iconv
include Take the spinlock around clearing of the fp->_flags in fclose(3), which 2012-04-24 17:51:36 +00:00
inet
isc
locale General mdoc(7) and typo fixes. 2012-05-11 20:06:46 +00:00
mips
nameser
net Update copyright date. 2012-05-23 10:35:40 +00:00
nls
posix1e Minor mdoc nits. 2012-05-13 14:16:04 +00:00
powerpc Doh... Don't add __eabi to an old version tag (i.e. FBSD_1.0). Add it to the 2012-05-25 16:30:42 +00:00
powerpc64
quad
regex
resolv
rpc General mdoc(7) and typo fixes. 2012-05-11 20:06:46 +00:00
softfloat
sparc64
stdio Only set _w to 0 when the file stream is not currently reading. Without 2012-05-30 04:06:38 +00:00
stdlib 1) IEEE Std 1003.1-2008, "errno" section, is explicit that 2012-06-04 21:34:49 +00:00
stdtime
string General mdoc(7) and typo fixes. 2012-05-11 20:06:46 +00:00
sys Remove invalid remark about pipes. 2012-06-02 10:50:25 +00:00
uuid
xdr
yp
Makefile Disable NLS catalog use in libc if built with WITHOUT_NLS option. 2012-05-21 08:10:42 +00:00
Versions.def