5a9bbcb13b2dd2cf9a825c7ed09fe7ee143b1275 |
|
07-Feb-2018 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add i_stream_get_root_io() and use it to deduplicate code |
e9fbe5e18b798728041b7e2ffc6c4fa964fc35a3 |
|
31-Jan-2018 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on str_free(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- str_free(&E);
- }
+ str_free(&E); |
038c2831447440bf0bef89b43dd0968afc298abc |
|
30-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib: istream: Allow switching to a specific ioloop. |
b3b813a6473d1210eee94bd60eaa6bafd2131ed3 |
|
30-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib: iostream: Record the ioloop that the iostream was last switched to. |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
f4169072aebf5607b272f954fb405c838e1aa4d6 |
|
09-Nov-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib: use temp var in i_stream_unref for clarity |
a215abacb2d2d1e1bcd475756aab809038ae4277 |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add i_stream_get_last_read_time() |
ba55ec8fdf79301bfce9838d773250cef9486178 |
|
03-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: istream - Avoid panic in snapshot() with nonpersistent buffers |
30517c760897cc4f249da1830ae1996f4d7b5aea |
|
02-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: istream - Don't leak snapshot memory if close() triggers a read
Also move the line_str freeing just before stream is freed. That didn't
cause any known memory leaks though. |
5aa1aa87a24ff39d566a3ad90d0f8d054118cfe7 |
|
02-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: i_stream_w_buffer_realloc() - avoid passing NULL to memcpy()
It happened only with size=0, so it shouldn't have mattered much. |
9a84b90d894a741ae6e090de104d31382a41d0aa |
|
01-Nov-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on [io]_stream_close(NULL) being a no-op
Cleanup performed with the following semantic patch (and a bit of
hand-editing):
@@
expression E;
@@
- if (E != NULL) {
- i_stream_close(E);
- }
+ i_stream_close(E);
@@
expression E;
@@
- if (E != NULL) {
- o_stream_close(E);
- }
+ o_stream_close(E); |
660ecbaf80e6b3cf3a70ed1e0cdf7f8af6d895d0 |
|
01-Nov-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib: [io]_stream_close(NULL) should be no-ops |
bcd286622779a93f809b11993db0550f8c7cc9b5 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use i_stream_read_memarea() wherever possible |
fa39c427573ada77265b833db687ca7e854794a1 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: i_stream_compress() - assert-crash if trying to compress shared memarea
The caller is always expected to check the refcount before calling this. |
66967e15d8ed35f30493dd9694a0aabe1a266f9d |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: i_stream_read() - Add buffer validity checks if DEBUG is enabled |
e0fab14602b73ff590b2a9c5d9e67e2dfb5d1f9e |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: i_stream_read() - Use snapshots
This guarantees that data returned by i_stream_get_data() won't be freed
until the next i_stream_read() returns >0. This is mainly important,
because often the error handling for <=0 doesn't update the buffer
pointers correctly and it leads to complicated bugs where already freed
memory is attempted to be read (but never written). |
89a89730a1dd98edb5c16a5b65f693389eb81124 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add ISTREAM_CREATE_FLAG_NOOP_SNAPSHOT flag |
2974dca6be5120e49279f06c8aa952e5fac56048 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Add flags parameter to i_stream_create() and set it to 0
This just changes the API - the following changes add the new flag. |
51d379cbc50242a13462d0fded50e013eb00cc07 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add i_stream_try_alloc_avoid_compress() |
82ea464c113f43aaa2b2e23de334cf3081c332be |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add istream.snapshot() method for referencing the current memarea
It will be used by following commits. |
5ca745ae8e9903ef5265360e4c882e9314595020 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Use memarea for default istream memory allocations. |
54bd0fec0be357266e299466a582f3c9269884e9 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use i_stream_free_buffer() instead of freeing w_buffer directly |
785ee8becdb11e41abaaf64c28eb3923215d1f27 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add i_stream_free_buffer() to free i_stream_*alloc()ed memory |
1bc075e2e4ed422f9590c95c3ae223422b97ce6a |
|
30-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Rename i_stream_is_eof() to i_stream_read_eof()
This describes its behavior a bit better. |
1ef9fe877817de76eb38883ccf3833fae60e6865 |
|
05-Oct-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: stop including fd-set-nonblock.h & fd-close-on-exec.h directly |
0b6924ad1943fe5c6917fc49f675d8f316b0d939 |
|
05-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add i_stream_set_blocking() |
204ee6ed414f5e4eeb6f6c10763b55daf56f11ac |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on [io]_stream_unref(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- i_stream_unref(&E);
- }
+ i_stream_unref(&E);
@@
expression E;
@@
- if (E != NULL) {
- o_stream_unref(&E);
- }
+ o_stream_unref(&E); |
b3fc5293379feb3640b23622bcc8f5f8d7f1e81d |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib: [io]_stream_unref(NULL) should be a no-op |
d6684856fb99e51bc22a6346e08b2d81c996f963 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib: [io]_stream_destroy(NULL) should be a no-op |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
efe78d3ba24fc866af1c79b9223dc0809ba26cad |
|
24-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro.
Used the following script:
C_FILES=`git ls-files *.c`
H_FILES=`git ls-files *.h`
for F in "$C_FILES $H_FILES"; do
echo "$F"
perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
done |
6d404348751c19ac37cfb42375abdd3c5f298e30 |
|
24-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Code cleanup - avoid passing NULL to functions with non-null parameter |
a85c629c5d75a5fd9489ba14d5d4f54f3cddd591 |
|
14-Nov-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Mark istream with eof=TRUE on all errors
Previously only i_stream_read() did this, but i_stream_seek(), _stat(),
_get_size() and _create() didn't. This caused assert-crashes on error
conditions in code which assumed that when stream_errno != 0, eof==TRUE. |
5965eaa2d972e6264cecaf54091cd43019bc7d1f |
|
23-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Added uchar_empty_ptr and use it instead of &uchar_nul.
This makes Coverity happier about not treating a char as an array.
For now this is a pointer to a 0, but could as well become a pointer
that crashes if dereferenced. Shouldn't be NULL anyway because clang's
-fsanitize=nonnull-attribute will complain about them. |
6657aee0bb6c603b4ee5111388b93c1a8a9ad680 |
|
02-Aug-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: return non-NULL pointer in i_stream_get_data when size is 0 |
e6bc5e739360377c5badf0da24208f4836722eae |
|
22-Jul-2016 |
Stephan Bosch <stephan@dovecot.fi> |
Calling i_stream_next_line() on a chain stream would sometimes erroneously use the stream->w_buffer.
It used the wrong check to assess whether the w_buffer is usable.
The chain stream only uses the w_buffer when partial stream data needs to be merged. Otherwise, a parent stream's buffer is used directly. However, this does not mean that w_buffer will be NULL in that case, which is what i_stream_next_line() assumed. |
f0339f522dc9c8e2e8a29ef9a3f937c431c6bd1b |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use only explicit int -> bool conversions
These were checked with a patched clang. |
0928812e725cd3a4debab2a93d0c9b0436a4de9f |
|
01-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use i_stream_get_max_buffer_size() wherever possible
After 7be8ba0c0 it's no longer correct to access stream->max_buffer_size
directly. These changes fix using istream-chain with various wrapper
streams. |
71aed7ba87b5fd5e96e97a22d89ac025b883d60a |
|
01-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: i_stream_get_max_buffer_size() checks also parents' max sizes
This fixes i_stream_get_max_buffer_size() to work correctly with
istream-chain. |
d28179fd78550a58be44dcb1e3e830ab7d33172d |
|
19-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Changed istream.abs_start_offset to be relative start_offset
i_stream_get_absolute_offset() walks through the stream's parents to get the
absolute offset. This allows streams to change their start_offset after
they have already created (e.g. istream-metawrap). |
6eb0192085073a63ea03443860c412bb5312dd7e |
|
13-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Fixed potential crash in i_stream_stat() failures.
We shouldn't have been copying parent's stream_errno here. Especially
because the parent can be NULL. |
52041ed691a26ca80e4e805765e9f55ec097c8f1 |
|
09-May-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: check stream_errno too when checking whether istream is closed |
5af5137f6dc0c9f358b7813e941e26f7bd735b3a |
|
06-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Added i_stream_get_disconnect_reason() |
07b3a7d8143c083c554e3169c672dacf068eeeb6 |
|
04-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: istream's max_buffer_size=0 means 0, not unlimited.
Make sure we don't grow the buffer size then. |
5a1b498b646b5c5dbd1b3f3861df766f560578c5 |
|
21-Apr-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: When istream is destroyed, it now always unrefs the parent istream if it exists.
This way the implementations don't have to do it themselves in their
destroy() function. This change doesn't necessarily require changing the
existing code, because if the istream implementation already unrefs the
parent it gets set to NULL so the auto-unref won't be done. |
463f6ea04af934a68facaca0ff089bc306de3f98 |
|
11-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Added i_stream_set_persistent_buffers() |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
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/' |
46ce4d9273e6df12ef1912bbdb1c8b84b104f394 |
|
11-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: i_stream_get_error() now returns "EOF" if stream_errno==0 and eof==TRUE.
This can be used to replace a lot of code like:
input->stream_errno == 0 ? "EOF" : i_stream_get_error(input)
with simply:
i_stream_get_error(input) |
c2cda8cd0043443566efc5da30f79865508a1947 |
|
27-Nov-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Added extra assert to i_stream_read() |
2c0f1cb7a0564d48ec43c7315ea46ea38d2abd19 |
|
29-Jun-2015 |
Timo Sirainen <tss@iki.fi> |
istream filters: If parent's i_stream_stat() fails, copy the stream_errno.
This doesn't actually change any functionality yet, since most
i_stream_stat() callers aren't using i_stream_get_error(). |
fb502495e9306fe51e9d2c0019e622a98e9803ab |
|
15-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
lib: If i_stream_read() sets stream_errno even if it didn't return -1, make sure we set eof=TRUE |
eb98a038ca8b0ef33d1d11794803ce09547496fa |
|
17-Jan-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Added o_stream_add_destroy_callback() |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
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> |
7a77b948806106b46a33f3e6a3869657f49877fd |
|
13-Nov-2014 |
Timo Sirainen <tss@iki.fi> |
lib: Never implicitly clear istream's stream_errno.
I'm not really sure why these were added in the first place. At some point
the stream_errno was cleared in more places, such as just before reading,
but those were also removed already. I don't see any benefit for these, just
potential problems. |
b80c329a25b5b07f5e68cd44ef0fef9db6613486 |
|
26-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
lib: If i_stream_seek() works by reading forward and read() fails, don't override the error message. |
89c8d5f336e44cca091a1f588d51ba26e5145ad2 |
|
14-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
lib: i_stream_read_next_line() now sets a better error message if line is too long. |
73b9c241e7fb6abdccda88e88fbd32e844dbc185 |
|
29-Sep-2014 |
Timo Sirainen <tss@iki.fi> |
lib: If i_stream_default_seek_nonseekable() can't seek, set a more readable error message. |
66dc739bb67d678770e1b7a7bc75f4f6f9523d2a |
|
07-Jul-2014 |
Timo Sirainen <tss@iki.fi> |
lib: i_stream_read_copy_from_parent() needs to update access counter also when returning -2
This finishes the 467a4d19f873 fix. |
c6b6ac7819931dfa92c0182ffaa7db07ac6ab0da |
|
19-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
lib: i_stream_read_copy_from_parent() now directly updates the access counter
This fixes a bug in istream-mail where it called i_stream_get_data() after
it and reset the stream's skip/pos. |
4106a25399703eb6cbb166dcbd5bb932cb2f7ad2 |
|
19-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
lib: i_stream_get_data() should also reset eof=FALSE if it truncates the output. |
aaa5d949334ffe8340a818f0007bb598e2608e29 |
|
19-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
Compiler warning fix |
f5982bb5b0a704e88fa2b44b0b74e365d13103b9 |
|
19-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
lib: If two istreams share one parent, i_stream_get_data() may have returned corrupted data to another.
This happened only for istreams that used parent's buffer directly instead
of having their own buffer. For now at least we've solved this by truncating
the other stream's buffer so it needs to be read again. Hopefully this is
good enough.
Added also unit test to check this functionality. |
df831edaa3b3aa22e03bc5fd416a0553c5600a69 |
|
07-May-2014 |
Phil Carmody <phil@dovecot.fi> |
lib: a couple of trivial sparse cleanups
The #include isn't needed on modern linux, as the macros are already defined
The compiler seems to silently ignore redefinitions in system header files,
so didn't throw a warning, but probably should have, as redefinitions can lead
to insanity.
The cast just makes it explicit that we're changing the prototype. |
f20e7fbdc9bdbe8fecb9c661c9b8175f3bb78c69 |
|
24-Apr-2014 |
Timo Sirainen <tss@iki.fi> |
i_stream_read_next_line(): Set also errno=ENOBUFS on too large line.
Some callers assume that errno is set to same as istream->stream_errno |
4c096615cb86a826fda377b87df22c579bfe5525 |
|
03-Apr-2014 |
Timo Sirainen <tss@iki.fi> |
Added io_add_istream() and related functionality for combining the ioloop/istream.
The idea here is that it's possible to implement asynchronous istreams when
there isn't a file descriptor that can be used to reliably receive updates. |
a2738cdb6d2733fb3e186331d68009421a19ea00 |
|
02-Apr-2014 |
Timo Sirainen <tss@iki.fi> |
i_stream_read(): If stream_errno is set, fail immediately.
Previously the stream_errno was reset to 0, but this required the istream
implementation to correctly set the stream_errno back, which wasn't often
done. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
5f3151744f3ffa73b57391d4a237884b75423f57 |
|
06-Nov-2013 |
Timo Sirainen <tss@iki.fi> |
istream: Added i_stream_init_parent() to lazily initialize the parent stream. |
f4735bf7ec2019fdc730e9ebdb39e5a4ea580405 |
|
22-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
lib: Added [io]_stream_create_error_str() |
862ec874f9373e3e499e237d3b9f71fdf1413fee |
|
19-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
iostream: Added ability to set/get error strings for streams. |
66d84e6f0ae34a3cf5b8fa8e009d6caf025b6a2a |
|
12-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
istream: Improved "stream not seekable" panic message. |
1a0ece3e873e3864269ed7eaed957dc10c56d25f |
|
07-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
istream API change: Added support for multiple destroy callbacks. |
7af4788b402346c94496095dd819f95ce03fe431 |
|
04-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
i_stream_read(): Added assert. |
e2ce8d4a6ac5d82a906178148453e7613fab9ba0 |
|
13-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
iostreams: Added close_parent flag to close() handler and clarified close/destroy APIs.
This makes it unambiguous how things work: Unless you explicitly call
[io]_stream_close(), the parent streams won't be closed. This is what most
(hopefully all!) of the existing code expects.
I was wondering a bit if [io]_stream_destroy() should simply have been
removed and replaced with [io]_stream_unref() calls, since they would have
worked basically everywhere, but there might be some places where it's
better to have explicitly closed the stream (and where closing the parent
stream doesn't matter). |
b2c16f3a54ffc0c416ab1e48f762dad3eedc7dbb |
|
04-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
i_stream_create(): Copy stream_errno/eof immediately from the parent stream.
This makes wrapper istream behavior more reliable when the original istream
is an istream-error. |
d5b3f66491101aba8667369586c95c615cb26ae6 |
|
04-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
istream: Fail in the default stat() implementation if stream_errno is set. |
8f28cbec73c17c119b66e198d843ff03bdbc0191 |
|
04-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
i_stream_close(): Set stream_errno to EPIPE instead of ENOENT. |
d14e62b7b37dc78fcc940aca25042eceb358b156 |
|
03-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
i_stream_create_error() should have set eof=TRUE immediately. |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
c0b1543512bc3e0a3a9f526056a3678a07ce32f5 |
|
21-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
i_stream_read_next_line() should have also set eof=TRUE on ENOBUFS errors. |
a0b6b441fc679e562e79be0fb2819ffc24ab5b74 |
|
14-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
i_stream_read_next_line() now sets stream_errno=ENOBUFS if input buffer gets full.
Previously the caller couldn't easily separate this condition from "more
data needed", potentially causing infinite loops. |
6556f02c704778bad4240363768cdaf2d3a1a79c |
|
15-Dec-2012 |
Timo Sirainen <tss@iki.fi> |
i_stream_close(): Set stream_errno to EPIPE instead of ENOENT.
ENOENT implies that this stream pointed to a file that never existed. EPIPE
isn't perfect either, but probably clearer than the alternatives. |
df16c7e87511fed827e6890a2a47d13ca48716de |
|
15-Dec-2012 |
Timo Sirainen <tss@iki.fi> |
i_stream_next_line(): Don't reset stream_errno if stream is already closed. |
9db5ade1c16c7f67c51004f28c28ea335755d3f0 |
|
28-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
i_stream_default_stat(): If we can't know the size, return -1 instead of assert crash.
This fixes a crash saving to mdbox when input stream's size wasn't known. |
439dd06aec3301e65d650f6dc1d4a1a00b356b4f |
|
12-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
istream: Added internal try_alloc_limit to limit size returned by i_stream_try_alloc()
This was required by the previous SSL change. |
0c1835a90dd1dcedaeaedd1cd91672299cbeb5be |
|
30-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Added [io]_stream_create_error() for creating streams that always fail reads/writes. |
01f4ee4a0243f3fe9af763e1a540cd5cff0d63f5 |
|
28-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
i_stream_stat() API changed.
This fixes also one missing error check. |
6f08b98ac63c25b747120d0c8f8e319b4e26ab0f |
|
12-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_last_line_crlf() |
c24ef531ca58abad996482f5c2e8992be9ae8981 |
|
25-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
i_stream_read(): Added assert to make sure EOF isn't returned too early. |
5df8396a7cbad0b38b83a86667fb3d4c223f6f7c |
|
29-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
istreams: Added default stat() implementation for filter streams. |
032964c7cc6788188b63ae6270fc26cbd4a3ca26 |
|
29-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
istreams: Added default seek() implementation for seekable streams. |
c7acd38cd4ef76a0f4652f9ca659ea5e64458b52 |
|
28-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_alloc() |
dd2df6a67f10792ce31a3666197c0b6885893a3a |
|
28-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
istreams: Renamed i_stream_get_buffer_space() to i_stream_try_alloc() |
b66d803de86bfb411165b3465b0d9ef64ecfe2a1 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Avoid using (void)s by adding ATTR_NOWARN_UNUSED_RESULT attributes and other ways. |
3785910c303507db5f629684e6dde2cc7f83668e |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_get_data_size(). Used it where possible. |
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4 |
|
23-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
The non-obvious APIs where NULL parameter was changed to "" are
master_service_init() and auth_master_user_list_init().
These checks can currently be enabled only on a patched clang:
http://llvm.org/bugs/show_bug.cgi?id=6786 |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
d66ef20c30fee728899ee168c75fcc5ff8fbdac1 |
|
08-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
iostreams: Set errno to stream_errno when exiting from failing functions. |
97e62b2b36dda0acb3215667042f5c80cdee8155 |
|
03-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
istream: Don't treat max_block_size=0 as unlimited. |
c28f6aa0b70af4811c9ace9114fe827c2f503455 |
|
14-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_unset_destroy_callback() |
9b2d78591573d83763a579726bfa525c79dc6df8 |
|
21-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
i_stream_next_line(): Don't fail if stream doesn't have write buffer, we can handle it. |
0536ccb51d41e3078c3a9fa33e509fb4b2420f95 |
|
21-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
Renamed lib/*-internal.h files to lib/*-private.h for consistency. |
2e37d45867d081db150ab78dad303b9077aea24f |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
183bea41fa640dc8117f3eb45ff935cd81377a84 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
2524ef7b34965a1b1895d6140fd8296bf57c78d2 |
|
09-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
i_stream_read(): Added extra assert. |
d9ab8a13b51c9d8f4e13e1bf785eeadce6702b3b |
|
15-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
istream: Exported i_stream_default_seek() |
923115fd382904fa13bb09bf307bf2835b52df60 |
|
01-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_get_absolute_offset(). |
b7651d283ca261015ef3c445f1f27f340f0864e2 |
|
01-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
i_stream_next_line(): Fix for the previous optimization. |
7b42d6cbee8186195d8c5e66078043a0fa1f25c1 |
|
01-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
istream_next_line() optimization.
Based on patch by Len7hir |
0a49b316fc729e5d57268ffa63c7122ac73f994c |
|
12-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_get_max_buffer_size(). |
8cb72c59d5ea4e9e5f638d7ec840bb853f5a188e |
|
06-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
i/ostreams can now have a name (e.g. file path).
--HG--
branch : HEAD |
4334b9b032298defd4d3906f5357698ff016ead0 |
|
28-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
istreams: Reading sometimes returned wrong data, if parent istream had been modified.
We'll now track changes to parent istream using access counters. If parent's
access counter isn't the same as child's, the parent stream is seeked to
expected position.
--HG--
branch : HEAD |
0e8fd7a2a52e3682ddfe1b6f52e1bd379fae4c36 |
|
25-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
Removed istream test code that hasn't been tried for years.
--HG--
branch : HEAD |
7d5d50dd9a8c2539d7025a69e39d34fca56daeaf |
|
12-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
i_stream_grow_buffer(): Never shrink the buffer.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
7662010b03ffe5f2a6ecf4b4eb220d1c65efea76 |
|
13-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_set_init_buffer_size().
--HG--
branch : HEAD |
4aa7fe81503a20bc972ae625da4dd9e6996fbdbf |
|
24-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
istream: Changed default destroy() implementation not to do parent stream seeking.
The stream's v_offset may be completely different from what parent uses.
--HG--
branch : HEAD |
12a3540693ab69ec622e04d1b3b66962b8b2a3d9 |
|
24-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
istreams: Added a default seek() implementation for non-seekable streams.
--HG--
branch : HEAD |
01e606cda5192c4254c090624a0b2ca92da6da8e |
|
24-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Moved some common istream functionality to default istream implementation.
--HG--
branch : HEAD |
61e6367a259e2473f33df42fda8ceeb3b8b48416 |
|
01-May-2009 |
Timo Sirainen <tss@iki.fi> |
istreams: Fixed some parent stream seeking issues.
--HG--
branch : HEAD |
0892446b45c195461bb7be6599f02d97e1e2c9b2 |
|
01-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
istream: Added one more assert to make sure return value is correct.
--HG--
branch : HEAD |
a3c197999dfe2b0c8ea38cb77cfa5e95026005c0 |
|
20-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_is_eof().
--HG--
branch : HEAD |
4b9f99761df5014c659cd87fddaf6854af428cfc |
|
25-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_get_size(). Use it instead of i_stream_stat() where possible.
--HG--
branch : HEAD |
e4c81823af1fc43ca3f2ce9eb4af7fc8f57b13a5 |
|
04-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
i_stream_read(): Added a few more asserts.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
51e1a1c280ccb461a15827f7987d09cb9708b6e3 |
|
19-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_set_return_partial_line().
--HG--
branch : HEAD |
0a0cd45a633112a2ae6aad801c1e6afe53ab95de |
|
15-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Added asserts.
--HG--
branch : HEAD |
6a1fe851f6a8f2ded043a217d927f0b0408bde0b |
|
22-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
istream: Fix to previous error handling changes.
--HG--
branch : HEAD |
74066569545099304b20e790df7c261883d1746b |
|
20-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
i_stream_close(): EBADFD doesn't exist everywhere, use ENOENT instead.
--HG--
branch : HEAD |
c09f9f95db314e7482c95e502e1c56ed6c555797 |
|
13-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
Input streams: Improved error handling and added more asserts.
--HG--
branch : HEAD |
90b8f131849540fa374aede95edd86d47d35c09d |
|
12-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
i_stream_read_data(): Error handling fixes.
--HG--
branch : HEAD |
282a436a74d8835edb45cc019b1c916013013fd3 |
|
20-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_add_data().
--HG--
branch : HEAD |
68a4946b12583b88fa802e52ebee45cd96056772 |
|
20-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Added more consts, ATTR_CONSTs and ATTR_PUREs.
--HG--
branch : HEAD |
7db932bd4934cd967eeae643300aef5b91caeaea |
|
05-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
If stream is closed without stream_errno set, change it to ECONNRESET so if
there are any future reads they'll return it.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
e3fc1874694a8ddba9552ec23f9952f74f33d1d5 |
|
22-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
i_stream_seek(): If parent stream is set, use skip optimization only if all
the parent streams are at their expected offsets.
--HG--
branch : HEAD |
9511a40d933181045343110c8101b75887062aae |
|
22-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
i_stream_create() now takes parent stream as parameter and internally sets
abs_start_offset correctly. Added parent_start_offset which is used by
filters instead of their own internal start_offset.
--HG--
branch : HEAD |
5ac0b0bf32898c63da086ae169674ecac151a31e |
|
22-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_set_destroy_callback().
--HG--
branch : HEAD |
c9bf63e9094761767a63ac6b189bcf60bcffdc44 |
|
17-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Use likely() and unlikely() macros to make commonly checked error handling
paths unlikely.
--HG--
branch : HEAD |
1036ad17ac837a451f6b045cac504d3efa2edb8e |
|
07-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
i_stream_read_next_line(): Try to read the next line until we get it or
i_stream_read() fails.
--HG--
branch : HEAD |
14175321ddb88619015866978c05a27786ca4814 |
|
20-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_get_buffer_space() to remove code duplication.
--HG--
branch : HEAD |
89a126810703c666309310d0f3189e9834d70b5b |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced my Copyright notices. The year range always ends with 2007 now.
My name was replaced with "Dovecot authors". In many cases I didn't really
even own the copyright, so this is more correct.
--HG--
branch : HEAD |
a94936bafd127680184da114c6a177b37ff656e5 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Removed _ prefixes from function names.
--HG--
branch : HEAD |
252db51b6c0a605163326b3ea5d09e9936ca3b29 |
|
15-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed struct _[io]stream to struct [io]stream_private. Also removed _
prefix from _[io]stream_*() functions.
--HG--
branch : HEAD |
43d32cbe60fdaef2699d99f1ca259053e9350411 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
--HG--
branch : HEAD |
2526d52441ef368215ab6bf04fd0356d3b09d235 |
|
02-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed i_stream_create_file() to i_stream_create_fd().
--HG--
branch : HEAD |
fe363b433b8038a69b55169da9dca27892ad7d18 |
|
24-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Removed memory pool parameter from iostreams. Default pool was almost always
used, and the stream usually required destroying anyway so it didn't even
make freeing memory easier.
--HG--
branch : HEAD |
833ce47e1d1869537c3b9cdedda5ab18103020a9 |
|
10-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Removed some asserts that check if parameter is NULL. We can't check for all
errors anyway, so a segfault is a good enough "assert".
--HG--
branch : HEAD |
211a5af4646ed51a0d449dd5065d91ff4a26f3a4 |
|
31-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Moved I_STREAM_MIN_SIZE to header
--HG--
branch : HEAD |
904f9d5654b9c39edcdf32883e5e88771faf4d69 |
|
31-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Moved i_stream_compress() to generic code
--HG--
branch : HEAD |
7ef5ca6fb59a318c821a852ae48a2edbb671d7dd |
|
31-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
If istream implementation doesn't set set_max_buffer_size() or stat(),
implement them ourself. Moved some generic code to istream.
--HG--
branch : HEAD |
c06f4017027263cf3a08becc551f5126409e2a83 |
|
05-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
Added istream->blocking setting. It's now used to assert-crash early if a
blocking stream unexpectedly returns "need more data".
--HG--
branch : HEAD |
8d80659e504ffb34bb0c6a633184fece35751b18 |
|
28-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Array API redesigned to work using unions. It now provides type safety
without having to enable DEBUG, as long as the compiler supports typeof().
Its API changed a bit. It now allows directly accessing the array contents,
although that's not necessarily recommended. Changed existing array usage to
be type safe in a bit more places. Removed array_t completely. Also did
s/modifyable/modifiable/.
--HG--
branch : HEAD |
cd56a23e21f1df3f79648cf07e2f4385e2fadebb |
|
25-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_destroy() and o_stream_destroy() and used them instead of
*_stream_unref() where possible. Fixes at least one problem with io_remove()
being called after socket was closed, which caused problems with epoll.
--HG--
branch : HEAD |
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5d |
|
14-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
deinit, unref, destroy, close, free, etc. functions now take a pointer to
their data pointer, and set it to NULL. This makes double-frees less likely
to cause security holes.
--HG--
branch : HEAD |
6ef7e31619edfaa17ed044b45861d106a86191ef |
|
13-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added "bool" type and changed all ints that were used as booleans to bool.
--HG--
branch : HEAD |
7d207b1e77a7b5e3fda640e353acfc86d261fedf |
|
08-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Added exact parameter to i_stream_stat()
--HG--
branch : HEAD |
548e394330621952db0f03dd667b70184c4a37b6 |
|
30-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
i_stream_stat() should return NULL for closed istreams
--HG--
branch : HEAD |
602a0434db30d8e3292d1c161a803d96a879a74f |
|
30-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_seek_mark() and used it
--HG--
branch : HEAD |
07e4875d250e7a7157cd99132aafc773cf3cdf83 |
|
29-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Replaced i_stream_get_size() with i_stream_stat(). Added i_stream_sync().
--HG--
branch : HEAD |
e0c3d5460d1cc0c440cb7723c8c2eef8d0afe9b9 |
|
29-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
i_stream_next_line() works now even if the stream buffer can't be directly
modified.
--HG--
branch : HEAD |
7e1f68ad71d3485f1882142837b01f7a98ca8467 |
|
20-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_have_bytes_left().
--HG--
branch : HEAD |
65cb456a072219fa35b55695d476b0bf51e2d735 |
|
15-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
i_stream_read_data(): return 0 if i_stream_read() returned 0.
--HG--
branch : HEAD |
0b47e9f5e0181053b4d9ca7b426b0e5c185e820e |
|
07-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
i_stream_read_data(): return -1 if we didn't read more data, even if buffer
has some.
--HG--
branch : HEAD |
d902e9ede526b49213c351aad3e5b3c8ad0bb68a |
|
22-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
i_stream_read_data(): don't return -1 unless we're at EOF.
--HG--
branch : HEAD |
abe8754852e70763e92f74caabbcc13d0917714c |
|
22-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
i_stream_read_data(): don't loop if read() returns 0.
--HG--
branch : HEAD |
9e095dd6a77097356aca8216356d4d71ef1bea45 |
|
22-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Removed istream.disconnected, it's too much of a special case and the only
place where it's needed will be removed soon. Added istream.eof back, it's
more useful.
--HG--
branch : HEAD |
2767104d81e97a109f0aa9758792bfa1da325a97 |
|
15-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
We never do blocking reads/writes to network anymore. Changed imap and pop3
processes to use a single I/O loop.
Not much tested yet, and currently LIST/LSUB may eat too much memory and
APPEND eats all CPU.
--HG--
branch : HEAD |
e743c8779135b67056f8211cad867f79d3d4065e |
|
02-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
i_stream_read_data() could have returned invalid data at EOF (notable with
mboxes since end of mail = "EOF").
--HG--
branch : HEAD |
35df1dd606c5ef21068ab4fe4be305859d4fad4b |
|
20-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
seek optimization
--HG--
branch : HEAD |
37ab3cde96bfa4bc5304c0c348fc420aec79572d |
|
19-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
i_stream_read_data(): don't call read() unless we have to
--HG--
branch : HEAD |
8bdf70ab07588d57373f5f19abb8577985ff358a |
|
18-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Renamed istream->eof to istream->disconnected which is what it currently
does.
--HG--
branch : HEAD |
601f5f14c6cde28f0e0c6ca7c5d735315d3d48df |
|
10-Nov-2003 |
Timo Sirainen <tss@iki.fi> |
fixes
--HG--
branch : HEAD |
dd62b77c932d1b518f2a3e4bf80e36542becc256 |
|
09-Nov-2003 |
Timo Sirainen <tss@iki.fi> |
istream rewrite. instead of directly setting any limits to stream, you now
have to use i_stream_create_limit() to existing stream. this should make the
istreams much easier to create and understand how they work.
--HG--
branch : HEAD |
6449bd276af37b3e0b81a9c47ecd01f39a2cba53 |
|
05-Nov-2003 |
Timo Sirainen <tss@iki.fi> |
Added istream->eof. istream->v_size is now set to 0 with files.
--HG--
branch : HEAD |
20344c0e814139e3c365fbb9287478f91512089e |
|
29-Oct-2003 |
Timo Sirainen <tss@iki.fi> |
cleanup
--HG--
branch : HEAD |
0611067f385a37773800225256dcd5cf6aa34212 |
|
29-Oct-2003 |
Timo Sirainen <tss@iki.fi> |
reset stream_errno
--HG--
branch : HEAD |
5e0ce63bb65db34d7f48b34bbb5545fa791781c4 |
|
26-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
Removed most of the license comments from src/lib/*.c. It's just fine to
keep them in a single COPYING.MIT file. Changed a few other comments as well.
--HG--
branch : HEAD |
71a7510eec0cf91ad2125f7372a00419aadfbeb1 |
|
27-Apr-2003 |
Timo Sirainen <tss@iki.fi> |
i_stream_seek() broke stream if read limit was set.
--HG--
branch : HEAD |
f4bbeadda12fbd7c219063db68f3e78646d83c2c |
|
20-Mar-2003 |
Timo Sirainen <tss@iki.fi> |
Fixes for resetting stream limits. Should fix some APPEND problems.
--HG--
branch : HEAD |
89e195dfb5c4b0efd9b9f459771a4467674e5b1f |
|
10-Mar-2003 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_read_next_line()
--HG--
branch : HEAD |
daf029d2a627daa39d05507140f385162828172e |
|
23-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
More type safety to i/o streams
--HG--
branch : HEAD |
f923659c0e5298263d80622c99f4dc4132b4675b |
|
11-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Naming change for function typedefs.
--HG--
branch : HEAD |
3e25b17126e9536736d5da03697613e4c3af5f76 |
|
07-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Removed cr_lookup_pos optimization with i_stream_next_line(). It breaks if
the stream is used with anything else and it's probably not worth fixing.
--HG--
branch : HEAD |
c0435c854a0e7246373b9752d163095cc4fbe985 |
|
05-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Naming style changes, finally got tired of most of the typedefs. Also the
previous enum -> macro change reverted so that we don't use the highest bit
anymore, that's incompatible with old indexes so they will be rebuilt.
--HG--
branch : HEAD |
5254d77805cd35b9356d072ba325c356c43b0d51 |
|
18-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Marked all non-trivial buffer modifications with @UNSAFE tag. Several
cleanups and a couple of minor bugfixes.
--HG--
branch : HEAD |
ecc81625167ed96c04c02aa190a1ea5baa65b474 |
|
06-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Renamed IBuffer and OBuffer to IStream and OStream which describes their
functionality better. I tried to keep the variable names and comments also
sensible.
--HG--
branch : HEAD |