summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/malloc.3
diff options
context:
space:
mode:
authorjsing <>2015-09-14 12:29:16 +0000
committerjsing <>2015-09-14 12:29:16 +0000
commitf861bb3b4f20cad63c964522d211fc74d292c839 (patch)
treed9e7087f85cb2eecaf2b0f3bb3c3af52e7665111 /src/lib/libc/stdlib/malloc.3
parent810729815324406169b00f976dceaf34caefadc0 (diff)
downloadopenbsd-f861bb3b4f20cad63c964522d211fc74d292c839.tar.gz
openbsd-f861bb3b4f20cad63c964522d211fc74d292c839.tar.bz2
openbsd-f861bb3b4f20cad63c964522d211fc74d292c839.zip
Expose EOF without close-notify via tls_close().
Make tls_read(3)/tls_write(3) follow read(2)/write(2) like semantics and return 0 on EOF with and without close-notify. However, if we saw an EOF from the underlying file descriptors without getting a close-notify, save this and make it visible when tls_close(3) is called. This keeps the semantics we want, but makes it possible to detect truncation at higher layers, if necessary. ok beck@ guenther@
Diffstat (limited to 'src/lib/libc/stdlib/malloc.3')
0 files changed, 0 insertions, 0 deletions