]> mj.ucw.cz Git - libucw.git/log
libucw.git
15 years agoTypo in comment
Michal Vaner [Sun, 15 Feb 2009 12:15:44 +0000 (13:15 +0100)]
Typo in comment

15 years agoucw. docs: document single-line doc. comments
Michal Vaner [Sun, 15 Feb 2009 12:13:54 +0000 (13:13 +0100)]
ucw. docs: document single-line doc. comments

15 years agodoc. system: Allow single-line comments before def
Michal Vaner [Sun, 15 Feb 2009 12:10:00 +0000 (13:10 +0100)]
doc. system: Allow single-line comments before def

15 years agodoc. system: Escape hashes and underscores
Michal Vaner [Sun, 15 Feb 2009 11:02:44 +0000 (12:02 +0100)]
doc. system: Escape hashes and underscores

They were not properly escaped in symbol list, asciidoc did something
odd to them.

15 years agodoc. system: Do not backslash name...
Michal Vaner [Sun, 15 Feb 2009 10:55:32 +0000 (11:55 +0100)]
doc. system: Do not backslash name...

It puts the backslash there, not escapes the ellipsis.

15 years agodoc. system: detect function pointer variables
Michal Vaner [Sun, 15 Feb 2009 10:48:29 +0000 (11:48 +0100)]
doc. system: detect function pointer variables

15 years agoComment the magic extract functions
Michal Vaner [Sun, 15 Feb 2009 10:33:02 +0000 (11:33 +0100)]
Comment the magic extract functions

The regexps are hard to read, after some time. Comments what they do may
help parse them.

15 years agoLogging: Removed duplicate comments.
Martin Mares [Sat, 14 Feb 2009 23:33:58 +0000 (00:33 +0100)]
Logging: Removed duplicate comments.

A function should be documented at a single place, preferably in a header file.

Also removed a couple of comments at functions whose usage is perfectly
clear from their name.

15 years agoDocs: Fixed a typo introduced by the previous commit.
Martin Mares [Sat, 14 Feb 2009 23:21:55 +0000 (00:21 +0100)]
Docs: Fixed a typo introduced by the previous commit.

15 years agoMore documentation of <ucw/lib.h> and <ucw/config.h>.
Martin Mares [Sat, 14 Feb 2009 23:21:09 +0000 (00:21 +0100)]
More documentation of <ucw/lib.h> and <ucw/config.h>.

Still not complete.

15 years agoLogging: Fix log_close_all().
Martin Mares [Sat, 14 Feb 2009 22:25:33 +0000 (23:25 +0100)]
Logging: Fix log_close_all().

Closing of streams and freeing of memory has to be separate since we introduced
use counts.

15 years agoLogging: Documentation and minor cleanups of headers.
Martin Mares [Sat, 14 Feb 2009 21:21:58 +0000 (22:21 +0100)]
Logging: Documentation and minor cleanups of headers.

I have written complete documentation for the logging module. In the process,
I have performed a couple of minor cleanups:

   o  Internal declarations were moved to ucw/log-internal.h.
   o  Defines for "all" and "nothing" values have been removed, the customary
      constants `0' and `~0U' always work and they seem to be more readable.
   o  LSFLAG_SIGHANDLER gave its way to L_SIGHANDLER.
   o  The (unused) user flags field was replaced by a message type field;
      in the future, the streams will be able to filter the message based
      on a type.
   o  The `internal flags' field was renamed to `control bits'.

15 years agoLogging: The first bits of documentation.
Martin Mares [Sat, 14 Feb 2009 09:58:40 +0000 (10:58 +0100)]
Logging: The first bits of documentation.

I have also introduced a documentation chapter for <ucw/lib.h>, but only
logging functions are described so far.

log_switch() and friends have been moved to <ucw/log.h>, they are used rarely.

15 years agoLogging: Log file established log_file() is always dup'ed as stderr.
Martin Mares [Sat, 14 Feb 2009 09:23:19 +0000 (10:23 +0100)]
Logging: Log file established log_file() is always dup'ed as stderr.

Previously, stderr was set only at the first open and we forgot to re-dup
it after switching log files.

I have also removed the logic in do_log_reopen() which tried to keep the fd
of the log file stable. Except for having stderr follow the log file, this
was of no use.

