d534a96e0238c8cfb9d857d6a91ea5c48a0b50d9 |
|
30-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib/compat.h: Undefine WORDS_BIGENDIAN when it's defined as 0 |
4b8bea203350619a79af00892201192d4f2d863f |
|
07-Sep-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Only deprecate rand/rand_r on recent enough compilers |
b082469affbc99c79c1f4b07fda04d8dfc9cbf4a |
|
07-Sep-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Warn if rand is used |
6dd7a0a5e52979f226b414d61d9a82e341710525 |
|
17-May-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib: include inttypes.h to get PRIu64 & friends
Including it in lib.h allows all of the Dovecot code (as well as any
external plugins) to just use these macros without worrying about what
system headers to include. |
76858e9df2a1b94ab42a6dcd5b2cb7932f083399 |
|
07-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Redefine NULL only if HAVE_TYPE_CHECKS is set |
d16199fcc9bbb61b8e47e69c3893161b363d9a17 |
|
07-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add a common HAVE_TYPE_CHECKS
I'm not sure if it should be checking gcc >= 3.0 or 3.3, but they're
all old so doesn't really matter.
The __cplusplus check was added to both, since it wouldn't have done
anything anyway as COMPILE_ERROR_IF_TRUE() is 0 for __cplusplus. |
dd6043c05e32a8e8db1233ed711a2c74d1477a89 |
|
06-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Make sure NULL is defined to be ((void *)0)
This avoids us having to do explicit (void *)NULL casts in e.g.
io_add(..., NULL) context parameter. |
23bdbb7b1831785c6ba6df190f6369da882d2b9d |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Require comparisons to be strict boolean expressions
* No implicit integer -> boolean or pointer -> boolean conversions
* !expr can be used only if expr is boolean type
These were checked with a patched clang. It found various actual bugs,
which were fixed by the previous commits. |
e48f289d2e5b2546a2c5dcc90f7ab624cc58cca2 |
|
29-Aug-2015 |
Stephan Bosch <stephan@rename-it.nl> |
Removed all invocations of strtoll() and friends. |
aaaa6e07cf961038cf030d623540a8296c0ffe24 |
|
28-Aug-2014 |
Timo Sirainen <tss@iki.fi> |
Added UNLINK_EISDIR() helper macro. |
2ed2459dbd183bb371da4a0aecb2d2b74ae7c815 |
|
15-Aug-2014 |
Timo Sirainen <tss@iki.fi> |
Handle "out of disk space" and "out of user quota" as separate cases.
"Out of disk space" is a temporary error that should be logged as error and
the failure should be sent to user as "Internal server error".
Obsolete the use of MAIL_ERROR_NOSPACE and MAIL_ERRSTR_NO_SPACE. Use the
clearer MAIL_ERROR_NOQUOTA and MAIL_ERRSTR_NO_QUOTA instead. |
72e0939f9eb11f3bcf62592848dd0a47c41246c7 |
|
22-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
If EOVERFLOW errno isn't defined by system, fallback to ERANGE instead of EINVAL.
ERANGE is used by other functions as well, such as getpwnam_r(). |
a092650c6e515f7a2d16bbced11ac004a23e4c18 |
|
28-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Compiling fix for HURD |
bf5f442cdac24f666e0b4f959f3c13c27c7b1e9e |
|
13-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Don't log errors if trying to open a mailbox with too long name.
Handle ENAMETOOLONG errors the same as ENOENT. |
6a9ecc62c9fedd89c8ffaa16edb6aae489895e41 |
|
11-May-2011 |
Timo Sirainen <tss@iki.fi> |
Compile fix for HP-UX |
85da8c055280cd45553b6b335e9fb226d6e2801e |
|
08-Apr-2011 |
Timo Sirainen <tss@iki.fi> |
Linux NFS: fstat() may return ENOENT instead of ESTALE in some kernel versions. |
3ed2d0f6b5e67e2663d44489d9da3176823789a8 |
|
14-May-2010 |
Timo Sirainen <tss@iki.fi> |
Use IO_BLOCK_SIZE macro to specify how large read/write syscalls to use.
--HG--
branch : HEAD |
bff6afb9717f2ec7dafa20c4e2b7f00236ec7bfe |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Removed my_strptime().
It was just causing problems and wasn't used anywhere after all.
--HG--
branch : HEAD |
58d23cf5975a4fe43e6c0881977f9aaf1c03436f |
|
20-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
OS X: Fixed compiler warning about missing fdatasync() prototypes.
--HG--
branch : HEAD |
405f9be6a8fbd703cf2e4bf4e7f036aa1d9b42d6 |
|
19-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
Added a wrapper for strptime() to work around issues with glibc.
--HG--
branch : HEAD |
e7d5bfcac5a3edd584258a8dc13b04907156bfb0 |
|
09-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
compat: Renamed all my_*() fallback functions to i_my_*().
This fixes at least my_pread() conflict with libmysqlclient.
--HG--
branch : HEAD |
58f1e346754db8234f8c9a53fe36574c6bc36cc6 |
|
07-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Added clock_gettime() compatibility function for systems without it.
--HG--
branch : HEAD |
87391ba3b72b9b78dd67f09b329e9463556c03ed |
|
12-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Support systems with non-C99 vsnprintf().
--HG--
branch : HEAD |
2ba7203a434454a0d447f09b3695c32daaa87942 |
|
12-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Added more fallbacks if strtoll() or strtoull() isn't implemented
(e.g. HP-UX).
--HG--
branch : HEAD |
c2b1c0366efa08b2ceca7ab67ca5cae761173230 |
|
11-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
HP-UX: pread() and pwrite() are broken, use our own implementation.
--HG--
branch : HEAD |
d3c0027c0579e4816a5eb5cde6f6f707e65fe831 |
|
29-May-2008 |
Timo Sirainen <tss@iki.fi> |
Previous fix broke CMP_ST_CTIME() nsec checks.
--HG--
branch : HEAD |
fd186c09de99f4ebc8465f2b8046a2360ec4c927 |
|
30-May-2008 |
Timo Sirainen <tss@iki.fi> |
Fixed compiling in BSD systems.
--HG--
branch : HEAD |
b3bb775c6b735a7f6021dea799601fbfdb656e58 |
|
17-May-2008 |
Timo Sirainen <tss@iki.fi> |
Replaced HAVE_ST_NSEC macro checks with more generic ST_?TIME_NSEC() macros
for getting the nanosecond and ST_NTIMES_EQUAL() macro for comparing them.
Added support for BSD st_?timespec fields.
--HG--
branch : HEAD |
c25356d5978632df6203437e1953bcb29e0c736f |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Changed .h ifdef/defines to use <NAME>_H format.
--HG--
branch : HEAD |
afb71cb81cb806d8b32238f393c5d2e8e3f4511f |
|
20-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Added CMP_ST_MTIME() and CMP_ST_CTIME() macros that compare also nanoseconds
if they're available.
--HG--
branch : HEAD |
2c0a2b1902232ba12c20a4092a0943b0db9940e6 |
|
16-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Added EDESTDIREXISTS() macro, and changed rename() calls to use it.
--HG--
branch : HEAD |
5d8bb3817bfa1bdf06a06f1e8e7d4f0020f43510 |
|
17-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Handle EMLINK and EPERM errors the same way as EXDEV when handling hardlink
failures. Added ECANTLINK() macro for this.
--HG--
branch : HEAD |
994930aea67370b86784593c3c13211fe57d9045 |
|
22-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Include sys/mkdev.h with UnixWare for major() and minor()
--HG--
branch : HEAD |
3dd7db82e09ce5f115dc84d3ca1222595e0ff1c2 |
|
22-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
If uoff_t type already exists, use it (UnixWare has it).
--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 |
495f7c9ec5fbc84d6f4aed28eb74bafc270c81a7 |
|
19-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
#ifdef TRU64 -> __osf__
--HG--
branch : HEAD |
86b95ad66e12594801b84482106a60521eb9acef |
|
19-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Include inttypes.h with Tru64 to get uint32_t etc. types defined.
--HG--
branch : HEAD |
62355fdb8b7c5fb4ed1b28433bc7df718407e2c6 |
|
27-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
Use IOV_MAX instead of UIO_MAXIOV when available.
--HG--
branch : HEAD |
bd1c4dd022ca4391e4c479bf0254334a9288ac5c |
|
27-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Added setegid() emulation for HP-UX.
--HG--
branch : HEAD |
2315fdf8924d46db7806dbdef173dca2501037a4 |
|
20-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
If strtoull() isn't supported, fallback to strtouq(). If that's not found
either, use our own implementation.
--HG--
branch : HEAD |
1f65bd1e85df498aaaee8993f38c4ae1d8127b39 |
|
08-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Check for libgen.h and if it's not found, use my_basename(). Also
my_seteuid() didn't actually replace seteuid() before if it didn't exist.
--HG--
branch : HEAD |
9f9dc85ef78dd2f431da00f26d292a0ed4f07350 |
|
08-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Add seteuid() wrapper for HP-UX
--HG--
branch : HEAD |
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834 |
|
27-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
importing new index code. mbox still broken.
--HG--
branch : HEAD |
1510dbbe1a319967e72e5b6d04083cfb72b1d0f0 |
|
29-Oct-2003 |
Timo Sirainen <tss@iki.fi> |
more kludgeing to get pread/pwrite working
--HG--
branch : HEAD |
6a280c911b436892b2e9587915ced0be3b47669e |
|
29-Oct-2003 |
Timo Sirainen <tss@iki.fi> |
pread/pwrite fixes
--HG--
branch : HEAD |
e4b1d49ddee0ae6271ed7bb2b2b3e94f0b2acd7a |
|
03-Oct-2003 |
Timo Sirainen <tss@iki.fi> |
If we don't have function foo, do it always as #define foo my_foo and create
your own my_foo. Did this to pread/pwrite/madvise.
--HG--
branch : HEAD |
2b101f5d02f61d39793141b9e4449cc36bb0378a |
|
06-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
Added pwrite() compatibility
--HG--
branch : HEAD |
53b32ab10cd22d7e762db4d813298ff72bff4b3d |
|
18-May-2003 |
Timo Sirainen <tss@iki.fi> |
More robust error handling for mbox.
--HG--
branch : HEAD |
742111fa99a5b852c9645080573d5853be3907a7 |
|
30-Mar-2003 |
Timo Sirainen <tss@iki.fi> |
Handle EDQUOT errno as "not enough disk space" like ENOSPC.
--HG--
branch : HEAD |
deea6477ebe0c4610abdc92e8ce4fadceb8e978b |
|
06-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Use separate check for uint_fast32_t.
--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 |
cfa6145b5df51927a401981b1b32d718ffe5431e |
|
26-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
writev()'s 3rd parameter is declared as "int" pretty much everywhere, so we
should do that too.
--HG--
branch : HEAD |
0066c4346f1ebf4dae0862538b596dca6fb8b1ba |
|
26-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
Reverted back the isdigit()/etc. They're defined to get int argument, so we
shouldn't given them unsigned.
--HG--
branch : HEAD |
6872f01ccfece16759d943fdf7f05fc948964ca4 |
|
26-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
Cast chars to (unsigned int) instead of (int) in i_isdigit() etc. macros.
Hopefully fixes some warnings with HP/UX.
--HG--
branch : HEAD |
ded9d1b2383ec1973c7b323df0d3f06f7b649a13 |
|
26-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
And the missing sys/sysmacros.h include..
--HG--
branch : HEAD |
8197f9a1698ce66b03731fc29140a3e01e1092a3 |
|
26-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
Added CMP_DEV_T macro which uses major()/minor() if possible but fallbacks
to direct comparing if it's not a structure.
--HG--
branch : HEAD |
5acba90e31aed941953bef250ce81574dcbfed7a |
|
26-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
Renamed largest_t to uintmax_t which already exists in C99.
--HG--
branch : HEAD |
5ce6f7f9fe084cb9e133506973125f27ac600bf3 |
|
04-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
EOVERFLOW doesn't exist everywhere, fallback it to EINVAL.
--HG--
branch : HEAD |
063fba8c190528396bc7ac6f1aee3d804aed3b2d |
|
24-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
Check fdatasync() from -lrt if it's not in libc (solaris). Also fallback to
fsync() entirely if fdatasync() doesn't exist.
--HG--
branch : HEAD |
b646fdb90f75ab80ea7feca42fa2e1f8e788b004 |
|
14-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
Split IOBuffer into mmaped IBuffer, file IBuffer, memory data IBuffer and
file OBuffer.
--HG--
branch : HEAD |
4536e469adff0ae7eb039ba559bc6a3765cd62ee |
|
09-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
cast i_toupper() and i_tolower() return as char, so comparing highascii
works without casting (breaks if comparing to unsigned char though)
--HG--
branch : HEAD |
2ea177c8a53c71ac8587222c92d27c90c24a6b7a |
|
08-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
added dec2str() function and largest_t type, removed itoa() and ltoa()
macros and did some other cleanups.
--HG--
branch : HEAD |
18bce5858e33cc093d24cb36f2babf5d15e4da3f |
|
28-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
64bit off_t fixes
--HG--
branch : HEAD |
e403d34ae6904cd8d9f72345a2f2dc017d3b46aa |
|
22-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Message data is parsed in blocks (no longer entirely mmap()ed). Several
IOBuffer changes. All mixed signed/unsigned comparisions were fixed so code
can now be compiled with gcc's -W flag. mbox support is broken currently,
and there's most likely several other problems too.
--HG--
branch : HEAD |
66251e6ab31e5cc153fe5cae608e416dacafe9cd |
|
08-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Initial revision
--HG--
branch : HEAD |