aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2012-06-04 21:34:49 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2012-06-04 21:34:49 +0000
commit96700463ec225e5f1d8bf058fd26f4160e4b7ed6 (patch)
treec77650aafa54d84d399cadefdd15e5e570dddf44 /usr.bin
parent10ee2f9a87251431a859e6cb18d4fcf6852b0692 (diff)
downloadsrc-96700463ec225e5f1d8bf058fd26f4160e4b7ed6.tar.gz
src-96700463ec225e5f1d8bf058fd26f4160e4b7ed6.zip
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
Notes
Notes: svn path=/head/; revision=236582
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions