]>
mj.ucw.cz Git - libucw.git/log
Martin Mares [Wed, 14 Sep 2005 09:19:17 +0000 (09:19 +0000)]
Another thing about the C standard I didn't know: passing a va_list to
a library function (e.g., snprintf()) can destroy it. Need to call va_copy() here.
Martin Mares [Tue, 13 Sep 2005 16:29:44 +0000 (16:29 +0000)]
Ulimit.xs now compiles in Perl 5.8.x, while still working in 5.6.x, which
I hope is all what we need.
Robert Spalek [Sun, 11 Sep 2005 15:23:45 +0000 (15:23 +0000)]
add a posibility to hash raw memory blocks
Martin Mares [Tue, 6 Sep 2005 20:28:46 +0000 (20:28 +0000)]
Work around inliner bugs in gcc-3.4.
Martin Mares [Sat, 3 Sep 2005 23:15:55 +0000 (23:15 +0000)]
Prefetches in search/refs.c make much better sense now, so we can enable
them even on P4, gaining about 20ms per query.
Martin Mares [Wed, 31 Aug 2005 16:28:15 +0000 (16:28 +0000)]
ARCH and CPU_ARCH have been split. Now, you can build a 32-bit version
of Sherlock on an amd64 system by calling
./configure debug CC="gcc-3.4 -m32" LD="gcc-3.4 -m32" ARCH=i386
or a 64-bit version by not overriding anything. On 32-bit systems,
everything should act the same as before.
Martin Mares [Tue, 30 Aug 2005 21:36:46 +0000 (21:36 +0000)]
va_lists need not be assignable. Use va_copy() instead.
Martin Mares [Tue, 30 Aug 2005 21:35:29 +0000 (21:35 +0000)]
Make autoconf recognize the amd64 architecture.
Martin Mares [Mon, 29 Aug 2005 16:43:51 +0000 (16:43 +0000)]
Even better GBUF_TRACE -- the caller supplies his own logging function.
Also documented the new switch.
Martin Mares [Mon, 29 Aug 2005 16:21:19 +0000 (16:21 +0000)]
Added optional debug messages on buffer growing.
Martin Mares [Mon, 29 Aug 2005 16:20:49 +0000 (16:20 +0000)]
Added STRINGIFY_EXPANDED.
Martin Mares [Sun, 14 Aug 2005 14:57:31 +0000 (14:57 +0000)]
The Sherlock::Config module now supports typed configuration items.
Also, we enable option bundling now, so "-SX.Y=Z" works.
Martin Mares [Sun, 14 Aug 2005 14:39:47 +0000 (14:39 +0000)]
Allow typed configuration items. (This is the only way to get constructs
like `96d' parsed properly.)
Martin Mares [Sun, 14 Aug 2005 14:12:44 +0000 (14:12 +0000)]
Fixed parsing of bin/config output (by TomHol in rel-3-6-1).
Martin Mares [Fri, 22 Jul 2005 20:27:27 +0000 (20:27 +0000)]
Added a function which allows to read the timeval obtained during
the last init_timer() / get_timer() call.
Martin Mares [Sat, 9 Jul 2005 09:32:45 +0000 (09:32 +0000)]
When we encounter an URL with multiple @'s, the first one should be treated
as the username separator and the subsequent ones automatically escaped.
Therefore, `http://a@b@c.cz/' is normalized as `http://a@b%40c.cz/'.
It's probably an invalid URL (have to check all the possible loopholes
in the spec yet :) ), but it occurs in the wild anyway, so let's try
to treat them with grace.
Martin Mares [Mon, 4 Jul 2005 07:37:47 +0000 (07:37 +0000)]
Fixed a nasty bug in hash table allocation. HASH_AUTO_POOL must use
a pool local to the hash table, otherwise it collides with HASH_DYNAMIC.
Robert Spalek [Fri, 1 Jul 2005 10:28:08 +0000 (10:28 +0000)]
fix url_enenscape_friendly() thanks to mj
Martin Mares [Thu, 30 Jun 2005 23:17:22 +0000 (23:17 +0000)]
Added stk_hexdump(). Very handy for debugging.
Robert Spalek [Thu, 30 Jun 2005 17:28:33 +0000 (17:28 +0000)]
added url_enescape_friendly() for cards.c: it prepares a printable version
of the URL (with interpretted spaces and delimiters, hence it cannot be
parsed back), but it does not convert characters above 0x7f so that the
target string is a valid utf-8 string
Robert Spalek [Thu, 30 Jun 2005 15:33:23 +0000 (15:33 +0000)]
second part of fixing URL printing: escape back all characters above 0x7f
note that it may happen that some incorrect words get highlighted after we
cut the escaped URL into words by lexmapper, but this is much better than
producing incorrect UTF-8 stream
Martin Mares [Tue, 21 Jun 2005 20:24:54 +0000 (20:24 +0000)]
Added Vlada to the mail address decoder.
Robert Spalek [Mon, 20 Jun 2005 17:32:45 +0000 (17:32 +0000)]
non-fatal warning on an unknown commited (croniak)
Martin Mares [Fri, 17 Jun 2005 21:01:28 +0000 (21:01 +0000)]
Added more format string checks.
Martin Mares [Fri, 17 Jun 2005 14:56:08 +0000 (14:56 +0000)]
Added HASH_ZERO_FILL switch. Tired of explicit initializers.
Martin Mares [Thu, 16 Jun 2005 21:03:13 +0000 (21:03 +0000)]
Added hash functions for 64-bit integers.
hash_pointer() now uses either 32-bit or 64-bit hash depending on pointer size.
hashtable.h with an atomic key does the same.
Martin Mares [Tue, 14 Jun 2005 16:07:35 +0000 (16:07 +0000)]
athlon64 is not known before gcc-3.4.
Martin Mares [Fri, 10 Jun 2005 11:16:41 +0000 (11:16 +0000)]
Fixed several format string bugs in calls of die().
Martin Mares [Fri, 10 Jun 2005 11:15:27 +0000 (11:15 +0000)]
Format string arguments for die() should be checked as we do for log().
Martin Mares [Sat, 4 Jun 2005 11:59:17 +0000 (11:59 +0000)]
Mainline is going to be v3.7.
Martin Mares [Tue, 31 May 2005 11:27:12 +0000 (11:27 +0000)]
Shifting of mapping window is unlikely().
Martin Mares [Sun, 29 May 2005 10:33:49 +0000 (10:33 +0000)]
log_switch() returns whether the logs have been really switched.
Martin Mares [Sun, 29 May 2005 09:20:45 +0000 (09:20 +0000)]
Another work-around for spurious warnings.
Martin Mares [Sun, 29 May 2005 09:20:34 +0000 (09:20 +0000)]
Added work-around for spurious warnings.
Martin Mares [Sat, 28 May 2005 20:02:35 +0000 (20:02 +0000)]
Added windows-1251 charset (almost closes Bug #1209).
Martin Mares [Sat, 28 May 2005 17:51:48 +0000 (17:51 +0000)]
Added switches for gcc-4.0. "-fstrict-aliasing" is now added only for
gcc 3.0 since 3.3 and newer turn in by default with -O2 or higher.
Added CWARNS_OFF, which turns off even the warnings which default to on.
Expect lots of warnings with gcc 4.0.0; some of them are caused by
compiler bugs (e.g., http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21800).
Martin Mares [Tue, 17 May 2005 20:58:26 +0000 (20:58 +0000)]
Merged Centrum customization splits from 3.5.1.
Tomas Holusa [Tue, 17 May 2005 12:30:22 +0000 (12:30 +0000)]
Fixxed test for ROLE=reap --> reap+watson
Martin Mares [Sun, 1 May 2005 19:55:01 +0000 (19:55 +0000)]
Default settings of MUX parameters.
Martin Mares [Sun, 1 May 2005 19:50:37 +0000 (19:50 +0000)]
Introduced cfg_malloc_zero().
Martin Mares [Sun, 1 May 2005 19:50:23 +0000 (19:50 +0000)]
Introduced bit_array_set_all().
Martin Mares [Sat, 23 Apr 2005 21:18:59 +0000 (21:18 +0000)]
Mainline will be v3.6.
Martin Mares [Fri, 22 Apr 2005 13:17:07 +0000 (13:17 +0000)]
Don't use O_DIRECTORY on non-Linux systems. (It's not necessary, but it
adds an extra check.)
Martin Mares [Sun, 17 Apr 2005 18:36:55 +0000 (18:36 +0000)]
Fixed a typo (thanks, Robert).
Martin Mares [Sun, 17 Apr 2005 18:13:10 +0000 (18:13 +0000)]
Fix "-CONFIG_SWITCH" parameters.
Martin Mares [Fri, 15 Apr 2005 21:51:52 +0000 (21:51 +0000)]
Fix illegal operations with va_list's.
Martin Mares [Thu, 14 Apr 2005 10:26:02 +0000 (10:26 +0000)]
Fixed a couple of mismatches in setting of CONFIG_LARGE_DB and
CONFIG_MAX_CONTEXTS.
Martin Mares [Thu, 14 Apr 2005 09:58:34 +0000 (09:58 +0000)]
Moved endianity settings etc. to the per-CPU section.
Martin Mares [Wed, 13 Apr 2005 20:47:37 +0000 (20:47 +0000)]
Fixed a typo.
Martin Mares [Tue, 12 Apr 2005 22:13:36 +0000 (22:13 +0000)]
Another Big Move -- moved most files specific for centrum.cz to centrum/cz.
Finally got rid of CONFIG_MORFEO and introduced CONFIG_CENTRUM_DEBUG instead.
Martin Mares [Tue, 12 Apr 2005 21:46:17 +0000 (21:46 +0000)]
Removed the old configuration mechanism.
Martin Mares [Tue, 12 Apr 2005 21:26:05 +0000 (21:26 +0000)]
Even better CPU checks, this time taking into account GCC version.
Martin Mares [Tue, 12 Apr 2005 21:25:49 +0000 (21:25 +0000)]
Fixed bug in parsing of options.
Martin Mares [Tue, 12 Apr 2005 20:57:49 +0000 (20:57 +0000)]
Configure: CPU type autodetection.
Martin Mares [Tue, 12 Apr 2005 19:05:14 +0000 (19:05 +0000)]
Automatic detection of host OS and also partial automatic detection of the
CPU architecture.
Martin Mares [Tue, 12 Apr 2005 18:47:44 +0000 (18:47 +0000)]
Unfortunately, CONFIG_MORFEO is here to stay.
Martin Mares [Tue, 12 Apr 2005 18:42:41 +0000 (18:42 +0000)]
Distinguish between CONFIG_DEBUG and CONFIG_DEBUG_TOOLS in config files,
but in the Makefiles yet, because I want to keep the old config system
for a short while.
Martin Mares [Tue, 12 Apr 2005 18:39:10 +0000 (18:39 +0000)]
More progress on the new configurator. All configurations have been converted.
The centrum/cz config decides on configuration according to host name.
Autoconf is able to auto-detect gcc.
Martin Mares [Tue, 12 Apr 2005 18:35:49 +0000 (18:35 +0000)]
Switched to the new config mechanism. Greatly simplified.
Martin Mares [Tue, 12 Apr 2005 14:36:54 +0000 (14:36 +0000)]
More pieces of new configure.
Martin Mares [Tue, 12 Apr 2005 13:25:34 +0000 (13:25 +0000)]
Added first pieces of the new configuration mechanism. (Not connected
to the rest of Sherlock yet, so you can still build Sherlock as usually.)
Martin Mares [Mon, 11 Apr 2005 22:02:48 +0000 (22:02 +0000)]
Rewritten Makefiles to support separated source and object trees.
The source tree is now strictly read-only, which simplified several
things, but also let me struggle for 4 hours with GNU make bugs and
misfeatures.
Martin Mares [Mon, 4 Apr 2005 18:30:13 +0000 (18:30 +0000)]
Don't use prefetch on Pentium 4, it actually gives worse results than
not prefetching at all. Need to investigate more later.
Martin Mares [Sat, 2 Apr 2005 13:24:50 +0000 (13:24 +0000)]
Added qache_probe().
Bugfix: Ignore position hints to empty slots, even if the key matches.
Martin Mares [Sat, 2 Apr 2005 10:59:21 +0000 (10:59 +0000)]
Added `u8' and `s8' to keep consistency.
Martin Mares [Fri, 1 Apr 2005 15:20:45 +0000 (15:20 +0000)]
Added file_close_all().
Martin Mares [Mon, 7 Mar 2005 17:10:49 +0000 (17:10 +0000)]
Cache module finished. Implemented internal consistency checks (which are
tried before we decide to use an existing cache file) and tested everything.
Martin Mares [Mon, 7 Mar 2005 14:01:49 +0000 (14:01 +0000)]
More work on the caching module: added some debugging messages,
moved next block pointers to a separate area.
Martin Mares [Mon, 7 Mar 2005 00:10:50 +0000 (00:10 +0000)]
Wrote the cache module, not debugged yet.
Martin Mares [Sun, 6 Mar 2005 12:26:13 +0000 (12:26 +0000)]
First steps towards a universal shared memory cache, which will be used
in the multiplexer and later probably also in the search server.
Martin Mares [Fri, 4 Mar 2005 21:46:58 +0000 (21:46 +0000)]
Warn on mistyped arguments to stk_printf().
Martin Mares [Fri, 4 Mar 2005 17:09:57 +0000 (17:09 +0000)]
Mainloop timers are now measured in milliseconds. Will be used by shep-reap one day.
Martin Mares [Thu, 3 Mar 2005 19:40:51 +0000 (19:40 +0000)]
Avoid "cast of pointer to a smaller integer type" warnings.
Martin Mares [Wed, 2 Mar 2005 22:24:35 +0000 (22:24 +0000)]
If previous check-customs run failed, run/cf could be empty.
Martin Mares [Wed, 2 Mar 2005 22:13:08 +0000 (22:13 +0000)]
Fixed building of shared library config,
Martin Mares [Wed, 2 Mar 2005 21:48:47 +0000 (21:48 +0000)]
Fix incorrect pointer casts.
Martin Mares [Wed, 2 Mar 2005 21:48:22 +0000 (21:48 +0000)]
Build full debugging config with shared libraries as well.
Robert Spalek [Mon, 21 Feb 2005 12:00:21 +0000 (12:00 +0000)]
typo fixed
Robert Spalek [Sun, 20 Feb 2005 15:57:33 +0000 (15:57 +0000)]
shup up, gcc
Robert Spalek [Sun, 20 Feb 2005 13:32:06 +0000 (13:32 +0000)]
fixed library dependencies
Robert Spalek [Sat, 19 Feb 2005 22:23:38 +0000 (22:23 +0000)]
comparison of signed and unsigned encountered without CONFIG_LFS
Martin Mares [Sat, 19 Feb 2005 17:11:25 +0000 (17:11 +0000)]
Added clist walking macros with embedded C99 declaration of the iterator
variable.
Robert Spalek [Fri, 18 Feb 2005 16:29:12 +0000 (16:29 +0000)]
added yet another utility for processing cvs logs
Robert Spalek [Fri, 18 Feb 2005 16:11:28 +0000 (16:11 +0000)]
added th2
Martin Mares [Wed, 16 Feb 2005 17:08:39 +0000 (17:08 +0000)]
If requested by config.mk, install all libraries and their include
files for use by external programs.
I don't expect this mechanism to be used in Sherlock itself, but I need
to use it in a couple of other projects (including Lestrade) and I want
to keep the things consistent.
Martin Mares [Tue, 15 Feb 2005 17:37:28 +0000 (17:37 +0000)]
Clarified a comment.
Martin Mares [Sun, 13 Feb 2005 10:58:52 +0000 (10:58 +0000)]
A better comment.
Martin Mares [Thu, 10 Feb 2005 22:31:31 +0000 (22:31 +0000)]
Oops, a nasty bug has crept in.
Martin Mares [Thu, 10 Feb 2005 22:30:59 +0000 (22:30 +0000)]
Added overflow-safe string functions allocating everything on the stack.
Actually, they are all macros, but passing parameters with side-effects
should be safe, because they are always evaluated exactly once.
Martin Mares [Thu, 10 Feb 2005 22:00:31 +0000 (22:00 +0000)]
Added tests for the mempool string functions.
Martin Mares [Thu, 10 Feb 2005 21:57:17 +0000 (21:57 +0000)]
Added printf-like function with output to mempool.
Martin Mares [Mon, 31 Jan 2005 15:12:58 +0000 (15:12 +0000)]
Added fb_wrap_charconv_in().
Martin Mares [Mon, 31 Jan 2005 15:12:39 +0000 (15:12 +0000)]
A minor optimization.
Martin Mares [Fri, 28 Jan 2005 21:19:18 +0000 (21:19 +0000)]
Don't forget to undefine BUF_T.
Tomas Valla [Tue, 18 Jan 2005 15:45:31 +0000 (15:45 +0000)]
Wrong alignment fixed.
Tomas Valla [Tue, 18 Jan 2005 11:37:24 +0000 (11:37 +0000)]
We should check the special case.
Tomas Valla [Mon, 17 Jan 2005 19:41:30 +0000 (19:41 +0000)]
useful macro to align pointer p to size s
Robert Spalek [Mon, 10 Jan 2005 16:32:37 +0000 (16:32 +0000)]
update the copyright; it's been quite a long time until I have found a use
for this module :))
Robert Spalek [Mon, 10 Jan 2005 16:03:15 +0000 (16:03 +0000)]
added TREE_WANT_BOUNDARY for finding the first/last node
Martin Mares [Sun, 9 Jan 2005 16:36:12 +0000 (16:36 +0000)]
Added another debugging customization for testing of custom stats and matchers.