diff options
author | jsing <> | 2015-09-14 12:29:16 +0000 |
---|---|---|
committer | jsing <> | 2015-09-14 12:29:16 +0000 |
commit | 8bf97226937b4c32d717d66e71258b8189a0d164 (patch) | |
tree | d9e7087f85cb2eecaf2b0f3bb3c3af52e7665111 /src/lib/libc/stdlib/_Exit.c | |
parent | fae01b5a6e7434e3b290843262eb0e20209f3ac9 (diff) | |
download | openbsd-8bf97226937b4c32d717d66e71258b8189a0d164.tar.gz openbsd-8bf97226937b4c32d717d66e71258b8189a0d164.tar.bz2 openbsd-8bf97226937b4c32d717d66e71258b8189a0d164.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/_Exit.c')
0 files changed, 0 insertions, 0 deletions