summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-set-buffer.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2015-09-14 12:29:16 +0000
committerjsing <jsing@openbsd.org>2015-09-14 12:29:16 +0000
commit39389942672943c7e99d53f26c783b99efdf796b (patch)
treeb620387e418df35c49d2a52794a972c32f85ea79 /usr.bin/tmux/cmd-set-buffer.c
parentWrap <langinfo.h> and <regexp.h> so internal calls go direct and (diff)
downloadwireguard-openbsd-39389942672943c7e99d53f26c783b99efdf796b.tar.xz
wireguard-openbsd-39389942672943c7e99d53f26c783b99efdf796b.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 'usr.bin/tmux/cmd-set-buffer.c')
0 files changed, 0 insertions, 0 deletions