]> mj.ucw.cz Git - libucw.git/log
libucw.git
18 years agoFirst try of libjpeg... much faster than graphicsmagick
Pavel Charvat [Wed, 12 Apr 2006 20:34:57 +0000 (22:34 +0200)]
First try of libjpeg... much faster than graphicsmagick

18 years agobugfix
Pavel Charvat [Wed, 12 Apr 2006 16:25:35 +0000 (18:25 +0200)]
bugfix

18 years agoSimple image search... under construction
Pavel Charvat [Sun, 9 Apr 2006 21:03:39 +0000 (23:03 +0200)]
Simple image search... under construction

18 years agoExperimental version of search tree construction...
Pavel Charvat [Sun, 9 Apr 2006 15:33:51 +0000 (17:33 +0200)]
Experimental version of search tree construction...

18 years agoInitial testing version of image signatures... very simple yet :-)
Pavel Charvat [Thu, 6 Apr 2006 09:42:07 +0000 (11:42 +0200)]
Initial testing version of image signatures... very simple yet :-)

18 years agoGIT uses mutt's default value of allow_8bit when sending a mail
Pavel Charvat [Sat, 25 Mar 2006 22:02:50 +0000 (23:02 +0100)]
GIT uses mutt's default value of allow_8bit when sending a mail
and prefers ascii/iso-8859-2 charsets if possible.

18 years agoGIT commit mails are now in UTF-8
Pavel Charvat [Fri, 24 Mar 2006 15:55:27 +0000 (16:55 +0100)]
GIT commit mails are now in UTF-8

18 years agoMerge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.8
Martin Mares [Fri, 10 Mar 2006 16:55:20 +0000 (17:55 +0100)]
Merge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.8

18 years agoMux no longer crashes, removing the trap.
Martin Mares [Fri, 10 Mar 2006 11:24:29 +0000 (12:24 +0100)]
Mux no longer crashes, removing the trap.

18 years ago{stk,mp}_conv --> {stk,mp}_strconv
Pavel Charvat [Wed, 8 Mar 2006 21:25:04 +0000 (22:25 +0100)]
{stk,mp}_conv --> {stk,mp}_strconv

18 years agoSlightly faster mp-charconv... minor change
Pavel Charvat [Wed, 8 Mar 2006 20:46:05 +0000 (21:46 +0100)]
Slightly faster mp-charconv... minor change

18 years agoWell, a simple variant of stk_conv.
Pavel Charvat [Mon, 6 Mar 2006 12:06:20 +0000 (13:06 +0100)]
Well, a simple variant of stk_conv.
I leave the complex one for experiments... ;)

18 years agoCharset conversion with allocation on the stack do not
Pavel Charvat [Sun, 5 Mar 2006 22:26:54 +0000 (23:26 +0100)]
Charset conversion with allocation on the stack do not
depend on string_table's lengths now.

18 years agoFix: .h indentation and ifdef names; some comments; stk-conv enlarges
Pavel Charvat [Sat, 4 Mar 2006 19:45:08 +0000 (20:45 +0100)]
Fix: .h indentation and ifdef names; some comments; stk-conv enlarges
string 3 times; warning in string_table generator.

18 years agoConversion between charsets with allocation on the stack
Pavel Charvat [Sat, 4 Mar 2006 18:10:05 +0000 (19:10 +0100)]
Conversion between charsets with allocation on the stack
or a given memory pool. I will propably add some optimalizations...

18 years agogcc-4.1 should so far use the the same switches as 4.0.
Martin Mares [Thu, 2 Mar 2006 17:11:52 +0000 (18:11 +0100)]
gcc-4.1 should so far use the the same switches as 4.0.

18 years agoMerged with v3.8
Martin Mares [Thu, 2 Mar 2006 12:20:25 +0000 (13:20 +0100)]
Merged with v3.8

18 years agoget rid of return's after ASSERT's. that only caused warnings with (buggy)
Robert Spalek [Thu, 2 Mar 2006 04:14:10 +0000 (14:14 +1000)]
get rid of return's after ASSERT's.  that only caused warnings with (buggy)
gcc4

