]> mj.ucw.cz Git - libucw.git/log
libucw.git
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

12 years agoRemoved ancient scripts for making library releases
Martin Mares [Sat, 18 Feb 2012 17:12:07 +0000 (18:12 +0100)]
Removed ancient scripts for making library releases

12 years agoMoved web pages to a top-level directory
Martin Mares [Sat, 18 Feb 2012 17:11:47 +0000 (18:11 +0100)]
Moved web pages to a top-level directory

12 years agoExampled moved to a top-level directory
Martin Mares [Sat, 18 Feb 2012 17:09:18 +0000 (18:09 +0100)]
Exampled moved to a top-level directory

12 years agoConfig: Support "LibUCW only" mode
Martin Mares [Sat, 18 Feb 2012 17:07:42 +0000 (18:07 +0100)]
Config: Support "LibUCW only" mode

12 years agoConfigure: Update copyrights
Martin Mares [Sat, 18 Feb 2012 17:00:21 +0000 (18:00 +0100)]
Configure: Update copyrights

12 years agoConfigure: Removed references to SHERLOCK_VERSION
Martin Mares [Sat, 18 Feb 2012 16:59:52 +0000 (17:59 +0100)]
Configure: Removed references to SHERLOCK_VERSION

12 years agoConfigure: Simplified radix sorter configuration
Martin Mares [Sat, 18 Feb 2012 16:57:35 +0000 (17:57 +0100)]
Configure: Simplified radix sorter configuration

Originally, we guessed based on CPU model, but as I have ripped out
model detection, we cannot do that any longer; besides, it was very
much out of date.

Now, we use simple heuristics: anybody caring about performance
runs on amd64 and all amd64 processors have large enough L1 cache
to use 12-bit bucket width.

12 years agoConfigure: Moved LibUCW specific Darwin hacks to the right place
Martin Mares [Sat, 18 Feb 2012 16:53:59 +0000 (17:53 +0100)]
Configure: Moved LibUCW specific Darwin hacks to the right place

12 years agoConfig: Enable CONFIG_EXACT_CPU in debugging configuration
Martin Mares [Sat, 18 Feb 2012 16:53:32 +0000 (17:53 +0100)]
Config: Enable CONFIG_EXACT_CPU in debugging configuration

12 years agoConfigure: Replaced dark magic in CPU detection by use of -march=native
Martin Mares [Sat, 18 Feb 2012 16:48:06 +0000 (17:48 +0100)]
Configure: Replaced dark magic in CPU detection by use of -march=native

12 years agocheck-configs: Enable CONFIG_LOCAL, otherwise tests cannot work
Martin Mares [Sat, 18 Feb 2012 12:31:36 +0000 (13:31 +0100)]
check-configs: Enable CONFIG_LOCAL, otherwise tests cannot work

12 years agocheck-configs: Check configurations without CONFIG_DEBUG, too
Martin Mares [Sat, 18 Feb 2012 12:08:18 +0000 (13:08 +0100)]
check-configs: Check configurations without CONFIG_DEBUG, too

12 years agolib.h: Added ASSERT_READABLE and ASSERT_WRITEABLE
Martin Mares [Sat, 18 Feb 2012 12:08:07 +0000 (13:08 +0100)]
lib.h: Added ASSERT_READABLE and ASSERT_WRITEABLE

12 years agoTime: Added a module for parsing timeouts
Martin Mares [Thu, 16 Feb 2012 19:52:15 +0000 (20:52 +0100)]
Time: Added a module for parsing timeouts

12 years agoTime: Documented the header splitoff
Martin Mares [Thu, 16 Feb 2012 19:19:51 +0000 (20:19 +0100)]
Time: Documented the header splitoff

12 years agoTime: Timing functions separated out to <ucw/time.h>
Martin Mares [Thu, 16 Feb 2012 19:15:00 +0000 (20:15 +0100)]
Time: Timing functions separated out to <ucw/time.h>

Updated all references and wrote documentation.

12 years agoCharset: compile cs2cs
Martin Mares [Sat, 11 Feb 2012 20:36:08 +0000 (21:36 +0100)]
Charset: compile cs2cs

12 years agoSorter tests: get rid of sherlock.h
Martin Mares [Sat, 11 Feb 2012 20:30:56 +0000 (21:30 +0100)]
Sorter tests: get rid of sherlock.h

12 years agoUse #include <ucw/...> instead of "ucw/..." (and similarly for the other libs)
Martin Mares [Sat, 11 Feb 2012 20:29:31 +0000 (21:29 +0100)]
Use #include <ucw/...> instead of "ucw/..." (and similarly for the other libs)

12 years agoFastbuf: Get rid of ->is_fastbuf typechecking hack
Martin Mares [Sat, 11 Feb 2012 20:17:04 +0000 (21:17 +0100)]
Fastbuf: Get rid of ->is_fastbuf typechecking hack

... it breaks C99 aliasing rules and GCC rightfully warns about it.

If we ever want to do such type checking, we might use

#define CAST(f) ((f)->is_fastbuf, (struct xxxx *)(f))

but I guess it is of little use anyway, so I am removing it.

12 years agoBase64: Made thread-safe
Martin Mares [Sat, 11 Feb 2012 20:11:11 +0000 (21:11 +0100)]
Base64: Made thread-safe

12 years agoConfig: Use CONFIG_LOCAL in debugging configuration
Martin Mares [Sat, 11 Feb 2012 20:09:16 +0000 (21:09 +0100)]
Config: Use CONFIG_LOCAL in debugging configuration

12 years agoTimer: Use monotonic clock on Linux
Martin Mares [Sat, 11 Feb 2012 20:08:50 +0000 (21:08 +0100)]
Timer: Use monotonic clock on Linux

12 years agoDoc: Release notes about timestamp_t
Martin Mares [Sat, 11 Feb 2012 19:39:36 +0000 (20:39 +0100)]
Doc: Release notes about timestamp_t

12 years agoMain: Use get_timestamp() for main_now
Martin Mares [Sat, 11 Feb 2012 19:32:22 +0000 (20:32 +0100)]
Main: Use get_timestamp() for main_now

12 years agoMain: Decouple main_now from system time, remove main_now_seconds
Martin Mares [Sat, 11 Feb 2012 19:32:00 +0000 (20:32 +0100)]
Main: Decouple main_now from system time, remove main_now_seconds

12 years agoTimer: get_timer() adds a random offset to catch misuse of timestamp_t
Martin Mares [Sat, 11 Feb 2012 19:28:35 +0000 (20:28 +0100)]
Timer: get_timer() adds a random offset to catch misuse of timestamp_t

12 years agoRedefined timestamp_t and removed ucw_time_t
Martin Mares [Sat, 11 Feb 2012 19:27:19 +0000 (20:27 +0100)]
Redefined timestamp_t and removed ucw_time_t

timestamp_t is no longer tied to the wall clock time (so it can be
read from CLOCK_MONOTONIC or any other clock)

ucw_time_t was an obsolete hack

12 years agoConfig: Updated check-configs
Martin Mares [Sat, 11 Feb 2012 19:09:53 +0000 (20:09 +0100)]
Config: Updated check-configs

12 years agoConfig: CONFIG_UCW_FAKE_ELTPOOL
Martin Mares [Sat, 11 Feb 2012 19:09:24 +0000 (20:09 +0100)]
Config: CONFIG_UCW_FAKE_ELTPOOL

Can be set by the user if needed, not referenced in any config scripts.

12 years agoGary: GARY_INIT_OR_RESIZE got broken by introduction of zeroing
Martin Mares [Sat, 11 Feb 2012 19:05:04 +0000 (20:05 +0100)]
Gary: GARY_INIT_OR_RESIZE got broken by introduction of zeroing

12 years agoConfig: Regularized configuration of regex libs
Martin Mares [Sat, 11 Feb 2012 19:04:50 +0000 (20:04 +0100)]
Config: Regularized configuration of regex libs

12 years agoConfig: Updated UCW_VERSION and ..._CODE
Martin Mares [Sat, 11 Feb 2012 18:53:49 +0000 (19:53 +0100)]
Config: Updated UCW_VERSION and ..._CODE

12 years agoConfig: Removed reference to MAX_WORD_(BYTES|CHARS)
Martin Mares [Sat, 11 Feb 2012 18:52:21 +0000 (19:52 +0100)]
Config: Removed reference to MAX_WORD_(BYTES|CHARS)

We do not ship Sherlock liblang any longer.

12 years agoConfig: Update the filtering rules for autoconf.h
Martin Mares [Sat, 11 Feb 2012 18:51:16 +0000 (19:51 +0100)]
Config: Update the filtering rules for autoconf.h

12 years agoConfig: Split CONFIG_UCW_DEBUG off CONFIG_DEBUG
Martin Mares [Sat, 11 Feb 2012 18:48:53 +0000 (19:48 +0100)]
Config: Split CONFIG_UCW_DEBUG off CONFIG_DEBUG

CONFIG_DEBUG controls the build system,
CONFIG_UCW_DEBUG gets embedded in the library.

Turning CONFIG_DEBUG in programs using LibUCW can influence
ASSERTs and other debugging constructs in the headers, but
not presence of debugging code in the library.

12 years agoConfig: One more reference to CONFIG_LARGE_FILES
Martin Mares [Sat, 11 Feb 2012 18:48:38 +0000 (19:48 +0100)]
Config: One more reference to CONFIG_LARGE_FILES

12 years agoConfig: Moved CONFIG_LARGE_FILES to UCW namespace, removed CONFIG_LFS
Martin Mares [Sat, 11 Feb 2012 18:38:38 +0000 (19:38 +0100)]
Config: Moved CONFIG_LARGE_FILES to UCW namespace, removed CONFIG_LFS

12 years agoConfig: CONFIG_OWN_GETOPT moved to UCW namespace
Martin Mares [Sat, 11 Feb 2012 18:35:57 +0000 (19:35 +0100)]
Config: CONFIG_OWN_GETOPT moved to UCW namespace

12 years agoConfig: CONFIG_DIRECT_IO moved to UCW namespace
Martin Mares [Sat, 11 Feb 2012 18:34:36 +0000 (19:34 +0100)]
Config: CONFIG_DIRECT_IO moved to UCW namespace

12 years agoConf: DEFAULT_CONFIG and ENV_VAR_CONFIG got a CONFIG_UCW_ prefix
Martin Mares [Sat, 11 Feb 2012 18:31:41 +0000 (19:31 +0100)]
Conf: DEFAULT_CONFIG and ENV_VAR_CONFIG got a CONFIG_UCW_ prefix

12 years agoURL: Removed CONFIG_URL_ESCAPE_COMPAT
Martin Mares [Sat, 11 Feb 2012 18:28:01 +0000 (19:28 +0100)]
URL: Removed CONFIG_URL_ESCAPE_COMPAT

12 years agoDoc: Updated release notes
Martin Mares [Sat, 11 Feb 2012 18:23:27 +0000 (19:23 +0100)]
Doc: Updated release notes

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

12 years agoSighandler removed from public API
Martin Mares [Sat, 11 Feb 2012 18:07:02 +0000 (19:07 +0100)]
Sighandler removed from public API

It is still used internally by lizard-safe, so I am not removing it yet.

12 years agoLizard: Removed comments which are already part of the docs
Martin Mares [Sat, 11 Feb 2012 18:05:41 +0000 (19:05 +0100)]
Lizard: Removed comments which are already part of the docs

12 years agoDoc: Typos in the index
Martin Mares [Sat, 11 Feb 2012 18:00:44 +0000 (19:00 +0100)]
Doc: Typos in the index

12 years agoDoc: Typos and clarifications in unicode.h
Martin Mares [Sat, 11 Feb 2012 17:59:14 +0000 (18:59 +0100)]
Doc: Typos and clarifications in unicode.h

12 years agoDoc: lib.h is already fully documented
Martin Mares [Sat, 11 Feb 2012 17:54:27 +0000 (18:54 +0100)]
Doc: lib.h is already fully documented

(In fact, the parts that were not, were moved to other header files.)

12 years agoDoc: Describe general rules for reentrancy
Martin Mares [Sat, 11 Feb 2012 17:53:02 +0000 (18:53 +0100)]
Doc: Describe general rules for reentrancy

12 years agoRemoved str_start_with() and str_end_with()
Martin Mares [Sat, 11 Feb 2012 17:37:02 +0000 (18:37 +0100)]
Removed str_start_with() and str_end_with()

They were already present in dev-trans under different names.

12 years agoDocs: Removed obsolete remarks about automatic tying of fastbufs
Martin Mares [Sat, 11 Feb 2012 17:29:35 +0000 (18:29 +0100)]
Docs: Removed obsolete remarks about automatic tying of fastbufs

12 years agoTrans: Moved FIXMEs to global TODO
Martin Mares [Sat, 11 Feb 2012 11:21:57 +0000 (12:21 +0100)]
Trans: Moved FIXMEs to global TODO

12 years agoMerge branch 'dev-trans'
Martin Mares [Sat, 11 Feb 2012 11:20:31 +0000 (12:20 +0100)]
Merge branch 'dev-trans'

Conflicts:
ucw/Makefile
ucw/string.h

12 years agoTester: Do not be picky about final newlines
Martin Mares [Fri, 10 Feb 2012 22:11:04 +0000 (23:11 +0100)]
Tester: Do not be picky about final newlines

12 years agoBasecode tests were completely wrong
Martin Mares [Fri, 10 Feb 2012 22:10:33 +0000 (23:10 +0100)]
Basecode tests were completely wrong

Wrong directory, wrong keywords...

12 years agoGrowing arrays: Fixed test cases
Martin Mares [Fri, 10 Feb 2012 21:57:16 +0000 (22:57 +0100)]
Growing arrays: Fixed test cases

"Output" is not a synonym for "Out".

