Updated copyright notices to include the year 2018.
global: Replace o_stream_nfinish() with o_stream_finish() whenever possible
lib: test-ostream-* - Call o_stream_nfinish() after uncorking
global: use i_rand_limit() and i_rand_minmax() when possible
global: Replace random_fill_weak with random_fill They are now the same thing
global: Replace rand with i_rand
Updated copyright notices to include the year 2017.
lib: remove autoclose parameter from [io]_stream_create_fd Use [io]_stream_create_fd_autoclose() for autoclose.
o_stream_send_istream() API changed again The new API enforces the caller to correctly handle all the possible situations. It also makes in unambiguous whether to wait for input or output stream.
lib: Fixed memory leak in ostream-file unit test
lib: ostream-file unit test: Test sendfile()
lib: ostream-file: Fixed o_stream_send_istream() within same file When copying content backwards.
global: freshen copyright git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/'
Remove now-unnecessary direct stdlib.h #includes.
Replaced unlink() calls with i_unlink*() wherever possible.
global: freshen copyright Robomatically: git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/' Happy 2015 everyone! Signed-off-by: Phil Carmody <phil@dovecot.fi>
Updated copyright notices to include year 2014.
Oops :) Update copyrights to 2013 without breaking all .c files.
Updated copyright notices to include year 2013.
Changed i_close_fd() API to set the fd to -1 after closing.
Replaced (void)close(fd) and close_keep_errno() with i_close_fd(). i_close_fd() preserves the errno and logs an error if the close() fails.
Make sure we check all the functions' return values. Minor API changes to simplify this. Checked using a patched clang that adds attribute(warn_unused_result) to all functions. This commit fixes several error handling mistakes.
Added o_stream_nsend*() and related functions to make delayed error handling safer. Once o_stream_nsend*() is called, o_stream_nfinish() must be called before stream is destroyed to finish checking if there were any errors. If something failed and the stream is just wanted to be closed, o_stream_ignore_last_errors() can be called. For streams where errors don't really make any difference (network sockets) you can call o_stream_set_no_error_handling() immediately after creating the stream.
Updated copyright notices to include year 2012.
Updated copyright notices to include year 2011.
ostream-file: Fixed potential crash in write_at() and also fixed attempted optimization.