18 years agoget rid of return's after ASSERT's. that only caused warnings with (buggy)
Robert Spalek [Thu, 2 Mar 2006 04:11:44 +0000 (14:11 +1000)]
get rid of return's after ASSERT's.  that only caused warnings with (buggy)
gcc4

18 years agoMerged with v3.8
Martin Mares [Tue, 28 Feb 2006 21:49:15 +0000 (22:49 +0100)]
Merged with v3.8

18 years agoReverted most of the Robert's confused commit (the rest should be
Martin Mares [Mon, 27 Feb 2006 15:27:57 +0000 (16:27 +0100)]
Reverted most of the Robert's confused commit (the rest should be
harmless).

18 years agoMerge with 3.8 (my small changes due to trying to release the free version)
Robert Spalek [Mon, 27 Feb 2006 04:57:56 +0000 (14:57 +1000)]
Merge with 3.8 (my small changes due to trying to release the free version)

I wanted to push my local 3.8 repository to the remote v3.8 one, but it
failed.  trying to push it at least to the mainline...

18 years agoavoid compiler warnings with debugging turned off
Robert Spalek [Mon, 27 Feb 2006 04:50:05 +0000 (14:50 +1000)]
avoid compiler warnings with debugging turned off

18 years agoCONFIG_INCREMENTAL doesn't belong to the free version
Robert Spalek [Mon, 27 Feb 2006 04:41:20 +0000 (14:41 +1000)]
CONFIG_INCREMENTAL doesn't belong to the free version

18 years agoDebugging traps should dwell only in v3.8, so reverting them after
Martin Mares [Fri, 24 Feb 2006 14:18:48 +0000 (15:18 +0100)]
Debugging traps should dwell only in v3.8, so reverting them after
the automatic merge brought them into mainline.

18 years agoMerge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.8
Martin Mares [Fri, 24 Feb 2006 14:16:12 +0000 (15:16 +0100)]
Merge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.8

18 years agoOne more file to exclude.
Martin Mares [Fri, 24 Feb 2006 13:31:06 +0000 (14:31 +0100)]
One more file to exclude.

18 years ago.cvsignore is no longer needed.
Martin Mares [Fri, 24 Feb 2006 13:27:23 +0000 (14:27 +0100)]
.cvsignore is no longer needed.

18 years agoAdded the update hook script to the repository.
Martin Mares [Fri, 24 Feb 2006 13:26:31 +0000 (14:26 +0100)]
Added the update hook script to the repository.

18 years agoAdded an exclude file, symlink it to .git/info/exclude if you wish.
Martin Mares [Fri, 24 Feb 2006 13:25:21 +0000 (14:25 +0100)]
Added an exclude file, symlink it to .git/info/exclude if you wish.

18 years agoTemporarily disabled signal trapping, backtraces over signal handlers
Martin Mares [Wed, 22 Feb 2006 20:35:09 +0000 (20:35 +0000)]
Temporarily disabled signal trapping, backtraces over signal handlers
don't seem to work well in the version of gdb present in Woody.

18 years agoMerged from rel-3-8:
Martin Mares [Wed, 22 Feb 2006 20:29:21 +0000 (20:29 +0000)]
Merged from rel-3-8:

Don't reset the pid field on process_del(), it's not tested anywhere anyway.

Hmm, there was one reference to mp->pid, but the ASSERT didn't make
much sense anyway, so I am removing it.

18 years agoHmm, there was one reference to mp->pid, but the ASSERT didn't make
Martin Mares [Wed, 22 Feb 2006 20:26:34 +0000 (20:26 +0000)]
Hmm, there was one reference to mp->pid, but the ASSERT didn't make
much sense anyway, so I am removing it.

18 years agoDon't reset the pid field on process_del(), it's not tested anywhere anyway.
Martin Mares [Wed, 22 Feb 2006 20:21:40 +0000 (20:21 +0000)]
Don't reset the pid field on process_del(), it's not tested anywhere anyway.

