]> mj.ucw.cz Git - libucw.git/log
libucw.git
17 years agoAdded 32bit random number generator.
Pavel Charvat [Wed, 7 Mar 2007 12:08:18 +0000 (13:08 +0100)]
Added 32bit random number generator.

17 years agosmall fixes in perl modules
Pavel Charvat [Mon, 5 Mar 2007 20:08:09 +0000 (21:08 +0100)]
small fixes in perl modules

17 years agostkstring.h depends on <stdio.h> (sprintf)
Pavel Charvat [Thu, 1 Mar 2007 13:31:31 +0000 (14:31 +0100)]
stkstring.h depends on <stdio.h> (sprintf)

17 years agofixed fcnt_lock interface description
Pavel Charvat [Sun, 25 Feb 2007 22:59:33 +0000 (23:59 +0100)]
fixed fcnt_lock interface description

17 years agoadded a perl module for fcntl locking
Pavel Charvat [Sun, 25 Feb 2007 22:39:11 +0000 (23:39 +0100)]
added a perl module for fcntl locking

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Fri, 16 Feb 2007 12:37:11 +0000 (13:37 +0100)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10.1
Pavel Charvat [Tue, 13 Feb 2007 11:08:54 +0000 (12:08 +0100)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10.1

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10
Pavel Charvat [Tue, 13 Feb 2007 11:08:13 +0000 (12:08 +0100)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10

17 years agoMerged genconf improvements from mainline.
Martin Mares [Fri, 9 Feb 2007 10:17:00 +0000 (11:17 +0100)]
Merged genconf improvements from mainline.

17 years agoMore elegant evaluation of #if expressions.
Martin Mares [Thu, 8 Feb 2007 22:04:56 +0000 (23:04 +0100)]
More elegant evaluation of #if expressions.

17 years agoImplemented substition of configuration variables.
Martin Mares [Thu, 8 Feb 2007 22:00:26 +0000 (23:00 +0100)]
Implemented substition of configuration variables.

17 years agoReplaced %L by %ll, the former is obsolete and specific to Linux libc5.
Martin Mares [Fri, 2 Feb 2007 12:06:04 +0000 (13:06 +0100)]
Replaced %L by %ll, the former is obsolete and specific to Linux libc5.

17 years agoHunted down a dozen of damned printf cast bugs.
Martin Mares [Fri, 2 Feb 2007 11:55:28 +0000 (12:55 +0100)]
Hunted down a dozen of damned printf cast bugs.

Condemned eternally be the man who gave C precise types, but no formatting
sequences for printing them.

17 years agoMake !CONFIG_EXACT_CPU work again.
Martin Mares [Fri, 2 Feb 2007 11:31:18 +0000 (12:31 +0100)]
Make !CONFIG_EXACT_CPU work again.

When the CONFIG_EXACT_CPU switch was turned off, the configure script
spat errors on being unable to parse /proc/cpuinfo.

Now we handle the non-exact mode properly by not emitting any model-specific
gcc flags.

17 years agoThe great type cleanup: Use C99 types where applicable.
Martin Mares [Fri, 2 Feb 2007 11:08:56 +0000 (12:08 +0100)]
The great type cleanup: Use C99 types where applicable.

LibUCW types (u16 and friends) are now based on the C99 <stdint.h> types.

Old-style sbyte, word, sword and addr_int_t are gone (I've removed all refs
to them in the previous commits).

<stddef.h> is now included automatically, bringing types like size_t and
also NULL.

The operations on pointers (GET_P, PUT_P etc.) have been removed from
lib/config.h as nobody uses them and bgetp() is just a duplicate of bgeta()
from lib/fastbuf.h. BYTES_PER_P is gone as well.

#define _GNU_SOURCE had to be moved to lib/config.h, where it belongs anyway.

17 years agoUse uintptr_t instead of addr_int_t.
Martin Mares [Fri, 2 Feb 2007 11:02:39 +0000 (12:02 +0100)]
Use uintptr_t instead of addr_int_t.

No need to use our own type when we already rely on C99 anyway.

17 years agoGet rid of ancient types: sbyte, word, sword.
Martin Mares [Fri, 2 Feb 2007 10:46:39 +0000 (11:46 +0100)]
Get rid of ancient types: sbyte, word, sword.

s8, u16 and s16 are definitely more readable.

17 years agoUnified printing of flags.
Martin Mares [Mon, 29 Jan 2007 11:22:39 +0000 (12:22 +0100)]
Unified printing of flags.

I've moved format_flags() from idxdump to libucw and used it where possible.
I've also unified the direction in which flag bits are printed, so the order
of the state flags has changed [but I don't think anything relies on it].

17 years agogenconf: Stop the compilation if #pipe failed.
Pavel Charvat [Wed, 17 Jan 2007 00:38:51 +0000 (01:38 +0100)]
genconf: Stop the compilation if #pipe failed.

17 years agoSupport for the following syntax in configuration files:
Pavel Charvat [Wed, 17 Jan 2007 00:20:56 +0000 (01:20 +0100)]
Support for the following syntax in configuration files:

#if CONFIG_ABC || !CONFIG_DEF
#elsif (CONFIG_GHI && CONFIG_JKL) || CONFIG_MNO
#else
#endif

Alternatively I can cache it to C-like "defined(CONFIG_ABC)"
(CONFIG_ABC alone could expand to its value)
or to pure Perl code without substitutions.

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10.1
Pavel Charvat [Mon, 15 Jan 2007 10:26:33 +0000 (11:26 +0100)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10.1

17 years agoCPU_PAGE_SIZE ported from mainline.
Martin Mares [Fri, 12 Jan 2007 11:20:55 +0000 (12:20 +0100)]
CPU_PAGE_SIZE ported from mainline.

17 years agoDetermine system page size in the configure script (introduced CPU_PAGE_SIZE).
Martin Mares [Fri, 12 Jan 2007 11:17:50 +0000 (12:17 +0100)]
Determine system page size in the configure script (introduced CPU_PAGE_SIZE).

This is a work around for broken libc on unstable Debian, but it will
probably be useful elsewhere, too.

17 years agoAdded missing lib/bigalloc.c from dev-async-shep.
Martin Mares [Tue, 2 Jan 2007 14:23:38 +0000 (15:23 +0100)]
Added missing lib/bigalloc.c from dev-async-shep.

17 years agoPartial merge with dev-async-shep:
Pavel Charvat [Tue, 2 Jan 2007 14:12:35 +0000 (15:12 +0100)]
Partial merge with dev-async-shep:
- added routines for allocation of large alligned buffers
- improved random-access utility

17 years agoadded missing type for a local variable
Pavel Charvat [Mon, 18 Dec 2006 12:23:14 +0000 (13:23 +0100)]
added missing type for a local variable

17 years agoFixed a typo preventing compilation in non-threaded mode.
Martin Mares [Mon, 18 Dec 2006 12:22:00 +0000 (13:22 +0100)]
Fixed a typo preventing compilation in non-threaded mode.

17 years agoRemove relics of pre-CONFIG_UCW_THREADS times.
Martin Mares [Mon, 18 Dec 2006 12:15:28 +0000 (13:15 +0100)]
Remove relics of pre-CONFIG_UCW_THREADS times.

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Mon, 18 Dec 2006 12:02:50 +0000 (13:02 +0100)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

17 years agoMerged mainline with parallel shep-reap:
Pavel Charvat [Mon, 18 Dec 2006 12:02:41 +0000 (13:02 +0100)]
Merged mainline with parallel shep-reap:
- bucket file iface supports more than one opened DB
- shep-reap can preload buckets in parallel (useful especially on RAID systems)

17 years agoUse thread ID for temporary file creation.
Martin Mares [Mon, 18 Dec 2006 11:03:14 +0000 (12:03 +0100)]
Use thread ID for temporary file creation.

17 years agoAdded thread_id to ucwlib_context.
Martin Mares [Mon, 18 Dec 2006 10:59:35 +0000 (11:59 +0100)]
Added thread_id to ucwlib_context.

17 years agoFree thread context structure on thread termination.
Martin Mares [Mon, 18 Dec 2006 10:52:33 +0000 (11:52 +0100)]
Free thread context structure on thread termination.

17 years agoFixed bug in signal handling.
Martin Mares [Fri, 15 Dec 2006 15:01:36 +0000 (16:01 +0100)]
Fixed bug in signal handling.

17 years agoRemoved the `returned' hook.
Martin Mares [Fri, 15 Dec 2006 13:27:44 +0000 (14:27 +0100)]
Removed the `returned' hook.

17 years agoImplemented priority queues.
Martin Mares [Fri, 15 Dec 2006 13:27:21 +0000 (14:27 +0100)]
Implemented priority queues.

17 years agoimage-sim-test can display also base224-encoded signatures
Pavel Charvat [Tue, 12 Dec 2006 13:25:07 +0000 (14:25 +0100)]
image-sim-test can display also base224-encoded signatures

17 years agofixed long option for computation of base64 signatures
Pavel Charvat [Tue, 12 Dec 2006 10:23:56 +0000 (11:23 +0100)]
fixed long option for computation of base64 signatures

17 years agoimage-sim-test can display base64-encoded signature
Pavel Charvat [Tue, 12 Dec 2006 10:02:26 +0000 (11:02 +0100)]
image-sim-test can display base64-encoded signature

17 years agoUpdated various programs and Makefiles to use the threading infrastructure.
Martin Mares [Mon, 11 Dec 2006 22:46:52 +0000 (23:46 +0100)]
Updated various programs and Makefiles to use the threading infrastructure.

17 years agoUpdated libucw threading notes.
Martin Mares [Mon, 11 Dec 2006 22:46:28 +0000 (23:46 +0100)]
Updated libucw threading notes.

17 years agoLogging functions are thread-safe.
Martin Mares [Mon, 11 Dec 2006 22:46:18 +0000 (23:46 +0100)]
Logging functions are thread-safe.

17 years agoFixed thread safety of signal handling.
Martin Mares [Mon, 11 Dec 2006 22:45:56 +0000 (23:45 +0100)]
Fixed thread safety of signal handling.

Signals delivery is generally not deterministic in multi-threaded programs,
but SIGSEGV is always sent by the kernel to the thread which caused the fault.

Replaced the global signal handler array by a pointer in the per-thread
context and replaced saving of original handles (which was wrong even in
some non-threaded cases) by locked use counters.

Also moved logging of the SIGSEGV error message out of the signal handler
to be sure there are no clashes.

When libucw is compiled without threading, everything is nearly as simple
as before, because the thread context struct is static and all locks
disappear.

17 years agoExport temp_file_name().
Martin Mares [Mon, 11 Dec 2006 22:44:55 +0000 (23:44 +0100)]
Export temp_file_name().

17 years agoCreation of temporary files is now thread-safe (ugh).
Martin Mares [Mon, 11 Dec 2006 22:44:43 +0000 (23:44 +0100)]
Creation of temporary files is now thread-safe (ugh).

17 years agoAdded threading infrastructure to libucw and CONFIG_UCW_THREADS.
Martin Mares [Mon, 11 Dec 2006 22:43:37 +0000 (23:43 +0100)]
Added threading infrastructure to libucw and CONFIG_UCW_THREADS.

Finally decided that we need threading support in too many libucw modules,
so the only sane thing is to link all programs with -lpthread. On the
other hand, I would like to keep the possibility of building non-threaded libucw,
so I've introduced a new config switch, which is always set for Sherlock.

17 years agoTrivial cleanups.
Martin Mares [Mon, 11 Dec 2006 22:39:22 +0000 (23:39 +0100)]
Trivial cleanups.

17 years agoAdded a library module for distributing work between threads.
Martin Mares [Mon, 11 Dec 2006 22:38:05 +0000 (23:38 +0100)]
Added a library module for distributing work between threads.

(Ported from the dev-sorter branch.)

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

(centrum/cz/{cf/local,config} merged manually)

17 years agoCONFIG_INSTALL_API installs libimages headers
Pavel Charvat [Fri, 8 Dec 2006 16:44:59 +0000 (17:44 +0100)]
CONFIG_INSTALL_API installs libimages headers

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10
Pavel Charvat [Mon, 27 Nov 2006 23:50:00 +0000 (00:50 +0100)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10

17 years agofixed reading of big jpegs (serious today's bug)
Pavel Charvat [Mon, 27 Nov 2006 23:49:09 +0000 (00:49 +0100)]
fixed reading of big jpegs (serious today's bug)

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10
Pavel Charvat [Mon, 27 Nov 2006 12:57:32 +0000 (13:57 +0100)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10

17 years agofixed deinterlacing of very small GIFs
Pavel Charvat [Mon, 27 Nov 2006 12:41:33 +0000 (13:41 +0100)]
fixed deinterlacing of very small GIFs

17 years agotypo
Pavel Charvat [Mon, 27 Nov 2006 12:11:35 +0000 (13:11 +0100)]
typo

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10
Pavel Charvat [Mon, 27 Nov 2006 12:08:59 +0000 (13:08 +0100)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10

17 years agoaccording to libjpeg documentation fill_input_buffer should never return zero
Pavel Charvat [Mon, 27 Nov 2006 12:06:00 +0000 (13:06 +0100)]
according to libjpeg documentation fill_input_buffer should never return zero

17 years agoignore libjpeg warnings
Pavel Charvat [Sat, 25 Nov 2006 21:14:31 +0000 (22:14 +0100)]
ignore libjpeg warnings

17 years ago64bit bug in image signatures
Pavel Charvat [Sat, 25 Nov 2006 21:11:15 +0000 (22:11 +0100)]
64bit bug in image signatures

17 years agofixed segfaulting libjpeg warnings when decoding partially wrong images...
Pavel Charvat [Fri, 24 Nov 2006 23:31:25 +0000 (00:31 +0100)]
fixed segfaulting libjpeg warnings when decoding partially wrong images...
now we reject such images, but it can be easily changed in ifdef

17 years agopartial YCCK colorspace support
Pavel Charvat [Sat, 11 Nov 2006 20:11:11 +0000 (21:11 +0100)]
partial YCCK colorspace support

17 years agofixed Bug 3188 - libimages supports shared libraries;
Pavel Charvat [Mon, 6 Nov 2006 11:29:11 +0000 (12:29 +0100)]
fixed Bug 3188 - libimages supports shared libraries;
it depends on libsh only with CONFIG_SHERLOCK

17 years agohacked libimages tests dependencies
Pavel Charvat [Mon, 6 Nov 2006 10:34:38 +0000 (11:34 +0100)]
hacked libimages tests dependencies

17 years agofixed color.test compilation
Pavel Charvat [Mon, 6 Nov 2006 09:52:49 +0000 (10:52 +0100)]
fixed color.test compilation

17 years agoMoved the update hook script to a separate repository.
Martin Mares [Fri, 3 Nov 2006 19:41:28 +0000 (20:41 +0100)]
Moved the update hook script to a separate repository.

17 years agoadded support for some color conversions; we should be able to load cmyk
Pavel Charvat [Thu, 2 Nov 2006 23:06:50 +0000 (00:06 +0100)]
added support for some color conversions; we should be able to load cmyk
jpegs now...

17 years agoimage-tool uses RGB automatically when converting non-RGB jpegs
Pavel Charvat [Wed, 1 Nov 2006 13:52:57 +0000 (14:52 +0100)]
image-tool uses RGB automatically when converting non-RGB jpegs
to gif/png

17 years agoslightly changed dealing with color spaces
Pavel Charvat [Wed, 1 Nov 2006 13:38:11 +0000 (14:38 +0100)]
slightly changed dealing with color spaces
(I will add CMYK -> RGB conversion soon ... bug #2819)

17 years agoenable dynamic linking on Darwin
Robert Spalek [Sat, 28 Oct 2006 01:20:44 +0000 (18:20 -0700)]
enable dynamic linking on Darwin

17 years agoauto-detect CONFIG_LFS
Robert Spalek [Sat, 28 Oct 2006 00:54:26 +0000 (17:54 -0700)]
auto-detect CONFIG_LFS

17 years agomake the Perl Ulimit module compilable on Darwin
Robert Spalek [Fri, 27 Oct 2006 03:51:43 +0000 (20:51 -0700)]
make the Perl Ulimit module compilable on Darwin

17 years agoupdate the code so that it compiles both on Linux and Darwin
Robert Spalek [Fri, 27 Oct 2006 03:10:36 +0000 (20:10 -0700)]
update the code so that it compiles both on Linux and Darwin

17 years agofdatasync is not supported on Darwin ===> work-around
Robert Spalek [Fri, 27 Oct 2006 03:08:09 +0000 (20:08 -0700)]
fdatasync is not supported on Darwin ===> work-around

17 years agoadded a wrapper for POSIX semaphores that works also on Darwin
Robert Spalek [Fri, 27 Oct 2006 03:05:16 +0000 (20:05 -0700)]
added a wrapper for POSIX semaphores that works also on Darwin

17 years agoseparate the support of large files from using LFS versions of file functions
Robert Spalek [Fri, 27 Oct 2006 03:03:32 +0000 (20:03 -0700)]
separate the support of large files from using LFS versions of file functions

17 years agoALIGN renamed to ALIGN_TO
Robert Spalek [Thu, 26 Oct 2006 01:56:57 +0000 (18:56 -0700)]
ALIGN renamed to ALIGN_TO

17 years agofixed forgotten text :)
Pavel Charvat [Sun, 22 Oct 2006 14:45:49 +0000 (16:45 +0200)]
fixed forgotten text :)

17 years agoCompleted merge with dev-img branch.
Pavel Charvat [Thu, 19 Oct 2006 08:34:16 +0000 (10:34 +0200)]
Completed merge with dev-img branch.

- libimages library
- gatherer uses libimages instead of GraphicsMagick
- added indexation of image signatures and support
  for similar images to search server (IMAGESIM)
- CZ indexation split to text and images
- ... and more small changes

17 years agoPartial merge with dev-img - added libimages.
Pavel Charvat [Thu, 19 Oct 2006 08:13:19 +0000 (10:13 +0200)]
Partial merge with dev-img - added libimages.

17 years agorewriting PL timetables... incomplete
Pavel Charvat [Wed, 18 Oct 2006 13:14:16 +0000 (15:14 +0200)]
rewriting PL timetables... incomplete

17 years agoMerge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git
Martin Mares [Fri, 13 Oct 2006 09:40:04 +0000 (11:40 +0200)]
Merge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git

17 years agostk_printf() has been fixed.
Martin Mares [Fri, 13 Oct 2006 09:28:59 +0000 (11:28 +0200)]
stk_printf() has been fixed.

17 years agogenconfig can include program's output (should be deterministic)
Pavel Charvat [Thu, 12 Oct 2006 14:59:36 +0000 (16:59 +0200)]
genconfig can include program's output (should be deterministic)

17 years agoconf: improve the format of the error message issued on invalid -S setting
Robert Spalek [Mon, 9 Oct 2006 17:56:06 +0000 (19:56 +0200)]
conf: improve the format of the error message issued on invalid -S setting

17 years agothread-safe stk_printf
Pavel Charvat [Mon, 9 Oct 2006 08:21:56 +0000 (10:21 +0200)]
thread-safe stk_printf

17 years agoReplaced the SORTER_DECLARE_ONLY hack by lib/sorter-globals.h.
Martin Mares [Thu, 5 Oct 2006 17:41:56 +0000 (19:41 +0200)]
Replaced the SORTER_DECLARE_ONLY hack by lib/sorter-globals.h.

17 years agoDefine NO_INLINE, which can be helpful when profiling.
Martin Mares [Tue, 26 Sep 2006 14:00:16 +0000 (16:00 +0200)]
Define NO_INLINE, which can be helpful when profiling.

17 years agoMerge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git
Martin Mares [Fri, 22 Sep 2006 19:15:23 +0000 (21:15 +0200)]
Merge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git

17 years agoA better comments on character set names.
Martin Mares [Fri, 22 Sep 2006 14:38:06 +0000 (16:38 +0200)]
A better comments on character set names.

17 years agonote that we use RCF names for supported charsets
Pavel Charvat [Fri, 22 Sep 2006 14:33:10 +0000 (16:33 +0200)]
note that we use RCF names for supported charsets

17 years agoDocumented thread safety of ucwlib functions.
Martin Mares [Wed, 20 Sep 2006 14:35:12 +0000 (16:35 +0200)]
Documented thread safety of ucwlib functions.

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Mon, 18 Sep 2006 10:03:56 +0000 (12:03 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

17 years agoGuard against calls of random_max() with too large range.
Martin Mares [Fri, 15 Sep 2006 19:14:59 +0000 (21:14 +0200)]
Guard against calls of random_max() with too large range.

17 years agoAdded random_u64() and random_max_u64().
Martin Mares [Fri, 15 Sep 2006 19:00:12 +0000 (21:00 +0200)]
Added random_u64() and random_max_u64().

17 years agoAvoid unnecessary include of bbuf.h in fastbuf.h.
Martin Mares [Thu, 14 Sep 2006 11:44:04 +0000 (13:44 +0200)]
Avoid unnecessary include of bbuf.h in fastbuf.h.

17 years agoDefine the buffer type as both a typedef and a structure.
Martin Mares [Thu, 14 Sep 2006 11:43:49 +0000 (13:43 +0200)]
Define the buffer type as both a typedef and a structure.

17 years agoImplemented the atomic fastbuf backend.
Martin Mares [Thu, 14 Sep 2006 11:39:30 +0000 (13:39 +0200)]
Implemented the atomic fastbuf backend.

17 years agoAtomic fastbufs: the first sketch of the interface.
Martin Mares [Wed, 13 Sep 2006 19:38:05 +0000 (21:38 +0200)]
Atomic fastbufs: the first sketch of the interface.

17 years agoAdded ALWAYS_INLINE.
Martin Mares [Wed, 13 Sep 2006 18:03:34 +0000 (20:03 +0200)]
Added ALWAYS_INLINE.

17 years agoHide the TAGS file from the prying eyes of GIT.
Martin Mares [Mon, 11 Sep 2006 19:23:53 +0000 (21:23 +0200)]
Hide the TAGS file from the prying eyes of GIT.