]> mj.ucw.cz Git - libucw.git/log
libucw.git
17 years agoMoved detaching of stdout from log_file() to the daemon-helper.
Martin Mares [Wed, 20 Jun 2007 08:04:08 +0000 (10:04 +0200)]
Moved detaching of stdout from log_file() to the daemon-helper.

17 years agoDocumented bgets() and friends per popular request.
Martin Mares [Wed, 20 Jun 2007 07:47:01 +0000 (09:47 +0200)]
Documented bgets() and friends per popular request.

17 years agosimplified usage utf8_get
Pavel Charvat [Thu, 14 Jun 2007 13:29:46 +0000 (15:29 +0200)]
simplified usage utf8_get

17 years agoAdded missing includes to libucw API.
Martin Mares [Mon, 4 Jun 2007 10:54:45 +0000 (12:54 +0200)]
Added missing includes to libucw API.

17 years agoExported the addrmasks and their matching.
Martin Mares [Sun, 3 Jun 2007 19:38:13 +0000 (21:38 +0200)]
Exported the addrmasks and their matching.

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.11
Pavel Charvat [Fri, 18 May 2007 14:05:11 +0000 (16:05 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.11

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10
Pavel Charvat [Fri, 18 May 2007 12:41:33 +0000 (14:41 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10

17 years agobugfix in image scaling (select the correct strategy)
Pavel Charvat [Fri, 18 May 2007 11:45:03 +0000 (13:45 +0200)]
bugfix in image scaling (select the correct strategy)

17 years agoinstall sorter-globals.h header
Pavel Charvat [Thu, 17 May 2007 20:06:27 +0000 (22:06 +0200)]
install sorter-globals.h header

17 years agoTAGS were specified twice.
Martin Mares [Wed, 16 May 2007 12:30:50 +0000 (14:30 +0200)]
TAGS were specified twice.

17 years agolib: added missing include on Darwin
Robert Spalek [Sat, 28 Apr 2007 20:40:06 +0000 (13:40 -0700)]
lib: added missing include on Darwin

17 years agofixed off-by-one error in workqueue
Pavel Charvat [Mon, 23 Apr 2007 18:00:55 +0000 (20:00 +0200)]
fixed off-by-one error in workqueue

17 years agofixed another bug with mixed HASH_GIVE_ALLOC and HASH_TABLE_ALLOC
Pavel Charvat [Mon, 23 Apr 2007 14:19:58 +0000 (16:19 +0200)]
fixed another bug with mixed HASH_GIVE_ALLOC and HASH_TABLE_ALLOC

17 years agofixed bug in big_free
Pavel Charvat [Mon, 23 Apr 2007 12:17:31 +0000 (14:17 +0200)]
fixed bug in big_free

17 years agohashtables: fixed combination of HASH_GIVE_ALLOC and HASH_TABLE_ALLOC
Pavel Charvat [Mon, 23 Apr 2007 12:07:19 +0000 (14:07 +0200)]
hashtables: fixed combination of HASH_GIVE_ALLOC and HASH_TABLE_ALLOC

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10.1
Pavel Charvat [Mon, 23 Apr 2007 08:12:51 +0000 (10:12 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10.1

17 years agoAdded kmp.h and kmp-search.h between includes that are installed by make
Daniel Fiala [Wed, 18 Apr 2007 12:40:41 +0000 (14:40 +0200)]
Added kmp.h and kmp-search.h between includes that are installed by make
install.

Added new release to centrum/cz/pkg/debian/changelog .

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Fri, 13 Apr 2007 08:36:27 +0000 (10:36 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

17 years agocommented stolen getopt
Pavel Charvat [Fri, 13 Apr 2007 07:48:30 +0000 (09:48 +0200)]
commented stolen getopt

17 years agoforgotten commit from yesterday
Pavel Charvat [Fri, 13 Apr 2007 07:29:06 +0000 (09:29 +0200)]
forgotten commit from yesterday

17 years agotrying to steal GNU libc's getopt... maybe it would be better
Pavel Charvat [Thu, 12 Apr 2007 10:03:30 +0000 (12:03 +0200)]
trying to steal GNU libc's getopt... maybe it would be better
to simply strip the code only (not long) instead of copying entire files :-/

17 years agofixed a typo in bfilesize
Pavel Charvat [Wed, 11 Apr 2007 08:09:36 +0000 (10:09 +0200)]
fixed a typo in bfilesize

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Tue, 10 Apr 2007 16:38:48 +0000 (18:38 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

17 years agoremoved MAX_ATTR_SIZE from images/*
Pavel Charvat [Tue, 10 Apr 2007 14:15:09 +0000 (16:15 +0200)]
removed MAX_ATTR_SIZE from images/*

17 years agoadded stk_vprintf
Pavel Charvat [Tue, 10 Apr 2007 13:37:49 +0000 (15:37 +0200)]
added stk_vprintf

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Tue, 10 Apr 2007 07:20:15 +0000 (09:20 +0200)]
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
Pavel Charvat [Tue, 10 Apr 2007 07:18:42 +0000 (09:18 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

17 years agoAdded a new mempool primitive mp_spread().
Martin Mares [Thu, 29 Mar 2007 08:48:06 +0000 (10:48 +0200)]
Added a new mempool primitive mp_spread().

Gradual construction of strings via the growing mempool interface was still
too complicated, so I have introduced a new primitive for this case and also
modified mp_end() to return a pointer to the beginning of the just closed
block (which gets optimized out if unused). This allows to write:

byte *p = mp_start(pool, 1);
for (...) {
p = mp_spread(pool, p, 2);
*p++ = ...;
}
*p++ = 0;
return mp_end(pool);

Pavel, if you agree, I will merge this into mainline.

17 years agoAdded a new mempool primitive mp_spread().
Martin Mares [Thu, 29 Mar 2007 08:48:06 +0000 (10:48 +0200)]
Added a new mempool primitive mp_spread().

Gradual construction of strings via the growing mempool interface was still
too complicated, so I have introduced a new primitive for this case and also
modified mp_end() to return a pointer to the beginning of the just closed
block (which gets optimized out if unused). This allows to write:

byte *p = mp_start(pool, 1);
for (...) {
p = mp_spread(pool, p, 2);
*p++ = ...;
}
*p++ = 0;
return mp_end(pool);

Pavel, if you agree, I will merge this into mainline.

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Thu, 29 Mar 2007 08:14:45 +0000 (10:14 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

17 years agoMerged extended mempool from the dev-playground branch.
Pavel Charvat [Thu, 29 Mar 2007 07:22:45 +0000 (09:22 +0200)]
Merged extended mempool from the dev-playground branch.

New features:
- reallocating of the last block (similar to a growing buffer)
- saving and restoring states (similar to a stack)

17 years agoremoved useless code from Ulimit & Filelock perl modules
Pavel Charvat [Tue, 20 Mar 2007 09:56:40 +0000 (10:56 +0100)]
removed useless code from Ulimit & Filelock perl modules

17 years agosimplified usage of Log & Die
Pavel Charvat [Tue, 20 Mar 2007 09:49:57 +0000 (10:49 +0100)]
simplified usage of Log & Die

17 years agoperl: Log and Die funtions are now exportable
Pavel Charvat [Tue, 20 Mar 2007 09:44:06 +0000 (10:44 +0100)]
perl: Log and Die funtions are now exportable

17 years agocommon switch for perl modules
Pavel Charvat [Fri, 16 Mar 2007 09:40:53 +0000 (10:40 +0100)]
common switch for perl modules

17 years agoAdded Log perl module.
Pavel Charvat [Fri, 16 Mar 2007 08:26:59 +0000 (09:26 +0100)]
Added Log perl module.

17 years agolibucw: added UTF-8 correctness checker
Pavel Charvat [Thu, 15 Mar 2007 20:56:46 +0000 (21:56 +0100)]
libucw: added UTF-8 correctness checker

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Mon, 12 Mar 2007 14:16:56 +0000 (15:16 +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 [Mon, 12 Mar 2007 14:02:08 +0000 (15:02 +0100)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10.1

17 years agobetter ifdefs in images/config.c
Pavel Charvat [Sun, 11 Mar 2007 09:23:08 +0000 (10:23 +0100)]
better ifdefs in images/config.c

17 years agoRewritten ff-binary.
Martin Mares [Sat, 10 Mar 2007 21:10:49 +0000 (22:10 +0100)]
Rewritten ff-binary.

It now supports reading/writing in a specified endianity as well as the
native format.

17 years agoUnaligned access functions (formerly macros) work in native, big and little endian.
Martin Mares [Sat, 10 Mar 2007 20:21:23 +0000 (21:21 +0100)]
Unaligned access functions (formerly macros) work in native, big and little endian.

17 years agoBinary fastbuf functions moved to lib/ff-binary.h.
Martin Mares [Sat, 10 Mar 2007 20:00:09 +0000 (21:00 +0100)]
Binary fastbuf functions moved to lib/ff-binary.h.

17 years agoRemoved an unnecessary optimization.
Martin Mares [Sat, 10 Mar 2007 19:45:38 +0000 (20:45 +0100)]
Removed an unnecessary optimization.

In fact, this could never trigger in recent versions of libucw
as it's already tested in bseek() and bsetpos().

17 years agolib/fastbuf.h no longer includes <stdio.h>.
Martin Mares [Sat, 10 Mar 2007 19:44:43 +0000 (20:44 +0100)]
lib/fastbuf.h no longer includes <stdio.h>.

Added zillions of missing includes and fixed handling of EOF.
Mentioned in doc/changes.

17 years agoFastbufs now work better on unseekable files.
Martin Mares [Sat, 10 Mar 2007 19:15:06 +0000 (20:15 +0100)]
Fastbufs now work better on unseekable files.

The seek callback returns success, bseek() and bsetpos() dies if seek
fails, bfilesize() returns -1 if the file is unseekable.

17 years agouse the new mkdist feature in cf/images
Pavel Charvat [Sat, 10 Mar 2007 12:53:25 +0000 (13:53 +0100)]
use the new mkdist feature in cf/images

17 years agoperl: Added Sherlock::Config::Usage string.
Pavel Charvat [Fri, 9 Mar 2007 15:54:07 +0000 (16:54 +0100)]
perl: Added Sherlock::Config::Usage string.

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Thu, 8 Mar 2007 12:09:43 +0000 (13:09 +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 [Thu, 8 Mar 2007 12:05:29 +0000 (13:05 +0100)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.10.1

17 years agoASSERT if now an expression
Pavel Charvat [Wed, 7 Mar 2007 15:24:22 +0000 (16:24 +0100)]
ASSERT if now an expression

17 years agoremoved EASSERT
Pavel Charvat [Wed, 7 Mar 2007 14:24:11 +0000 (15:24 +0100)]
removed EASSERT

17 years agoadded always evaluated EASSERT(x)
Pavel Charvat [Wed, 7 Mar 2007 13:10:12 +0000 (14:10 +0100)]
added always evaluated EASSERT(x)

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 agopartially updated free/mkdist
Pavel Charvat [Sat, 3 Mar 2007 13:12:11 +0000 (14:12 +0100)]
partially updated free/mkdist

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.