18 years agoMainline heads for v3.9.
Martin Mares [Sun, 12 Feb 2006 20:40:59 +0000 (20:40 +0000)]
Mainline heads for v3.9.

18 years agoCentrum roles have changed.
Martin Mares [Sun, 12 Feb 2006 20:03:57 +0000 (20:03 +0000)]
Centrum roles have changed.

18 years agoCentrum roles have changed.
Martin Mares [Sun, 12 Feb 2006 20:03:42 +0000 (20:03 +0000)]
Centrum roles have changed.

18 years agoThe Polish customization no longer has a default role.
Martin Mares [Sun, 29 Jan 2006 23:33:22 +0000 (23:33 +0000)]
The Polish customization no longer has a default role.

18 years agoMade gcc-3.4 the default compiler for customization checking.
Martin Mares [Sun, 29 Jan 2006 23:06:20 +0000 (23:06 +0000)]
Made gcc-3.4 the default compiler for customization checking.

18 years agoAdded getproctitle().
Martin Mares [Sun, 29 Jan 2006 20:31:50 +0000 (20:31 +0000)]
Added getproctitle().

18 years agoReplaced the long-lived "close(0) if logging to file" hack by closing
Martin Mares [Sat, 28 Jan 2006 21:08:13 +0000 (21:08 +0000)]
Replaced the long-lived "close(0) if logging to file" hack by closing
stdin in the daemon-helper.

18 years agoAdded bit_array_assign(), replaced BIT_ARRAY_ALLOC by functions.
Martin Mares [Fri, 27 Jan 2006 18:21:30 +0000 (18:21 +0000)]
Added bit_array_assign(), replaced BIT_ARRAY_ALLOC by functions.

18 years agomain_init() really re-initializes everything. Previously, it could
Martin Mares [Fri, 20 Jan 2006 19:49:02 +0000 (19:49 +0000)]
main_init() really re-initializes everything. Previously, it could
result in malformed poll tables being built.

Also improved the debugging messages a lot.

18 years agoIt seems that signal safety of time-related functions is even more subtle
Martin Mares [Fri, 20 Jan 2006 19:47:21 +0000 (19:47 +0000)]
It seems that signal safety of time-related functions is even more subtle
than I thought -- strftime() and localtime_r() can deadlock each other,
probably due to access to time zone information. Replaced strftime() by
a mere sprintf.

18 years agoAdded a possibility of logging with microsecond timestamps.
Martin Mares [Fri, 20 Jan 2006 18:34:28 +0000 (18:34 +0000)]
Added a possibility of logging with microsecond timestamps.

18 years agoCleaned up includes.
Martin Mares [Mon, 16 Jan 2006 20:03:01 +0000 (20:03 +0000)]
Cleaned up includes.

18 years agoxfree() macro has been turned into a regular function. This is much cleaner,
Martin Mares [Mon, 16 Jan 2006 20:02:42 +0000 (20:02 +0000)]
xfree() macro has been turned into a regular function. This is much cleaner,
allows for easy memory allocation tracking and also avoids including
<stdlib.h> at random places.

18 years agoCheck partmap-is-mmap configuration as well.
Martin Mares [Mon, 16 Jan 2006 19:42:11 +0000 (19:42 +0000)]
Check partmap-is-mmap configuration as well.

18 years agoOn 64-bit architectures, partmap is just an mmap.
Martin Mares [Mon, 16 Jan 2006 19:41:56 +0000 (19:41 +0000)]
On 64-bit architectures, partmap is just an mmap.
On all architectures, it calls madvise() to optimize for sequential access.

18 years agoInstead of adding HEAP_INCREASE_POS as Tom requested, I've modified
Martin Mares [Mon, 16 Jan 2006 14:00:03 +0000 (14:00 +0000)]
Instead of adding HEAP_INCREASE_POS as Tom requested, I've modified
HEAP_INCREASE. I think this is a better solution, because increasing
the value of the root element is too special and knowing that doesn't
enable us to do any special optimizations anyway.