12 years agoGrowing arrays now support auto-zeroing mode
Martin Mares [Fri, 10 Feb 2012 21:57:03 +0000 (22:57 +0100)]
Growing arrays now support auto-zeroing mode

12 years agoUpdated TODO
Martin Mares [Thu, 9 Feb 2012 22:43:14 +0000 (23:43 +0100)]
Updated TODO

12 years agoRemoved the `qache' module
Martin Mares [Thu, 9 Feb 2012 22:42:16 +0000 (23:42 +0100)]
Removed the `qache' module

During the whole history, it had only a single use in Sherlock's
multiplexer. Will be moved to libsherlock upon reviving Sherlock.

12 years agoDoc: Mention several undocumented modules
Martin Mares [Thu, 9 Feb 2012 22:36:36 +0000 (23:36 +0100)]
Doc: Mention several undocumented modules

12 years agoMoved memory allocation functions together and document them
Martin Mares [Thu, 9 Feb 2012 22:33:00 +0000 (23:33 +0100)]
Moved memory allocation functions together and document them

12 years agoThe `prefetch' module has been removed.
Martin Mares [Thu, 9 Feb 2012 22:29:52 +0000 (23:29 +0100)]
The `prefetch' module has been removed.

In recent years, GCC builtin_prefetch() is much more useful.

12 years agoThe rest of sighandler separation
Martin Mares [Thu, 9 Feb 2012 22:29:10 +0000 (23:29 +0100)]
The rest of sighandler separation

12 years agoSeparated out sighandler module
Martin Mares [Thu, 9 Feb 2012 22:24:07 +0000 (23:24 +0100)]
Separated out sighandler module

For years, it was used only in lizard-safe and its use makes
signal handling even more complicated than it's usual.

Scheduled for removal, will replace it by a lizard-specific hack.

12 years agoMoved process-related functions to ucw/process.h
Martin Mares [Thu, 9 Feb 2012 22:16:51 +0000 (23:16 +0100)]
Moved process-related functions to ucw/process.h

12 years agoio.h: Fixed guard macro
Martin Mares [Thu, 9 Feb 2012 22:12:08 +0000 (23:12 +0100)]
io.h: Fixed guard macro

12 years agoMore modules moved to io.h and renamed to io-*.c
Martin Mares [Thu, 9 Feb 2012 22:09:46 +0000 (23:09 +0100)]
More modules moved to io.h and renamed to io-*.c

This includes carefulio, mmap, file_size() and sync.

12 years agoMoved ucw/lfs.h to ucw/io.h
Martin Mares [Thu, 9 Feb 2012 22:02:17 +0000 (23:02 +0100)]
Moved ucw/lfs.h to ucw/io.h

More I/O functions will follow.

12 years agoThe `randomkey' module has been removed.
Martin Mares [Thu, 9 Feb 2012 21:54:43 +0000 (22:54 +0100)]
The `randomkey' module has been removed.

Obsolete, no real use in years.

12 years agoThe `profile' module has been removed
Martin Mares [Thu, 9 Feb 2012 21:48:31 +0000 (22:48 +0100)]
The `profile' module has been removed

It was obsolete and I do not know of any use in last 5 years.

12 years agoMain: hook_add() is guaranteed to reschedule the hook
Martin Mares [Thu, 9 Feb 2012 21:24:54 +0000 (22:24 +0100)]
Main: hook_add() is guaranteed to reschedule the hook

12 years agoMain: Removing an already removed event is always safe.
Martin Mares [Thu, 9 Feb 2012 19:20:34 +0000 (20:20 +0100)]
Main: Removing an already removed event is always safe.

Also adding an already added hook is always safe. For other event
types, we still refuse repeated adds.

12 years agoAdded consts to functions for matching of prefixes and suffixes.
Pavel Charvat [Wed, 8 Feb 2012 13:58:46 +0000 (14:58 +0100)]
Added consts to functions for matching of prefixes and suffixes.

12 years agoMain: Fixed miscalculated memory allocation
Martin Mares [Tue, 7 Feb 2012 09:10:11 +0000 (10:10 +0100)]
Main: Fixed miscalculated memory allocation

12 years agostrtonum: str_to_<signed> now implicitly allows signs
Martin Mares [Fri, 27 Jan 2012 14:05:47 +0000 (15:05 +0100)]
strtonum: str_to_<signed> now implicitly allows signs

12 years agoString: Added str_starts_with() and str_ends_with()
Martin Mares [Sat, 7 Jan 2012 14:25:47 +0000 (15:25 +0100)]
String: Added str_starts_with() and str_ends_with()

12 years agoLogging: Use log_set_default_stream().
Martin Mares [Sat, 7 Jan 2012 13:33:52 +0000 (14:33 +0100)]
Logging: Use log_set_default_stream().