15 years agoLogging: Added log_set_format() and log_default_stream().
Martin Mares [Sat, 14 Feb 2009 09:15:48 +0000 (10:15 +0100)]
Logging: Added log_set_format() and log_default_stream().

15 years agoLogging: Introduce inheritance of log_stream's.
Martin Mares [Fri, 13 Feb 2009 23:59:36 +0000 (00:59 +0100)]
Logging: Introduce inheritance of log_stream's.

The outbreak of various private fields (idata, pdata, udata) in struct log_stream
has gotten somewhat ugly, so I have replaced them by real private data allocated
after the standard portion of the log_stream structure.

log_new_stream() has gained a parameter telling it the size of the structure
to allocate. I have kept the recycler for the time being -- while saving allocations
is not worth the effort, it still nicely keeps the list of free stream ID's.

As idata are gone, the list of free items is now chained by log_stream->levels.

The default log stream no longer stores the fd explicitly, both log-file and
log-syslog keep private data in their own data structure extending log_stream.

15 years agoLogging: LOG_STREAM_DEFAULT is no longer needed.
Martin Mares [Fri, 13 Feb 2009 23:37:33 +0000 (00:37 +0100)]
Logging: LOG_STREAM_DEFAULT is no longer needed.

As we have un-constified log_stream_default, the casts are no longer
necessary, so I have removed the macro.

15 years agoLogging: Introduce use counts on streams.
Martin Mares [Fri, 13 Feb 2009 23:36:27 +0000 (00:36 +0100)]
Logging: Introduce use counts on streams.

It turned out to be quite inconvenient to have to close the substreams in
topological order. I have introduced use counts on all streams: A newly
created stream has use count of 1, whenever it is used as a substream,
the use count increases; when the count drops to 0, the stream is
automatically destroyed.

A slightly unpleasant side-effect is that the default log stream
can no longer be constant, since we modify its counter.

I have also extended log_rm_substream() to remove all substreams
when what==NULL. This is useful in log_close_stream() and also
in log_file().

15 years agoLogging: Improved documentation of struct log_stream.
Martin Mares [Fri, 13 Feb 2009 23:16:42 +0000 (00:16 +0100)]
Logging: Improved documentation of struct log_stream.

15 years agoLogging: Use LOG_STREAM_DEFAULT to refer to the default stream.
Martin Mares [Fri, 13 Feb 2009 23:08:17 +0000 (00:08 +0100)]
Logging: Use LOG_STREAM_DEFAULT to refer to the default stream.

This keeps the casts removing constness hidden.

15 years agoLogging: log_new_file() keeps its own copy of the path.
Martin Mares [Fri, 13 Feb 2009 23:04:07 +0000 (00:04 +0100)]
Logging: log_new_file() keeps its own copy of the path.

15 years agoLogging: Implemented log_switch().
Martin Mares [Fri, 13 Feb 2009 23:01:41 +0000 (00:01 +0100)]
Logging: Implemented log_switch().

15 years agoLogging: Introduced struct log_msg.
Martin Mares [Fri, 13 Feb 2009 18:47:00 +0000 (19:47 +0100)]
Logging: Introduced struct log_msg.

The logging handlers and filters are often interested in various properties
of the message in their raw form. I have modified the hooks to accept
a single pointer to `struct log_msg', which contains all needed information.

An immediate consequence is that we no longer need the calls to time() in
log-file, so a message is always timestamped at a single place when entering
the log machinery.

15 years agoLogging: Resurrected the log_file() interface.
Martin Mares [Fri, 13 Feb 2009 18:32:48 +0000 (19:32 +0100)]
Logging: Resurrected the log_file() interface.

It is still useful for programs that use just a single log file. It creates
a new file stream and connects it as a substream of stream #0, replacing
the previous substreams.

Also keep fd #2 as a duplicate of the log file fd, so that errors of exec'd
programs will not be lost.

15 years agoLogging: Rewritten the log-file module to implement log switching.
Martin Mares [Fri, 13 Feb 2009 18:20:47 +0000 (19:20 +0100)]
Logging: Rewritten the log-file module to implement log switching.

  o  log-file is a cross between the old libucw code and Tom's version.
  o  Introduced log_stream->udata for backend's flags.
  o  log_fork() moved to log.c.
  o  log_switch() and log_file() are not implemented yet.

15 years agoLogging: Cleanup of log-syslog.c.
Martin Mares [Fri, 13 Feb 2009 17:26:53 +0000 (18:26 +0100)]
Logging: Cleanup of log-syslog.c.

  o  Use a static array instead of switch() to translate log levels.
  o  Coding style and namespace cleanups.

15 years agoLogging: Fixed a silly bug in my cleanup of log_new_stream().
Martin Mares [Fri, 13 Feb 2009 17:25:56 +0000 (18:25 +0100)]
Logging: Fixed a silly bug in my cleanup of log_new_stream().

15 years agoLogging: Clean up log-stream.c.
Martin Mares [Fri, 13 Feb 2009 17:12:39 +0000 (18:12 +0100)]
Logging: Clean up log-stream.c.

  o  Simplified log_new_stream() -- recycling of closed streams
     and allocation of new streams are two different code paths now.
  o  The calls to log_init_module() need not be conditional.
  o  Use clist_init() for initializing clists.
  o  The usual coding style and namespace cleanups.

Also added an explanatory comment about the uninitialized state to log.c.

15 years agoLogging: Cleanup of log.c
Martin Mares [Fri, 13 Feb 2009 16:52:31 +0000 (17:52 +0100)]
Logging: Cleanup of log.c

   o  log_progname[] moved to log_init()
   o  Both vmsg() and log_pass_msg() now allocate the buffer on the stack
      if the message is smaller than 256 bytes.
   o  log_pid is used instead of repeated calls to getpid()
   o  sizeof(array) always preferred over repeated constants
   o  Many coding style cleanups to make the old and new code fit together.
   o  Namespace cleanups
   o  Updated comments

15 years agoLogging: Use `uns' instead of `u32' to pass flags.
Martin Mares [Fri, 13 Feb 2009 16:48:38 +0000 (17:48 +0100)]
Logging: Use `uns' instead of `u32' to pass flags.

15 years agoLogging: The Great Shuffle
Martin Mares [Fri, 13 Feb 2009 16:22:43 +0000 (17:22 +0100)]
Logging: The Great Shuffle

I have split the new logging machinery to several files and started merging
it with the old logger.

The intention behind the split is that programs which do not create their
own log streams should include only <ucw/lib.h> (which brings only the minimum
set of symbols) and link only a minimalistic library module, while the programs
in need of the full power of the new logger include <ucw/log.h> and link with
all log-* modules.

I have also started renaming `ls_*' to `log_*', but so far only at a couple
of places.

(Beware, most parts of the trees are currently left in an uncompilable
state. Use `make obj/ucw/log-t' for a working test program.)

15 years agoLogging: Coding style cleanups.
Martin Mares [Thu, 12 Feb 2009 23:07:30 +0000 (00:07 +0100)]
Logging: Coding style cleanups.

Also removed a couple of unused variables.

15 years agoLogging: Added a toy main() and plugged in the Makefile.
Martin Mares [Thu, 12 Feb 2009 22:57:49 +0000 (23:57 +0100)]
Logging: Added a toy main() and plugged in the Makefile.

15 years agoLogging: Fixed a typo.
Martin Mares [Thu, 12 Feb 2009 22:57:27 +0000 (23:57 +0100)]
Logging: Fixed a typo.

15 years agoLogging: Whitespace cleanup before I start editing.
Martin Mares [Thu, 12 Feb 2009 22:49:03 +0000 (23:49 +0100)]
Logging: Whitespace cleanup before I start editing.

15 years agoLogging: Added the initial implementation of log streams
Martin Mares [Thu, 12 Feb 2009 22:48:29 +0000 (23:48 +0100)]
Logging: Added the initial implementation of log streams
by Tomas Gavenciak <gavento@ucw.cz>.

15 years agoImprove documentation of cf_reload().
Martin Mares [Thu, 12 Feb 2009 22:34:41 +0000 (23:34 +0100)]
Improve documentation of cf_reload().

15 years agoLibUCW: Let cf_reload() reload all configuration files.
Martin Mares [Mon, 9 Feb 2009 20:04:13 +0000 (21:04 +0100)]
LibUCW: Let cf_reload() reload all configuration files.

When a program is started with `-C' and/or `-S' switches to override the
default configuration and cf_reload() was called afterwards, it destroyed
the custom configuration and loaded the default instead.

To avoid this problem, I have added a list of configuration entries which
remembers all config files loaded and all configuration fragments executed,
as long as they are performed in the `postpone_commit' mode. The reloader
then re-executes all these operations and it records them in the new pool.

15 years agoLibUCW: Added a function for assigning lists.
Martin Mares [Mon, 9 Feb 2009 20:02:41 +0000 (21:02 +0100)]
LibUCW: Added a function for assigning lists.

15 years agoFixed constness warnings in conf-test.
Martin Mares [Mon, 9 Feb 2009 19:38:03 +0000 (20:38 +0100)]
Fixed constness warnings in conf-test.

15 years agoBuild: Let CONFIG_SRC_DIR default to CONFIG_DIR.
Martin Mares [Mon, 9 Feb 2009 19:34:45 +0000 (20:34 +0100)]
Build: Let CONFIG_SRC_DIR default to CONFIG_DIR.

15 years agoRemoved CONFIG_DIR, which got introduced by a mistake in the merge of dev-lib.
Martin Mares [Mon, 9 Feb 2009 19:32:18 +0000 (20:32 +0100)]
Removed CONFIG_DIR, which got introduced by a mistake in the merge of dev-lib.

15 years agochanged OFFSETOF again
Robert Spalek [Thu, 5 Feb 2009 16:01:00 +0000 (08:01 -0800)]
changed OFFSETOF again

15 years agofix OFFSET_OF on 64-bit architectures
Robert Spalek [Thu, 5 Feb 2009 02:31:03 +0000 (18:31 -0800)]
fix OFFSET_OF on 64-bit architectures

15 years agoMerge branch 'master' into dev-lib
Robert Spalek [Wed, 4 Feb 2009 17:22:34 +0000 (09:22 -0800)]
Merge branch 'master' into dev-lib

Conflicts:
build/Maketop
ucw/perl/UCW/Configure/C.pm

15 years agomake page_alloc(0) work
Robert Spalek [Wed, 4 Feb 2009 06:48:47 +0000 (22:48 -0800)]
make page_alloc(0) work

15 years agofix partmap_load(size=0), because mmap fails on that since Linux 2.6.12
Robert Spalek [Wed, 4 Feb 2009 05:27:16 +0000 (21:27 -0800)]
fix partmap_load(size=0), because mmap fails on that since Linux 2.6.12

15 years agofix partmap_load() on amd64 with CONFIG_PARTMAP_IS_MMAP
Robert Spalek [Wed, 4 Feb 2009 05:09:27 +0000 (21:09 -0800)]
fix partmap_load() on amd64 with CONFIG_PARTMAP_IS_MMAP

I don't understand how this could ever have worked.  the left-hand side is -1
and is never larger than right-hand side when comparing signed values.

15 years agoUCW mainloop: Accumulate the total time spent in poll() into main_idle_time.
Pavel Charvat [Thu, 29 Jan 2009 12:53:02 +0000 (13:53 +0100)]
UCW mainloop: Accumulate the total time spent in poll() into main_idle_time.

15 years agoURLs: Fixed some broken comparisons of possibly signed chars.
Pavel Charvat [Wed, 28 Jan 2009 01:32:02 +0000 (02:32 +0100)]
URLs: Fixed some broken comparisons of possibly signed chars.

(It was causing failures in Shepherd.)

15 years agoFixed accidentally modified files during the last merge.
Pavel Charvat [Tue, 27 Jan 2009 23:52:06 +0000 (00:52 +0100)]
Fixed accidentally modified files during the last merge.

15 years agoMerge branch 'v3.12.4'
Pavel Charvat [Tue, 27 Jan 2009 23:48:36 +0000 (00:48 +0100)]
Merge branch 'v3.12.4'

Conflicts:

centrum/cz/cf/watson
centrum/cz/doc/provoz.wiki
lib/Makefile
search/refs.c
ucw/default.cfg
ucw/perl/UCW/Configure/C.pm

15 years agoMoved setting of CONFIG_DIR to defaults.cfg.
Martin Mares [Sun, 25 Jan 2009 15:57:04 +0000 (16:57 +0100)]
Moved setting of CONFIG_DIR to defaults.cfg.

15 years agoUCW Configure: Evaluate INSTALL_xxx at time of configuration.
Martin Mares [Sun, 25 Jan 2009 15:54:52 +0000 (16:54 +0100)]
UCW Configure: Evaluate INSTALL_xxx at time of configuration.

It is often necessary to substitute the paths to C sources and config
files, so they must be fully expanded and free of constructs specific
for the makefile language.

Also, we need CONFIG_DIR at the time of configuration.

15 years agoclists: improve doc.
Martin Mares [Sun, 25 Jan 2009 13:08:03 +0000 (14:08 +0100)]
clists: improve doc.

15 years agoSHA1: Added stream interface for the HMAC, too.
Martin Mares [Sun, 25 Jan 2009 12:55:14 +0000 (13:55 +0100)]
SHA1: Added stream interface for the HMAC, too.

15 years agoucw docs: language tweak
Michal Vaner [Fri, 16 Jan 2009 12:00:00 +0000 (13:00 +0100)]
ucw docs: language tweak

15 years agoucw docs: hashtables
Michal Vaner [Sun, 11 Jan 2009 21:53:05 +0000 (22:53 +0100)]
ucw docs: hashtables

15 years agoRename CONFIG_LANG to CONFIG_LIBLANG
Michal Vaner [Tue, 16 Dec 2008 13:39:51 +0000 (14:39 +0100)]
Rename CONFIG_LANG to CONFIG_LIBLANG

The switch used to enable compilation of liblang was colliding with one
of older switches to enable some of its functionality.

15 years agoFix config directory names in build system
Michal Vaner [Tue, 16 Dec 2008 13:53:49 +0000 (14:53 +0100)]
Fix config directory names in build system

The destination directory does not have to have the same name as the
source one and the source one does not have to be 'cf' all the time (in
the libsonly package, it isn't).

15 years agoucw docs: external sorter
Michal Vaner [Sun, 14 Dec 2008 16:11:23 +0000 (17:11 +0100)]
ucw docs: external sorter

15 years agoucw docs: Array sorter
Michal Vaner [Sun, 14 Dec 2008 13:29:29 +0000 (14:29 +0100)]
ucw docs: Array sorter

15 years agoucw docs: Simple array sorter
Michal Vaner [Sun, 14 Dec 2008 10:17:28 +0000 (11:17 +0100)]
ucw docs: Simple array sorter

15 years agoLibucw: Implemented HEAP_DECREASE. Fixed description of HEAP_INSERT.
Pavel Charvat [Wed, 10 Dec 2008 12:09:51 +0000 (13:09 +0100)]
Libucw: Implemented HEAP_DECREASE. Fixed description of HEAP_INSERT.

15 years agoFixed a bug in mp_printf_append(). Thanks to Dan.
Pavel Charvat [Tue, 2 Dec 2008 11:50:59 +0000 (12:50 +0100)]
Fixed a bug in mp_printf_append(). Thanks to Dan.

15 years agoRemove left-over NOP code
Michal Vaner [Sun, 30 Nov 2008 16:45:57 +0000 (17:45 +0100)]
Remove left-over NOP code

15 years agoBetter error message for missing fb-direct
Michal Vaner [Sun, 30 Nov 2008 16:08:13 +0000 (17:08 +0100)]
Better error message for missing fb-direct

Tells how it got disabled.

15 years agoBetter names for direct IO switches
Michal Vaner [Sun, 30 Nov 2008 16:00:29 +0000 (17:00 +0100)]
Better names for direct IO switches

CONFIG_DIRECT_IO to allow/disallow use of direct IO. Auto-disabled on
darwin.

CONFIG_UCW_FB_DIRECT to include/exclude fb-direct. Available only with
CONFIG_DIRECT_IO and CONFIG_UCW_THREADS.

15 years agoDebug utilities have O_DIRECT hardcoded manually
Michal Vaner [Sun, 30 Nov 2008 14:55:22 +0000 (15:55 +0100)]
Debug utilities have O_DIRECT hardcoded manually

15 years agoCosmetics.
Martin Mares [Sun, 30 Nov 2008 13:49:04 +0000 (14:49 +0100)]
Cosmetics.

15 years agoHandle when O_DIRECT is not available
Michal Vaner [Sun, 30 Nov 2008 13:10:41 +0000 (14:10 +0100)]
Handle when O_DIRECT is not available

15 years agoExport fb-direct functions only when turned on
Michal Vaner [Sun, 30 Nov 2008 13:08:06 +0000 (14:08 +0100)]
Export fb-direct functions only when turned on

15 years agoTurn off CONFIG_DIRECT when needed
Michal Vaner [Sun, 30 Nov 2008 12:30:47 +0000 (13:30 +0100)]
Turn off CONFIG_DIRECT when needed

15 years agoAdded switch CONFIG_DIRECT
Michal Vaner [Sun, 30 Nov 2008 11:30:08 +0000 (12:30 +0100)]
Added switch CONFIG_DIRECT

Turns on and off if fb-direct is compiled.

15 years agoDoc. system: remove doc. symlinks upon clean
Michal Vaner [Sun, 30 Nov 2008 11:24:52 +0000 (12:24 +0100)]
Doc. system: remove doc. symlinks upon clean

15 years agoRevert "Fail when O_DIRECT requested on Darwin"
Michal Vaner [Sun, 30 Nov 2008 10:34:10 +0000 (11:34 +0100)]
Revert "Fail when O_DIRECT requested on Darwin"

This reverts commit 484b0b2bba9332f2a186d05222b03d013cb0630a.

It made no sense.

15 years agofix installer on Darwin
Robert Spalek [Sat, 29 Nov 2008 01:10:03 +0000 (17:10 -0800)]
fix installer on Darwin

cp doesn't support -a, so I've expanded it in terms of its equivalent
parameters.  sorry for all these obstructions...

15 years agofix building shared libraries on Darwin
Robert Spalek [Sat, 29 Nov 2008 01:06:58 +0000 (17:06 -0800)]
fix building shared libraries on Darwin

this is a bit of a hack, but it shouldn't have any influence on Linux

15 years agoFail when O_DIRECT requested on Darwin
Michal Vaner [Fri, 28 Nov 2008 13:13:24 +0000 (14:13 +0100)]
Fail when O_DIRECT requested on Darwin

Darwin does not support direct IO.

15 years agomake Sherlock compilable on Darwin without hacks due to missing direct IO
Robert Spalek [Thu, 27 Nov 2008 15:51:41 +0000 (07:51 -0800)]
make Sherlock compilable on Darwin without hacks due to missing direct IO

I define O_DIRECT flag to be 0 on Darwin, hence enabling direct IO will
have no effect.  This ignoring will be silent.  A clean solution (with
failure when enabled by the user) would be much more complicated and I just
wanna make Sherlock compilable on Darwin for desktop/debugging usage.

15 years agoRemove the random text that got somehow inside
Michal Vaner [Fri, 28 Nov 2008 12:29:25 +0000 (13:29 +0100)]
Remove the random text that got somehow inside

15 years agoucw docs: lizard_decompress_save update
Michal Vaner [Fri, 28 Nov 2008 12:21:19 +0000 (13:21 +0100)]
ucw docs: lizard_decompress_save update

Describes more clearly, why it exists and that it is not reentrant.

15 years agoclean up linking -lpcre to libucw
Robert Spalek [Thu, 27 Nov 2008 17:58:10 +0000 (09:58 -0800)]
clean up linking -lpcre to libucw

15 years agofixing my previous patch according to MJ's comments
Robert Spalek [Thu, 27 Nov 2008 16:37:06 +0000 (08:37 -0800)]
fixing my previous patch according to MJ's comments

15 years agomake regex and asciidoc work on Darwin without hacking
Robert Spalek [Thu, 27 Nov 2008 16:24:52 +0000 (08:24 -0800)]
make regex and asciidoc work on Darwin without hacking

- use $(PREFIX) when accessing files in /etc/asciidoc/...
  on Darwin, we use /sw
- remove obsolete reference to internal regex library
- configure script makes sure the BSD library isn't used on Darwin due to
  incompatibility
- document dependency on asciidoc

15 years agoucw docs: The lizard compression algorithm
Michal Vaner [Thu, 27 Nov 2008 16:19:17 +0000 (17:19 +0100)]
ucw docs: The lizard compression algorithm

15 years agomake Sherlock compilable on Darwin without hacks due to missing direct IO
Robert Spalek [Thu, 27 Nov 2008 15:51:41 +0000 (07:51 -0800)]
make Sherlock compilable on Darwin without hacks due to missing direct IO

I define O_DIRECT flag to be 0 on Darwin, hence enabling direct IO will
have no effect.  This ignoring will be silent.  A clean solution (with
failure when enabled by the user) would be much more complicated and I just
wanna make Sherlock compilable on Darwin for desktop/debugging usage.

15 years agoallow libucw to depend on other libraries
Robert Spalek [Thu, 27 Nov 2008 15:39:50 +0000 (07:39 -0800)]
allow libucw to depend on other libraries

I need it when CONFIG_PCRE is enabled.  After the internal copy of a
reliable regexp library has been deleted from Sherlock source codes, I
cannot compile Sherlock on Darwin with the default libraries.  Therefore I
have installed pcre, but it isn't automatically linked to everything yet.

15 years agoMerge branch 'dev-lib'
Martin Mares [Mon, 24 Nov 2008 09:19:03 +0000 (10:19 +0100)]
Merge branch 'dev-lib'

15 years agoFix comments
Michal Vaner [Mon, 24 Nov 2008 09:03:56 +0000 (10:03 +0100)]
Fix comments

15 years agoAnother attempt to do the fix right
Michal Vaner [Sun, 23 Nov 2008 20:14:53 +0000 (21:14 +0100)]
Another attempt to do the fix right

15 years agoOptions to include separate libraries in build
Michal Vaner [Sun, 23 Nov 2008 16:31:50 +0000 (17:31 +0100)]
Options to include separate libraries in build

Added new options CONFIG_CHARSET and CONFIG_SHERLOCK_LIB to makefiles &
configure. CONFIG_UCW_ONLY now works only as a shortcut for excluding
all other libraries.

Updated libs-only distribution and libsonly custom to use these
switches.

15 years agoMake the tests work with CONFIG_UCW_ONLY
Michal Vaner [Sun, 23 Nov 2008 13:28:17 +0000 (14:28 +0100)]
Make the tests work with CONFIG_UCW_ONLY

15 years agoFix kmp-test in libs-only distribution
Michal Vaner [Sun, 23 Nov 2008 13:15:47 +0000 (14:15 +0100)]
Fix kmp-test in libs-only distribution

15 years agoFix tests in libs-only distribution
Michal Vaner [Sun, 23 Nov 2008 09:46:57 +0000 (10:46 +0100)]
Fix tests in libs-only distribution

15 years agoAdded an ability to build static position-independent version of libucw.
Martin Mares [Fri, 21 Nov 2008 19:54:00 +0000 (20:54 +0100)]
Added an ability to build static position-independent version of libucw.

This is useful when you want to link libucw statically to a shared
library.

15 years agoReleasing the v3.99.1 library packages.
Martin Mares [Fri, 21 Nov 2008 19:50:17 +0000 (20:50 +0100)]
Releasing the v3.99.1 library packages.

15 years agoUse CONFIG_DIR in the source tree, too.
Martin Mares [Fri, 21 Nov 2008 19:30:04 +0000 (20:30 +0100)]
Use CONFIG_DIR in the source tree, too.

This breaks the stand-alone libucw, but I will fix it in a moment.

15 years agoShared library building features from Ego.
Martin Mares [Fri, 21 Nov 2008 19:24:53 +0000 (20:24 +0100)]
Shared library building features from Ego.

(1) SO_RUNDIR can be used to choose the place in the run tree where
    the .so should be installed.
(2) lib-flags is used, so shared libs can directly depend on other shared
    libs if needed. (This is useful for building shared libs that do not
    use pkgconfig themselves -- e.g., Perl/Python modules.)

15 years agoDo not delete things named `core'.
Martin Mares [Fri, 21 Nov 2008 19:13:01 +0000 (20:13 +0100)]
Do not delete things named `core'.

For example, they might be Python modules :)