18 years agoFixed stk_strndup(): it works on non-terminated input strings now
Martin Mares [Mon, 16 Jan 2006 13:32:54 +0000 (13:32 +0000)]
Fixed stk_strndup(): it works on non-terminated input strings now
and without an off-by-one bug :)

18 years agolog() is now signal-safe.
Martin Mares [Wed, 14 Dec 2005 10:45:42 +0000 (10:45 +0000)]
log() is now signal-safe.

18 years agoAdded a (so far trivial) library of functions for shell scripts.
Martin Mares [Wed, 7 Dec 2005 22:27:54 +0000 (22:27 +0000)]
Added a (so far trivial) library of functions for shell scripts.

18 years agouse typedef instead of define for sh_stat_t
Vladimir Jelen [Wed, 7 Dec 2005 15:39:10 +0000 (15:39 +0000)]
use typedef instead of define for sh_stat_t

18 years agoadded sh_stat_t
Vladimir Jelen [Wed, 7 Dec 2005 15:27:06 +0000 (15:27 +0000)]
added sh_stat_t

18 years agoadded sh_stat
Vladimir Jelen [Wed, 7 Dec 2005 15:10:36 +0000 (15:10 +0000)]
added sh_stat

18 years ago_GNU_SOURCE can be already defined by compiler switches, avoid warnings.
Martin Mares [Tue, 6 Dec 2005 10:47:06 +0000 (10:47 +0000)]
_GNU_SOURCE can be already defined by compiler switches, avoid warnings.

18 years agoAdded stk_strndup().
Martin Mares [Sun, 4 Dec 2005 19:52:28 +0000 (19:52 +0000)]
Added stk_strndup().

18 years agoAvoid namespace clashes (patch by Tom Valla).
Martin Mares [Sat, 26 Nov 2005 20:24:18 +0000 (20:24 +0000)]
Avoid namespace clashes (patch by Tom Valla).

18 years agocreate BIT_ARRAY_ALLOC()
Robert Spalek [Fri, 25 Nov 2005 15:02:47 +0000 (15:02 +0000)]
create BIT_ARRAY_ALLOC()

18 years agoadd a configuration switch for the incremental scanner
Robert Spalek [Wed, 23 Nov 2005 10:17:58 +0000 (10:17 +0000)]
add a configuration switch for the incremental scanner

18 years agoAdded clist_insert_list_after().
Martin Mares [Sat, 19 Nov 2005 14:22:44 +0000 (14:22 +0000)]
Added clist_insert_list_after().

18 years agoMore work on the multiplexer:
Martin Mares [Wed, 16 Nov 2005 13:54:55 +0000 (13:54 +0000)]
More work on the multiplexer:

o  Changed configuration of search servers and groups, added stand-alone
   declarations of groups, merging groups and the default route.
o  Search servers now have identifiers to avoid cluttering logs and
   parameters by hostnames and ports.
o  MUXSS can refer to a search server, group or merging group.
o  Bug fix in pinging.
o  mux -s now uses the screen width to list databases, not groups.
o  Added mux --testconfig, which also dumps all known route objects.

18 years agoAdded cfg_printf(), which will be useful for formatting of error messages
Martin Mares [Wed, 16 Nov 2005 13:09:32 +0000 (13:09 +0000)]
Added cfg_printf(), which will be useful for formatting of error messages
used in configuration parsers.

18 years agoMux pings now monitor which versions of which databases are offered
Martin Mares [Tue, 15 Nov 2005 18:42:41 +0000 (18:42 +0000)]
Mux pings now monitor which versions of which databases are offered
by which search servers. Live search servers are also pinged ocassionally
to check that the versions still match.

18 years agofix from rel-3-7
Vladimir Jelen [Tue, 15 Nov 2005 08:39:22 +0000 (08:39 +0000)]
fix from rel-3-7

18 years agoChanged main_loop shutdown logic once again. The former mechanism with
Martin Mares [Mon, 14 Nov 2005 20:06:49 +0000 (20:06 +0000)]
Changed main_loop shutdown logic once again. The former mechanism with
a single global main_shutdown variable was too inflexible. I have given
all hooks a possibility to either invoke an immediate shutdown or a "soft"
shutdown which is activated if all hooks agree on it (the idea is that
different parts of a single program can have their local opinion on whether
there is more to do or not).

18 years agoMade main_loop() exit if there is nothing to do.
Martin Mares [Sun, 13 Nov 2005 16:13:30 +0000 (16:13 +0000)]
Made main_loop() exit if there is nothing to do.
Also added a guard against multiple inclusion.

18 years agomain_get_timer() made public.
Martin Mares [Tue, 8 Nov 2005 21:10:50 +0000 (21:10 +0000)]
main_get_timer() made public.

18 years ago#include "sherlock/tagged-text.h" really doesn't belong here.
Martin Mares [Tue, 8 Nov 2005 21:04:58 +0000 (21:04 +0000)]
#include "sherlock/tagged-text.h" really doesn't belong here.

18 years agoIf there are no more filehandles and a timer or event or process hook
Martin Mares [Mon, 7 Nov 2005 22:22:03 +0000 (22:22 +0000)]
If there are no more filehandles and a timer or event or process hook
orders shutdown, comply immediately without calling poll().

18 years agopartmap.h deserves its own header
Robert Spalek [Sun, 16 Oct 2005 15:53:38 +0000 (15:53 +0000)]
partmap.h deserves its own header

18 years agopartmap_map() inlined and added an even faster version of it
Robert Spalek [Sat, 15 Oct 2005 18:06:38 +0000 (18:06 +0000)]
partmap_map() inlined and added an even faster version of it

18 years agoshut up, gcc
Robert Spalek [Sat, 8 Oct 2005 11:52:19 +0000 (11:52 +0000)]
shut up, gcc

18 years agoAdded user unaccenting rules for stroked letters. Not tested yet.
Martin Mares [Wed, 5 Oct 2005 10:10:25 +0000 (10:10 +0000)]
Added user unaccenting rules for stroked letters. Not tested yet.

18 years agofix
Vladimir Jelen [Mon, 3 Oct 2005 15:16:34 +0000 (15:16 +0000)]
fix

18 years agoAdded a single-linked double-ended list module. Mostly syntactic sugar.
Martin Mares [Sun, 2 Oct 2005 13:10:42 +0000 (13:10 +0000)]
Added a single-linked double-ended list module. Mostly syntactic sugar.

The SLIST_WALK_DELSAFE macro has well-defined semantics of the auxilliary
variable: it's a pointer to the previous list item or to the list head,
making it possible to delete the current item efficiently by calling
slist_remove_after().

Unfortunately, I failed to write SLIST_FOR_EACH_DELSAFE, C syntax doesn't
seem to be flexible enough for that.

18 years agoMoved ROL() to lib.h.
Martin Mares [Sun, 2 Oct 2005 11:22:35 +0000 (11:22 +0000)]
Moved ROL() to lib.h.

18 years agoConvert some nextprimes to next_table_primes.
Martin Mares [Sun, 2 Oct 2005 10:58:31 +0000 (10:58 +0000)]
Convert some nextprimes to next_table_primes.

