]> mj.ucw.cz Git - libucw.git/log
libucw.git
15 years agoLogging: Introduce LS_NUM_TYPES and use it.
Martin Mares [Fri, 20 Feb 2009 17:09:12 +0000 (18:09 +0100)]
Logging: Introduce LS_NUM_TYPES and use it.

15 years agoLogging: Let log_msg contain the current time as a timeval, too.
Martin Mares [Fri, 20 Feb 2009 17:08:46 +0000 (18:08 +0100)]
Logging: Let log_msg contain the current time as a timeval, too.

15 years agoLogging: Implemented rate limiting based on the Token Bucket Filter.
Martin Mares [Fri, 20 Feb 2009 16:41:47 +0000 (17:41 +0100)]
Logging: Implemented rate limiting based on the Token Bucket Filter.

So far, it is a simple FP implementation. Maybe I will switch to integers later.

15 years agoLogging: L_SIGHANDLER should be really safe.
Martin Mares [Fri, 20 Feb 2009 15:54:09 +0000 (16:54 +0100)]
Logging: L_SIGHANDLER should be really safe.

I have realized that many operations performed by the log stream code are
either unsafe to call from signal handlers, subject to races between the
main program and its signal handlers, or subject to deadlocks when the
ucwlib_lock is taken.

I have therefore changed the semantics of L_SIGHANDLER to provide only
the minimal logging service: All sighandler messages are now logged to
stderr (which usually follows the main log file) and they are limited
to 255 characters (so that no dynamic allocation is performed).

15 years agoLogging: Type-based filters and logging of type names are configurable.
Martin Mares [Thu, 19 Feb 2009 18:56:06 +0000 (19:56 +0100)]
Logging: Type-based filters and logging of type names are configurable.

15 years agoLogging: Fixed a bug in formatting of types.
Martin Mares [Thu, 19 Feb 2009 18:55:37 +0000 (19:55 +0100)]
Logging: Fixed a bug in formatting of types.

15 years agoLogging: Implemented message types.
Martin Mares [Thu, 19 Feb 2009 18:35:04 +0000 (19:35 +0100)]
Logging: Implemented message types.

15 years agoLogging: Fatality of logging errors is configurable.
Martin Mares [Thu, 19 Feb 2009 17:55:08 +0000 (18:55 +0100)]
Logging: Fatality of logging errors is configurable.

15 years agoLogging: The list of level names is consistent again.
Martin Mares [Thu, 19 Feb 2009 17:52:28 +0000 (18:52 +0100)]
Logging: The list of level names is consistent again.

I have moved the list to <ucw/lib.h>. It is needed only rarely, but at this
place we hopefully won't miss again it when changing the levels.

15 years agoLogging: Fixed formatting when we have neither log_title nor log_pid.
Martin Mares [Thu, 19 Feb 2009 17:51:38 +0000 (18:51 +0100)]
Logging: Fixed formatting when we have neither log_title nor log_pid.

15 years agoLogging: Report logging errors.
Martin Mares [Thu, 19 Feb 2009 17:48:23 +0000 (18:48 +0100)]
Logging: Report logging errors.

Introduce an analogue of the infamous "Error while printing error message" :-)

When logging to a stream fails, the error is reported to the default stream,
but there are two precautions against infinite loops and floods of error
messages. First, we never report an error when logging of an error fails.
Second, we report only the first failure of a stream.

It is also possible to request program termination when logging fails.

15 years agoLogging: Fixed a bug in log_close_all().
Martin Mares [Thu, 19 Feb 2009 17:03:14 +0000 (18:03 +0100)]
Logging: Fixed a bug in log_close_all().

Under some circumstances (involving loops in substream structure),
log_close_all() crashed, because a stream could have become freed
when removing its substreams.

I have changed log_close_all() to unlink all substreams first and
then proceed with deallocating memory.

The same problem can never occur in simple log_close_stream(),
because a stream that is a part of a loop never gets a use count of 0.

15 years agoLogging: Let log handlers return errno upon error.
Martin Mares [Thu, 19 Feb 2009 16:57:03 +0000 (17:57 +0100)]
Logging: Let log handlers return errno upon error.

15 years agoLogging: Adapted the `logger' utility to the new numbering of levels.
Martin Mares [Thu, 19 Feb 2009 16:27:18 +0000 (17:27 +0100)]
Logging: Adapted the `logger' utility to the new numbering of levels.

15 years agoLogging: Let the log level mask be configurable.
Martin Mares [Thu, 19 Feb 2009 16:22:44 +0000 (17:22 +0100)]
Logging: Let the log level mask be configurable.

15 years agoConfig parser: Document :reset.
Martin Mares [Thu, 19 Feb 2009 16:15:46 +0000 (17:15 +0100)]
Config parser: Document :reset.

15 years agoConfig parser: Added a new operation `:reset', which is a shorthand
Martin Mares [Thu, 19 Feb 2009 16:15:32 +0000 (17:15 +0100)]
Config parser: Added a new operation `:reset', which is a shorthand
for `:clear' and `:append'.

I am not too confident about the name ... does anybody have a better idea?

15 years agoConfig parser: Let `:append' and `:prepend' on bitmaps be equivalent to `:set'.
Martin Mares [Thu, 19 Feb 2009 15:51:57 +0000 (16:51 +0100)]
Config parser: Let `:append' and `:prepend' on bitmaps be equivalent to `:set'.

15 years agoLogging: Cleaned up documentation.
Martin Mares [Wed, 18 Feb 2009 16:58:52 +0000 (17:58 +0100)]
Logging: Cleaned up documentation.

15 years agoLogging: Let log_file() maintain proper use count of the stream.
Martin Mares [Mon, 16 Feb 2009 22:59:44 +0000 (23:59 +0100)]
Logging: Let log_file() maintain proper use count of the stream.

15 years agoLogging: Add log_configured() to set up the default log stream as configured.
Martin Mares [Mon, 16 Feb 2009 22:59:23 +0000 (23:59 +0100)]
Logging: Add log_configured() to set up the default log stream as configured.

15 years agoLogging: Precise timestamps and syslog PID flag are now configurable.
Martin Mares [Mon, 16 Feb 2009 22:55:44 +0000 (23:55 +0100)]
Logging: Precise timestamps and syslog PID flag are now configurable.

15 years agoLogging: Honor LSFMT_PID only when the PID is known.
Martin Mares [Mon, 16 Feb 2009 22:55:23 +0000 (23:55 +0100)]
Logging: Honor LSFMT_PID only when the PID is known.

15 years agoLogging: Let the default log format follow previous libucw defaults.
Martin Mares [Mon, 16 Feb 2009 22:55:07 +0000 (23:55 +0100)]
Logging: Let the default log format follow previous libucw defaults.

15 years agoLogging: Improved log-syslog.
Martin Mares [Mon, 16 Feb 2009 22:38:22 +0000 (23:38 +0100)]
Logging: Improved log-syslog.

It now accepts the name of the facility instead of the internal syslog code,
and also options for openlog(). Heavily commented on syslog deficiencies.

15 years agoLogging: Mention closing logfiles before exec in the docs.
Martin Mares [Mon, 16 Feb 2009 21:45:09 +0000 (22:45 +0100)]
Logging: Mention closing logfiles before exec in the docs.

15 years agoLogging: Let log_close_all() ASSERT that all references are gone.
Martin Mares [Sun, 15 Feb 2009 22:02:09 +0000 (23:02 +0100)]
Logging: Let log_close_all() ASSERT that all references are gone.

15 years agoLogging: A rough sketch of the logging configuration.
Martin Mares [Sun, 15 Feb 2009 21:59:49 +0000 (22:59 +0100)]
Logging: A rough sketch of the logging configuration.

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