]> mj.ucw.cz Git - libucw.git/log
libucw.git
11 years agoHashtable: Added an option for lookup to detect newly created items
Tomas Valla [Wed, 5 Sep 2012 14:52:11 +0000 (16:52 +0200)]
Hashtable: Added an option for lookup to detect newly created items

11 years agoLizard: Fixed a typo ("occured" -> "occurred')
Martin Mares [Fri, 12 Oct 2012 17:53:25 +0000 (19:53 +0200)]
Lizard: Fixed a typo ("occured" -> "occurred')

11 years agoslists: The behaviour of slist_remove_head now mimics clist_remove_head
Tomas Valla [Wed, 5 Sep 2012 09:15:15 +0000 (11:15 +0200)]
slists: The behaviour of slist_remove_head now mimics clist_remove_head

11 years agoFastbufs: Fixed btell() in writeable fbbuf.
Pavel Charvat [Mon, 30 Jul 2012 13:47:55 +0000 (15:47 +0200)]
Fastbufs: Fixed btell() in writeable fbbuf.

11 years agoDaemon: added missing includes
Jan 'Moskyt' Matejka [Wed, 25 Jul 2012 12:29:02 +0000 (14:29 +0200)]
Daemon: added missing includes

11 years agoDoc: Mention fb_multi in the release notes
Martin Mares [Tue, 24 Jul 2012 18:23:48 +0000 (20:23 +0200)]
Doc: Mention fb_multi in the release notes

11 years agoFastbuf: fbmulti: fixes from MJ
Jan 'Moskyt' Matejka [Mon, 23 Jul 2012 09:40:51 +0000 (11:40 +0200)]
Fastbuf: fbmulti: fixes from MJ

11 years agoFastbuf: fbmulti simplification
Jan 'Moskyt' Matejka [Thu, 19 Jul 2012 13:23:02 +0000 (15:23 +0200)]
Fastbuf: fbmulti simplification

11 years agoFastbuf: fbmulti: static clist + FBMULTI() killing
Jan 'Moskyt' Matejka [Thu, 19 Jul 2012 08:03:23 +0000 (10:03 +0200)]
Fastbuf: fbmulti: static clist + FBMULTI() killing

11 years agoFastbuf: fbmulti: O(N^2) multiappend fixed
Jan 'Moskyt' Matejka [Thu, 19 Jul 2012 07:59:52 +0000 (09:59 +0200)]
Fastbuf: fbmulti: O(N^2) multiappend fixed

11 years agoFastbuf: fbmulti: allow_close and flatten removed
Jan 'Moskyt' Matejka [Thu, 19 Jul 2012 07:39:31 +0000 (09:39 +0200)]
Fastbuf: fbmulti: allow_close and flatten removed

11 years agoFastbuf: fbmulti now uses transparently the underlying buffer
Jan 'Moskyt' Matejka [Mon, 16 Jul 2012 15:25:30 +0000 (17:25 +0200)]
Fastbuf: fbmulti now uses transparently the underlying buffer

11 years agoFastbuf: fbmulti_remove
Jan 'Moskyt' Matejka [Mon, 16 Jul 2012 09:27:28 +0000 (11:27 +0200)]
Fastbuf: fbmulti_remove

11 years agoFastbuf: fbmulti: *'s and whitespace
Jan 'Moskyt' Matejka [Wed, 11 Jul 2012 14:46:44 +0000 (16:46 +0200)]
Fastbuf: fbmulti: *'s and whitespace

11 years agoFastbuf: whitespace in fbmulti
Jan 'Moskyt' Matejka [Wed, 11 Jul 2012 14:30:35 +0000 (16:30 +0200)]
Fastbuf: whitespace in fbmulti

11 years agoFastbuf: style fixes in fbmulti
Jan 'Moskyt' Matejka [Wed, 11 Jul 2012 14:10:05 +0000 (16:10 +0200)]
Fastbuf: style fixes in fbmulti

11 years agoFastbuf: fbmulti_flatten + doc
Jan 'Moskyt' Matejka [Wed, 11 Jul 2012 13:01:37 +0000 (15:01 +0200)]
Fastbuf: fbmulti_flatten + doc

11 years agoFastbuf: fbmulti_close
Jan 'Moskyt' Matejka [Mon, 9 Jul 2012 15:15:30 +0000 (17:15 +0200)]
Fastbuf: fbmulti_close

11 years agoFastbuf: fbmulti nested test and apropriate fixes
Jan 'Moskyt' Matejka [Mon, 9 Jul 2012 14:49:21 +0000 (16:49 +0200)]
Fastbuf: fbmulti nested test and apropriate fixes

11 years agoFastbuf: fbmulti allows reading of one subbuf more times
Jan 'Moskyt' Matejka [Mon, 9 Jul 2012 13:42:30 +0000 (15:42 +0200)]
Fastbuf: fbmulti allows reading of one subbuf more times

11 years agoFastbuf: fbmulti backend
Jan 'Moskyt' Matejka [Wed, 4 Jul 2012 14:17:59 +0000 (16:17 +0200)]
Fastbuf: fbmulti backend

11 years agoFastbuf: fbbuf_seek bugfix
Jan 'Moskyt' Matejka [Mon, 9 Jul 2012 13:10:12 +0000 (15:10 +0200)]
Fastbuf: fbbuf_seek bugfix

11 years agoConfig: Allow relative top-level sections
Martin Mares [Wed, 18 Jul 2012 21:32:10 +0000 (23:32 +0200)]
Config: Allow relative top-level sections

11 years agosetproctitle: Copy all arguments in setproctitle_init()
Martin Mares [Wed, 18 Jul 2012 16:46:09 +0000 (18:46 +0200)]
setproctitle: Copy all arguments in setproctitle_init()

Otherwise, values of command-line arguments, which are not explicitly
copied, can be corrupted by setproctitle().

11 years agoDaemon: Added DAEMON_FLAG_SIMULATE
Martin Mares [Wed, 18 Jul 2012 12:23:52 +0000 (14:23 +0200)]
Daemon: Added DAEMON_FLAG_SIMULATE

11 years agoConfigure: Turned off -fgnu89-inline
Martin Mares [Wed, 18 Jul 2012 12:15:47 +0000 (14:15 +0200)]
Configure: Turned off -fgnu89-inline

No current code requires it any longer.

11 years agoConfigure: Turned off -Winline
Martin Mares [Wed, 18 Jul 2012 12:15:26 +0000 (14:15 +0200)]
Configure: Turned off -Winline

Recent versions of GCC perform inlining reasonably well, no need to warn.

11 years agoFastbuf: Removed useless inline
Martin Mares [Wed, 18 Jul 2012 12:14:35 +0000 (14:14 +0200)]
Fastbuf: Removed useless inline

11 years agoDaemon: Added DAEMON_STATUS_STALE
Martin Mares [Wed, 18 Jul 2012 11:41:20 +0000 (13:41 +0200)]
Daemon: Added DAEMON_STATUS_STALE

11 years agoConfig: daemon-helper is not compiled by default any longer
Martin Mares [Wed, 18 Jul 2012 10:56:24 +0000 (12:56 +0200)]
Config: daemon-helper is not compiled by default any longer

11 years agoDoc: Mentioned daemon and signal helpers in release notes
Martin Mares [Wed, 18 Jul 2012 10:20:53 +0000 (12:20 +0200)]
Doc: Mentioned daemon and signal helpers in release notes

11 years agoDaemon: The old daemon-helper has been declared obsolete
Martin Mares [Wed, 18 Jul 2012 10:18:44 +0000 (12:18 +0200)]
Daemon: The old daemon-helper has been declared obsolete

11 years agoDaemon: Added a new daemon-control utility
Martin Mares [Wed, 18 Jul 2012 10:15:58 +0000 (12:15 +0200)]
Daemon: Added a new daemon-control utility

11 years agoDaemon: Better toy daemon
Martin Mares [Wed, 18 Jul 2012 10:15:36 +0000 (12:15 +0200)]
Daemon: Better toy daemon

11 years agoProcess: Let format_exit_status() name the lethal signal
Martin Mares [Wed, 18 Jul 2012 10:14:53 +0000 (12:14 +0200)]
Process: Let format_exit_status() name the lethal signal

11 years agoDaemon: Bug fixes and signal defaults
Martin Mares [Wed, 18 Jul 2012 10:14:34 +0000 (12:14 +0200)]
Daemon: Bug fixes and signal defaults

11 years agoSignals: Document differences against strsignal()
Martin Mares [Wed, 18 Jul 2012 09:45:44 +0000 (11:45 +0200)]
Signals: Document differences against strsignal()

11 years agoSignals: Documentation
Martin Mares [Wed, 18 Jul 2012 09:32:44 +0000 (11:32 +0200)]
Signals: Documentation

11 years agoDoc: Added Daemon helpers to the index
Martin Mares [Wed, 18 Jul 2012 09:27:07 +0000 (11:27 +0200)]
Doc: Added Daemon helpers to the index

11 years agoDaemon: Let daemon actions be numbered from 1
Martin Mares [Wed, 18 Jul 2012 09:15:10 +0000 (11:15 +0200)]
Daemon: Let daemon actions be numbered from 1

This way, 0 can be used as "undefined".

11 years agoSignals: Added tests
Martin Mares [Wed, 18 Jul 2012 09:14:52 +0000 (11:14 +0200)]
Signals: Added tests

11 years agoSignals: Added a module with a list of signals
Martin Mares [Wed, 18 Jul 2012 09:12:12 +0000 (11:12 +0200)]
Signals: Added a module with a list of signals

11 years agoDaemon: Split to daemonization and control parts
Martin Mares [Wed, 18 Jul 2012 08:39:09 +0000 (10:39 +0200)]
Daemon: Split to daemonization and control parts

11 years agoDaemon: daemon_control() finished
Martin Mares [Wed, 18 Jul 2012 08:36:07 +0000 (10:36 +0200)]
Daemon: daemon_control() finished

11 years agoDaemon: Basics of daemon control (incomplete)
Martin Mares [Tue, 17 Jul 2012 22:01:01 +0000 (00:01 +0200)]
Daemon: Basics of daemon control (incomplete)

11 years agoDaemon: Reverted to one-level locking and added bits of docs
Martin Mares [Tue, 17 Jul 2012 20:50:50 +0000 (22:50 +0200)]
Daemon: Reverted to one-level locking and added bits of docs

11 years agoDaemon: Documentation: Example and description of the locking protocol
Martin Mares [Tue, 17 Jul 2012 19:53:46 +0000 (21:53 +0200)]
Daemon: Documentation: Example and description of the locking protocol

11 years agoDaemon: More documentation
Martin Mares [Tue, 17 Jul 2012 14:06:31 +0000 (16:06 +0200)]
Daemon: More documentation

11 years agoDaemon: Correct locking
Martin Mares [Tue, 17 Jul 2012 13:47:37 +0000 (15:47 +0200)]
Daemon: Correct locking

We have to use flock() instead of fcntl locks, because we want to
share the lock on a shared file descriptor.

11 years agoDaemon: Preliminary documentation
Martin Mares [Thu, 12 Jul 2012 16:44:57 +0000 (18:44 +0200)]
Daemon: Preliminary documentation

11 years agoDaemon: An attempt at daemonization helper
Martin Mares [Thu, 12 Jul 2012 16:38:12 +0000 (18:38 +0200)]
Daemon: An attempt at daemonization helper

11 years agoResources can be allocated from static memory buffers
Pavel Charvat [Wed, 20 Jun 2012 10:51:59 +0000 (12:51 +0200)]
Resources can be allocated from static memory buffers

11 years agoFastbuf socket spout fixed
Jan 'Moskyt' Matejka [Wed, 25 Apr 2012 07:57:45 +0000 (09:57 +0200)]
Fastbuf socket spout fixed

11 years agostrtonum: Added small bits of documentation
Tomas Valla [Wed, 11 Apr 2012 12:28:49 +0000 (14:28 +0200)]
strtonum: Added small bits of documentation

12 years agoSorter debugging tools can be compiled again
Martin Mares [Wed, 9 May 2012 09:00:10 +0000 (11:00 +0200)]
Sorter debugging tools can be compiled again

12 years agoRelease notes on conf changes
Martin Mares [Sun, 29 Apr 2012 12:12:06 +0000 (14:12 +0200)]
Release notes on conf changes

12 years agoConf: Explain impossibility of section sharing
Martin Mares [Sun, 29 Apr 2012 11:53:24 +0000 (13:53 +0200)]
Conf: Explain impossibility of section sharing

12 years agoConf: Decoupled cf_stack_done() from committing
Martin Mares [Sun, 29 Apr 2012 11:40:06 +0000 (13:40 +0200)]
Conf: Decoupled cf_stack_done() from committing

The conditional commit machinery and grouping of configuration files
have been made independent on the stack and moved to conf-input.c.

Also, stack is now initialized and destroyed in parse_fastbuf(),
so unterminated braces are reported properly, including the name
of the file.

12 years agoConf: Renamed cf_free_context() to cf_delete_context()
Martin Mares [Sun, 29 Apr 2012 11:25:21 +0000 (13:25 +0200)]
Conf: Renamed cf_free_context() to cf_delete_context()

This way, it is consistent with the other LibUCW modules.

12 years agoConf: Cleaned up use of journal
Martin Mares [Sun, 29 Apr 2012 11:22:52 +0000 (13:22 +0200)]
Conf: Cleaned up use of journal

Introduced a new function cf_revert() for reverting the configuration
to its pristine state. It is automatically called upon cf_free_context().

Also, everything except cf_reload() now should work with journalling
disabled. In this case, nothing is ever rolled back.

12 years agoConf: Updated conf-test
Martin Mares [Sun, 29 Apr 2012 09:52:53 +0000 (11:52 +0200)]
Conf: Updated conf-test

12 years agoConf: Config documentation
Martin Mares [Sat, 28 Apr 2012 23:32:37 +0000 (01:32 +0200)]
Conf: Config documentation

12 years agoConf: Introduced cf_open_group() and cf_close_group()
Martin Mares [Sat, 28 Apr 2012 23:32:05 +0000 (01:32 +0200)]
Conf: Introduced cf_open_group() and cf_close_group()

All grouping inside cf_getopt() uses it, too.

12 years agoConf: Split off everything related to cf_getopt()
Martin Mares [Sat, 28 Apr 2012 22:00:00 +0000 (00:00 +0200)]
Conf: Split off everything related to cf_getopt()

<ucw/getopt.h> now contains only cf_getopt() and related settings.
All high-level configuration functions have been moved to <ucw/conf.h>.

12 years agoConf: Introduced cf_set_journalling()
Martin Mares [Sat, 28 Apr 2012 21:38:22 +0000 (23:38 +0200)]
Conf: Introduced cf_set_journalling()

12 years agoConf: Removed a debugging relic
Martin Mares [Sat, 28 Apr 2012 21:31:32 +0000 (23:31 +0200)]
Conf: Removed a debugging relic

12 years agoConf: Made the default context static
Martin Mares [Sat, 28 Apr 2012 21:29:56 +0000 (23:29 +0200)]
Conf: Made the default context static

This involves some bits of magic with constructor priorities
and a hack, which forces linking of conf-context.c.

12 years agoConf: Revive cf_def_file and cf_env_file
Martin Mares [Sat, 28 Apr 2012 17:41:58 +0000 (19:41 +0200)]
Conf: Revive cf_def_file and cf_env_file

They are tightly coupled to cf_getopt(), which is not reentrant
anyway, so let us leave them global to keep backward compatibility.

12 years agoConf: Obsolete references to cf_def_file
Martin Mares [Sat, 28 Apr 2012 16:50:04 +0000 (18:50 +0200)]
Conf: Obsolete references to cf_def_file

12 years agoConf: Removed declarations of cf_def_file and cf_env_file
Martin Mares [Sat, 28 Apr 2012 16:49:35 +0000 (18:49 +0200)]
Conf: Removed declarations of cf_def_file and cf_env_file

12 years agoConf: Moved the list of dirty sections to cf_context
Martin Mares [Sat, 28 Apr 2012 16:43:24 +0000 (18:43 +0200)]
Conf: Moved the list of dirty sections to cf_context

12 years agoConf: Rewritten configuration parser to support multiple contexts (step 1)
Martin Mares [Sat, 28 Apr 2012 13:17:38 +0000 (15:17 +0200)]
Conf: Rewritten configuration parser to support multiple contexts (step 1)

Some parts remain, most notably the handling of dirty sections
in conf-section.c.

12 years agoFastbufs: Fixed broken seeking in fbbuf.
Pavel Charvat [Thu, 29 Mar 2012 19:45:24 +0000 (21:45 +0200)]
Fastbufs: Fixed broken seeking in fbbuf.

12 years agoCRC: Added inclusion guards
Martin Mares [Sun, 18 Mar 2012 22:35:06 +0000 (23:35 +0100)]
CRC: Added inclusion guards

12 years agoCRC: Added crc32_hash_buffer()
Martin Mares [Sun, 18 Mar 2012 22:08:01 +0000 (23:08 +0100)]
CRC: Added crc32_hash_buffer()

12 years agoCRC: Documentation
Martin Mares [Sun, 18 Mar 2012 22:05:21 +0000 (23:05 +0100)]
CRC: Documentation

12 years agoCRC: Added tests
Martin Mares [Sun, 18 Mar 2012 21:39:37 +0000 (22:39 +0100)]
CRC: Added tests

12 years agoCRC: Added a module for calculating CRC32
Martin Mares [Sun, 18 Mar 2012 21:35:53 +0000 (22:35 +0100)]
CRC: Added a module for calculating CRC32

12 years agoMempools: Implemented mp_str_from_mem()
Martin Mares [Fri, 2 Mar 2012 14:12:16 +0000 (15:12 +0100)]
Mempools: Implemented mp_str_from_mem()

12 years agoChanged default configuration to include LibUCW and utils only v5.0
Martin Mares [Tue, 21 Feb 2012 17:27:20 +0000 (18:27 +0100)]
Changed default configuration to include LibUCW and utils only

The debug configuration however enables everything.

12 years agoMaint: Added a script for uploading online documentation
Martin Mares [Tue, 21 Feb 2012 17:25:32 +0000 (18:25 +0100)]
Maint: Added a script for uploading online documentation

12 years agoDoc: Updated web pages
Martin Mares [Tue, 21 Feb 2012 17:25:19 +0000 (18:25 +0100)]
Doc: Updated web pages

12 years agoDoc: Updated license
Martin Mares [Tue, 21 Feb 2012 17:25:15 +0000 (18:25 +0100)]
Doc: Updated license

12 years agoWeb: Moved one directory up
Martin Mares [Tue, 21 Feb 2012 16:56:00 +0000 (17:56 +0100)]
Web: Moved one directory up

12 years agoDoc: Fixed a typo
Martin Mares [Tue, 21 Feb 2012 16:53:14 +0000 (17:53 +0100)]
Doc: Fixed a typo

12 years agoRelease notes: 5.0 is no longer WIP
Martin Mares [Tue, 21 Feb 2012 16:51:47 +0000 (17:51 +0100)]
Release notes: 5.0 is no longer WIP

12 years agoSorter: Make sort-test a part of the test suite
Martin Mares [Tue, 21 Feb 2012 16:46:45 +0000 (17:46 +0100)]
Sorter: Make sort-test a part of the test suite

12 years agoRelease notes: Remark on fastbuf implementation
Martin Mares [Tue, 21 Feb 2012 16:39:20 +0000 (17:39 +0100)]
Release notes: Remark on fastbuf implementation

12 years agologoutput: Clean up --help message
Martin Mares [Tue, 21 Feb 2012 12:39:44 +0000 (13:39 +0100)]
logoutput: Clean up --help message

12 years agologoutput: More control over verbosity
Martin Mares [Tue, 21 Feb 2012 12:34:45 +0000 (13:34 +0100)]
logoutput: More control over verbosity

Patch by Tomas Ebenlendr.

12 years agoAtomic Fastbuf: Fixed assertion error in unit test.
Pavel Charvat [Mon, 20 Feb 2012 01:26:54 +0000 (02:26 +0100)]
Atomic Fastbuf: Fixed assertion error in unit test.

12 years agoSorter: Another timer.h -> time.h.
Pavel Charvat [Sun, 19 Feb 2012 11:34:04 +0000 (12:34 +0100)]
Sorter: Another timer.h -> time.h.

12 years agoSorter: Ah, fixed wrong include of time.h.
Pavel Charvat [Sun, 19 Feb 2012 11:31:19 +0000 (12:31 +0100)]
Sorter: Ah, fixed wrong include of time.h.

12 years agoSorter: Added missing include.
Pavel Charvat [Sun, 19 Feb 2012 11:29:06 +0000 (12:29 +0100)]
Sorter: Added missing include.

12 years agoUpdated TODO
Martin Mares [Sat, 18 Feb 2012 18:41:28 +0000 (19:41 +0100)]
Updated TODO

12 years agoUpdated README for the public release
Martin Mares [Sat, 18 Feb 2012 18:41:15 +0000 (19:41 +0100)]
Updated README for the public release

12 years agoMaint: Added release machinery
Martin Mares [Sat, 18 Feb 2012 18:33:19 +0000 (19:33 +0100)]
Maint: Added release machinery

This is derived from release.pm used for pciutils, but extensively
changed to support Git-based workflow.

Needs more work.

12 years agoREADME: Trying variable substitution
Martin Mares [Sat, 18 Feb 2012 17:50:59 +0000 (18:50 +0100)]
README: Trying variable substitution

12 years agoUpdated TODO
Martin Mares [Sat, 18 Feb 2012 17:13:30 +0000 (18:13 +0100)]
Updated TODO

12 years agoRemoved obsolete lfs-test
Martin Mares [Sat, 18 Feb 2012 17:13:16 +0000 (18:13 +0100)]
Removed obsolete lfs-test