18 years agoAdded a table of prime numbers. (I want to use prime numbers for hash table
Martin Mares [Sun, 2 Oct 2005 10:56:25 +0000 (10:56 +0000)]
Added a table of prime numbers. (I want to use prime numbers for hash table
sizes, but since the hash tables will be short-lived, I don't want to spend
much time by calculating primes.)

18 years agoAdded a library module for generic binary search.
Martin Mares [Sun, 2 Oct 2005 10:52:23 +0000 (10:52 +0000)]
Added a library module for generic binary search.

18 years agoMainline is v3.8.
Martin Mares [Fri, 30 Sep 2005 20:06:46 +0000 (20:06 +0000)]
Mainline is v3.8.

18 years agoUpdated calls of fls().
Martin Mares [Thu, 22 Sep 2005 20:45:26 +0000 (20:45 +0000)]
Updated calls of fls().

18 years agofls() is gone.
Martin Mares [Thu, 22 Sep 2005 20:45:06 +0000 (20:45 +0000)]
fls() is gone.

18 years agoImplemented ffs() and unified it with fls() to bitops.h.
Martin Mares [Thu, 22 Sep 2005 20:44:51 +0000 (20:44 +0000)]
Implemented ffs() and unified it with fls() to bitops.h.

18 years agoMerged bucket file scaling patches from rel-3-7-pre1:
Martin Mares [Tue, 20 Sep 2005 20:29:29 +0000 (20:29 +0000)]
Merged bucket file scaling patches from rel-3-7-pre1:

Report failure if the bucket file grows too large.
Report oversized bucket files as fatal errors during bucket fsck.

Made OBUCK_SHIFT a configurable parameter. Also changed OBUCK_INCOMPLETE_MAGIC,
the original value was an evident typo (fortunately this value should never
appear in valid bucket files, so we are free to change it).

Increased bucket shift in PL customization.

18 years agoMinor cleanup of KMP:
Martin Mares [Tue, 20 Sep 2005 20:11:08 +0000 (20:11 +0000)]
Minor cleanup of KMP:

o  Replaced translation macro by input reading macro.
o  Moved reading of tagged streams to sherlock/tagged-text.h (it contains
   reading functions for completely non-related stream types anyway)
o  CONTROL_CHAR renamed to KMP_CONTROL_CHAR.
o  Tried to improve comments.

I hope it's a smaller mess now.

18 years agoincrease buffer 3x
Robert Spalek [Tue, 20 Sep 2005 13:06:25 +0000 (13:06 +0000)]
increase buffer 3x

18 years agobugfix
Robert Spalek [Tue, 20 Sep 2005 12:55:32 +0000 (12:55 +0000)]
bugfix

18 years agokmp search automaton moved from lang/ to lib/
Robert Spalek [Tue, 20 Sep 2005 12:50:17 +0000 (12:50 +0000)]
kmp search automaton moved from lang/ to lib/

18 years agoIntroduced mp_memdup().
Martin Mares [Thu, 15 Sep 2005 17:30:46 +0000 (17:30 +0000)]
Introduced mp_memdup().

18 years agoSeveral tweaks to the growing buffers:
Martin Mares [Thu, 15 Sep 2005 17:03:27 +0000 (17:03 +0000)]
Several tweaks to the growing buffers:

o  The _grow() function now returns pointer to the new buffer.
o  Many functions uninlined.
o  Fast path of _grow() is inline, but the slow path is not.

18 years agoOops, one really cannot skip bflush() there, because it's needed as
Martin Mares [Wed, 14 Sep 2005 14:04:19 +0000 (14:04 +0000)]
Oops, one really cannot skip bflush() there, because it's needed as
a barrier between reads and writes.

18 years agoIf nothing has been written, brewind() needn't flush.
Martin Mares [Wed, 14 Sep 2005 11:48:32 +0000 (11:48 +0000)]
If nothing has been written, brewind() needn't flush.

18 years agoUse $(COPT2) instead of -O6.
Martin Mares [Wed, 14 Sep 2005 11:07:17 +0000 (11:07 +0000)]
Use $(COPT2) instead of -O6.

18 years agoFixed another 64-bit bug.
Martin Mares [Wed, 14 Sep 2005 11:07:07 +0000 (11:07 +0000)]
Fixed another 64-bit bug.

18 years agoChecked and corrected all uses of va_args.
Martin Mares [Wed, 14 Sep 2005 09:46:46 +0000 (09:46 +0000)]
Checked and corrected all uses of va_args.

18 years agoout[-pos] need not equal *(out-pos) if pointers are 64-bit and pos is 32-bit.
Martin Mares [Wed, 14 Sep 2005 09:20:02 +0000 (09:20 +0000)]
out[-pos] need not equal *(out-pos) if pointers are 64-bit and pos is 32-bit.

18 years agoAnother thing about the C standard I didn't know: passing a va_list to
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.

18 years agoUlimit.xs now compiles in Perl 5.8.x, while still working in 5.6.x, which
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.