summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/system.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2012-06-05 16:16:33 +0000
committerache <ache@FreeBSD.org>2012-06-05 16:16:33 +0000
commit3515d45cd06756bbd9d7cd27096d00af1e6148bf (patch)
treebede6748ca4ca7234f3af4c6eee4fa5c0b47f359 /lib/libc/stdlib/system.c
parentfe9edacbccc1b0d60fd1f7e22580414c570a7eb9 (diff)
downloadFreeBSD-src-3515d45cd06756bbd9d7cd27096d00af1e6148bf.zip
FreeBSD-src-3515d45cd06756bbd9d7cd27096d00af1e6148bf.tar.gz
1) Although unpublished version of standard
http://austingroupbugs.net/view.php?id=385#c713 (Resolved state) recommend this way for the current standard (called "earlier" in the text) "However, earlier versions of this standard did not require this, and the same example had to be written as: // buf was obtained by malloc(buflen) ret = write(fd, buf, buflen); if (ret < 0) { int save = errno; free(buf); errno = save; return ret; } " from feedback I have for previous commit it seems that many people prefer to avoid mass code change needed for current standard compliance and prefer to track unpublished standard instead, which requires now that free() itself must save errno, not its usage code. So, I back out "save errno across free()" part of previous commit, and will fill PR for changing free() isntead. 2) Remove now unused serrno. MFC after: 1 week
Diffstat (limited to 'lib/libc/stdlib/system.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud