]>
mj.ucw.cz Git - libucw.git/log
Martin Mares [Sun, 27 Jul 2008 15:38:14 +0000 (17:38 +0200)]
Libucw: Cleaned up logging in fb-atomic.
Original patch by Michal, slightly changed by me.
Michal Vaner [Sun, 27 Jul 2008 12:22:10 +0000 (14:22 +0200)]
Libucw: Get rid of a warning during test.
(Unused argc)
Martin Mares [Sun, 27 Jul 2008 15:12:04 +0000 (17:12 +0200)]
Configure: Determine /var and related installation paths automatically.
Martin Mares [Sun, 27 Jul 2008 15:11:36 +0000 (17:11 +0200)]
Build: Let genconf expand variables recursively.
This is useful for example when filling in installation paths in configuration
files.
Martin Mares [Sun, 27 Jul 2008 12:59:47 +0000 (14:59 +0200)]
Configure: Avoid dashes in names of variables.
Michal Vaner [Wed, 23 Jul 2008 18:55:49 +0000 (20:55 +0200)]
Libucw: Split ff-string.c.
Stk strings now have their own file (ff-stkstring.c).
Michal Vaner [Tue, 22 Jul 2008 15:35:36 +0000 (17:35 +0200)]
Libucw: Added tests of the URL module.
Mostly merging of relative paths.
Michal Vaner [Tue, 22 Jul 2008 12:45:46 +0000 (14:45 +0200)]
Libucw: Update path parameter handling of URL to current RFC (2396).
Previous RFC had path parameters as separate component. With current RFC,
each path element can contain own path parameters.
When merging absolute/relative url, path parameters are taken as parts of
the elements, making special handling unnecessary.
Michal Vaner [Tue, 22 Jul 2008 11:18:29 +0000 (13:18 +0200)]
Libucw: Update URL escaping to current RFC (2396).
Add new reserved characters: '$', '+', ','
Add new allowed character: '~'
Changed NCC_xxx defines to an enum.
Michal Vaner [Mon, 21 Jul 2008 20:51:34 +0000 (22:51 +0200)]
Libucw: A test for mmap fastbufs.
Michal Vaner [Mon, 21 Jul 2008 20:49:54 +0000 (22:49 +0200)]
Libucw: Coding conventions fix
Michal Vaner [Mon, 21 Jul 2008 20:05:57 +0000 (22:05 +0200)]
Libucw: Replace obsolete log calls by msg.
Michal Vaner [Mon, 21 Jul 2008 19:16:42 +0000 (21:16 +0200)]
Libucw: A test for fastbufs on static buffers.
Michal Vaner [Mon, 21 Jul 2008 11:49:15 +0000 (13:49 +0200)]
Libucw: Tests for some fastbufs which already have test main.
Martin Mares [Tue, 22 Jul 2008 10:13:19 +0000 (12:13 +0200)]
Libucw: Added str_count_char().
Michal Vaner [Sun, 20 Jul 2008 21:34:26 +0000 (23:34 +0200)]
Libucw: Add ROR (bitwise ROtation to Right)
Michal Vaner [Sun, 20 Jul 2008 21:12:25 +0000 (23:12 +0200)]
Libucw: Prime numbers moved from lib.h to prime.h.
Michal Vaner [Sun, 20 Jul 2008 20:47:10 +0000 (22:47 +0200)]
Rewrite #include "..." to #include <...> when installing.
Martin Mares [Sat, 19 Jul 2008 22:25:30 +0000 (00:25 +0200)]
Removed an obsolete comment.
Martin Mares [Sat, 19 Jul 2008 22:23:36 +0000 (00:23 +0200)]
Libucw: Split ucw/fb-temp.c.
Moved the low-level temporary file functions that do not depend on fastbufs
to ucw/tempfile.c.
Martin Mares [Sat, 19 Jul 2008 22:18:43 +0000 (00:18 +0200)]
Libucw: Better configuration of temporary directories.
I have split the directory name from the file name prefix.
Also, I have fixed a couple of bugs in my previous merge
of Michal's patches.
Michal Vaner [Sat, 19 Jul 2008 20:22:20 +0000 (22:22 +0200)]
Libucw: Change sh_ prefix to ucw_.
And update all uses across the tree.
Macros:
sh_fdatasync -> ucw_fdatasync
sh_fstat -> ucw_fstat
sh_ftruncate -> ucw_ftruncate
sh_mmap -> ucw_mmap
sh_open -> ucw_open
sh_pread -> ucw_pread
sh_pwrite -> ucw_pwrite
sh_seek -> ucw_seek
sh_stat -> ucw_stat
Functions:
sh_file_size -> ucw_file_size
File types:
sh_off_t -> ucw_off_t
sh_sighandler_t -> ucw_sighandler_t
sh_stat_t -> ucw_stat_t
sh_time_t -> ucw_time_t
Internals:
sh_getopt -> ucw_getopt
sh_getopt_long -> ucw_getopt_long
sh_getopt_longonly -> ucw_getopt_longonly
sh_optarg -> ucw_optarg
sh_opterr -> ucw_opterr
sh_optind -> ucw_optind
sh_optopt -> ucw_optopt
sh_xfree -> ucw_xfree
sh_xmalloc -> ucw_xmalloc
sh_xrealloc -> ucw_xrealloc
Martin Mares [Sat, 19 Jul 2008 21:54:06 +0000 (23:54 +0200)]
Libucw: Use the new temp file logic for semaphores.
(picked from Michal's dev-vorner branch)
Martin Mares [Sat, 19 Jul 2008 21:53:27 +0000 (23:53 +0200)]
Libucw: Be able to use public tmp directory.
If Tempfiles.Prefix is not set, temp_file_name() now uses the public tmp directory
pointed to by $TMPDIR. The new Tempfiles.PublicDir switch controls the naming
Added open_tmp() which creates a temporary file in a race-free way.
The changes were picked from Michal's dev-vorner branch, mine are only renames
of function parameters and coding-style cleanups, and also the doc.
Martin Mares [Sat, 19 Jul 2008 21:38:00 +0000 (23:38 +0200)]
Libucw: added bopen_fd_name()
(picked from Michal's dev-vorner tree)
Michal Vaner [Thu, 17 Jul 2008 19:23:51 +0000 (21:23 +0200)]
Libucw: url byte -> char
The rest of tree has to be updated to it (does not compile, all kinds
of warnings...).
Michal Vaner [Sat, 19 Jul 2008 12:01:40 +0000 (14:01 +0200)]
Libucw: remove dmalloc support
Michal Vaner [Thu, 17 Jul 2008 10:57:50 +0000 (12:57 +0200)]
Libucw: Remove lists.{h,c}
All remaining references to it replaced by clists.
Michal Vaner [Thu, 17 Jul 2008 09:23:16 +0000 (11:23 +0200)]
Move pagecache from libucw to libsherlock
Michal Vaner [Thu, 17 Jul 2008 09:11:18 +0000 (11:11 +0200)]
Move db system from Libucw to Libsherlock
(Needed for move of pagecache there)
Michal Vaner [Thu, 17 Jul 2008 08:57:02 +0000 (10:57 +0200)]
Move context matching to libgather
Michal Vaner [Wed, 16 Jul 2008 20:16:54 +0000 (22:16 +0200)]
Libucw: unicode.h - Remove macros with the same functionality as functions.
All uses of macros across the tree replaced.
Michal Vaner [Wed, 16 Jul 2008 17:59:05 +0000 (19:59 +0200)]
Libucw: fix extention (.test -> .t)
Michal Vaner [Mon, 14 Jul 2008 19:25:56 +0000 (21:25 +0200)]
Libucw: basecode would break while decoding and '--prefix='
It wouldn't skip the newlines properly if prefix was set to empty string
(eg "", not NULL).
Martin Mares [Mon, 14 Jul 2008 21:53:11 +0000 (23:53 +0200)]
Remember to enable CONFIG_LOCAL in the library example.
Martin Mares [Mon, 14 Jul 2008 20:23:08 +0000 (22:23 +0200)]
The big move. Step #2: Updated all other references to lib/.
Martin Mares [Mon, 14 Jul 2008 20:19:38 +0000 (22:19 +0200)]
The big move. Step #1: Move whole lib/ to ucw/.
All references within the libucw itself have been updated.
Michal Vaner [Mon, 14 Jul 2008 18:05:50 +0000 (20:05 +0200)]
Readding line of makefile lost in merge
Martin Mares [Mon, 14 Jul 2008 15:35:21 +0000 (17:35 +0200)]
Libucw: basecode utility and its tests.
(Several Michal's commits flattened to one.)
Michal Vaner [Mon, 14 Jul 2008 15:04:08 +0000 (17:04 +0200)]
Libucw: Changing md5 module interface to match sha1.
All uses in tree update to reflect the change.
Uses ucw types.
Michal Vaner [Mon, 14 Jul 2008 11:48:06 +0000 (13:48 +0200)]
Libucw: wildmatch uses char * instead of byte * for strings.
Needs to be typecasted to unsigned char when indexing arrays.
Expects chars to be 8-bit.
Michal Vaner [Sun, 13 Jul 2008 11:13:27 +0000 (13:13 +0200)]
Libucw: Test for redblack.h
Use existing test.
Michal Vaner [Sun, 13 Jul 2008 08:58:42 +0000 (10:58 +0200)]
Libucw: Test for binheap.h
Use existing test, just run it with other tests.
Michal Vaner [Sun, 13 Jul 2008 07:41:22 +0000 (09:41 +0200)]
Libucw: Test for arraysort.h
Modified existing benchmark to return 1 as return code on failure.
Added a .t file to run from `make tests'.
Martin Mares [Mon, 14 Jul 2008 14:39:04 +0000 (16:39 +0200)]
Merge branch 'master' into dev-lib
Merged the dev-admin changes through mainline. Conflicts solved manually:
filter/filter.h
filter/tries.c
lib/Makefile
Martin Mares [Mon, 14 Jul 2008 14:32:06 +0000 (16:32 +0200)]
Merge branch 'dev-admin'
Pavel Charvat [Tue, 8 Jul 2008 06:27:45 +0000 (08:27 +0200)]
Enable automatic tests for byte-bases tries.
Pavel Charvat [Tue, 8 Jul 2008 06:25:58 +0000 (08:25 +0200)]
Implemented byte-bases trie.
Pavel Charvat [Tue, 8 Jul 2008 06:23:16 +0000 (08:23 +0200)]
Implemented {mp,ep}_total_size().
Pavel Charvat [Tue, 8 Jul 2008 06:11:28 +0000 (08:11 +0200)]
Hidden one possible compilation warning in KMP.
Pavel Charvat [Mon, 7 Jul 2008 20:32:10 +0000 (22:32 +0200)]
Merge branch 'master' into dev-admin
Martin Mares [Thu, 3 Jul 2008 19:37:51 +0000 (21:37 +0200)]
Libucw: Spelling.
Martin Mares [Tue, 1 Jul 2008 16:35:11 +0000 (18:35 +0200)]
Libucw: Added an implementation of HMAC-SHA1.
Martin Mares [Tue, 1 Jul 2008 10:08:41 +0000 (12:08 +0200)]
Adapt to CF_LOOKUP constification.
Martin Mares [Tue, 1 Jul 2008 10:08:29 +0000 (12:08 +0200)]
UCW: Constified the lookup table for CF_LOOKUP and CF_BITMAP_LOOKUP.
Martin Mares [Tue, 1 Jul 2008 09:44:08 +0000 (11:44 +0200)]
Libucw: Added sha1.t to the automatic tests.
Martin Mares [Mon, 30 Jun 2008 22:31:18 +0000 (00:31 +0200)]
Libucw: Added a SHA-1 module.
Martin Mares [Fri, 27 Jun 2008 19:11:07 +0000 (21:11 +0200)]
Configure: Better extraction of settings in PkgConfig() and TrivConfig()
TrivConfig() now allows to specify a list of options to ask for.
The naming of the configuration variables has been changed from
CFLAGS_PKG to PKG_CFLAGS to bring everything related to the PKG
together.
Martin Mares [Thu, 26 Jun 2008 20:44:45 +0000 (22:44 +0200)]
Configure: better guard against undef's returned by backticks.
Martin Mares [Tue, 1 Jul 2008 09:06:03 +0000 (11:06 +0200)]
Tests for the string module.
Martin Mares [Wed, 25 Jun 2008 19:52:26 +0000 (21:52 +0200)]
The libucw Makefile no longer installs cf/library automatically.
Martin Mares [Wed, 25 Jun 2008 19:50:08 +0000 (21:50 +0200)]
Fixed a bug in str_unesc() and added a testsuite.
Prior to this fix, the first character after an octal escape
sequence was copied literally.
Martin Mares [Wed, 25 Jun 2008 19:34:35 +0000 (21:34 +0200)]
Replaced the md5hex module by the hexdumper.
It turned out to necessary to teach the hexdumper to produce
uppercase output, so I have changed the separator to general
flags.
Martin Mares [Wed, 25 Jun 2008 19:18:24 +0000 (21:18 +0200)]
str_hexdump() now uses the new hexdumper.
Martin Mares [Wed, 25 Jun 2008 19:17:08 +0000 (21:17 +0200)]
Hexdumping functions can also use separators.
Martin Mares [Wed, 25 Jun 2008 19:11:17 +0000 (21:11 +0200)]
Added a simple module for making and parsing hexdumps.
Martin Mares [Wed, 25 Jun 2008 19:06:46 +0000 (21:06 +0200)]
Renamed str-test to hashfunc-test, because that's what it is.
Martin Mares [Wed, 25 Jun 2008 18:54:07 +0000 (20:54 +0200)]
Move chartype functions to lib/char-*.c.
The names str_*.c were very misleading.
Martin Mares [Wed, 25 Jun 2008 18:42:36 +0000 (20:42 +0200)]
Moved matching and splitting functions to lib/str-*.c.
Martin Mares [Wed, 25 Jun 2008 18:35:24 +0000 (20:35 +0200)]
More moves of string functions out of lib/lib.h.
match_pattern* has been renamed to str_match_pattern*,
(word|sep)split has been renamed to str_(word|sep)split,
all of them have been moved to lib/string.h.
md5_to_hex() and hex_to_md5() have been moved to lib/string.h,
but MD5_SIZE and MD5_HEX_SIZE to lib/md5.h. The conversion
functions will be replaced by a generic hexdumper soon.
Martin Mares [Wed, 25 Jun 2008 17:49:01 +0000 (19:49 +0200)]
Moved regex functions to lib/regex.h.
Martin Mares [Wed, 25 Jun 2008 17:36:50 +0000 (19:36 +0200)]
Introduced new header "lib/string.h".
Started moving string functions from lib.h there. The first ones
are those from string.c.
Also split off the unescaping functions to str-esc.c.
Martin Mares [Wed, 25 Jun 2008 15:08:27 +0000 (17:08 +0200)]
Build system: Substitute installation paths in .pc files if needed.
Martin Mares [Wed, 25 Jun 2008 15:01:00 +0000 (17:01 +0200)]
Revert "Configure: Set installation paths based on PREFIX."
This reverts commit
6c6d5d754582421419bc9e8d5c36036b7cfc1143 ,
which should have belonged to the dev-lib branch instead.
Martin Mares [Wed, 25 Jun 2008 15:00:10 +0000 (17:00 +0200)]
Configure: Set installation paths based on PREFIX.
Martin Mares [Wed, 25 Jun 2008 14:55:10 +0000 (16:55 +0200)]
Configure: Set installation paths based on PREFIX.
Martin Mares [Wed, 25 Jun 2008 14:04:28 +0000 (16:04 +0200)]
Allow the name of the config file directory to be overridden.
Martin Mares [Wed, 25 Jun 2008 13:58:32 +0000 (15:58 +0200)]
Makefiles: implement a symlink-alias macro.
Martin Mares [Wed, 25 Jun 2008 13:58:17 +0000 (15:58 +0200)]
Makefiles: Allow a prefix and suffix of installed libraries to be specified.
Martin Mares [Wed, 25 Jun 2008 13:57:32 +0000 (15:57 +0200)]
Configure: Partial support for CONFIG_LOCAL and PREFIX.
The configure script sets up INSTALL_PREFIX properly, but it is not
used anywhere yet.
Choose soname embedded in the shared libraries differently for a local
and global installation.
Martin Mares [Wed, 25 Jun 2008 14:09:09 +0000 (16:09 +0200)]
Configure: Remember PKG_CONFIG_PATH used for building.
Martin Mares [Wed, 25 Jun 2008 09:06:02 +0000 (11:06 +0200)]
Build system hack: set PKG_CONFIG_PATH in shell commands.
Unfortunately, even if we `export PKG_CONFIG_PATH' explicitly in the makefiles,
make still ignores it for $(shell).
Martin Mares [Fri, 20 Jun 2008 11:24:33 +0000 (13:24 +0200)]
Default switches for gcc-4.3.
I currently get lots of warnings about functions not inline, I will
fix them later.
Martin Mares [Wed, 18 Jun 2008 22:01:16 +0000 (00:01 +0200)]
Removed the lib/ff-utf8.h compatibility stub.
Closes Bug #6420.
Martin Mares [Wed, 18 Jun 2008 21:17:02 +0000 (23:17 +0200)]
The mainline heads to v3.13.
Martin Mares [Tue, 17 Jun 2008 20:45:51 +0000 (22:45 +0200)]
Added a new fastbuf backend for sockets with timeouts.
Martin Mares [Mon, 16 Jun 2008 16:43:31 +0000 (18:43 +0200)]
Word length: Set the parameters in library examples.
Martin Mares [Sat, 7 Jun 2008 21:08:39 +0000 (23:08 +0200)]
The Configure mechanism is now able to find packages via pkg-config
and similar scripts.
Pavel Charvat [Fri, 6 Jun 2008 08:28:20 +0000 (10:28 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.12.3
Martin Mares [Wed, 4 Jun 2008 17:23:42 +0000 (19:23 +0200)]
Cleaned up interface of the logger.
Also uninlined log_switch_{en,dis}able().
Martin Mares [Wed, 4 Jun 2008 17:00:46 +0000 (19:00 +0200)]
Replaced safe_msg() with a flag L_SIGHANDLER to msg().
Updated all callers.
Martin Mares [Wed, 4 Jun 2008 15:30:26 +0000 (17:30 +0200)]
Removed CONFIG_OWN_REGEX and the copy of regex library in lib/regex.
The implementations of libc with bad regex libraries are almost extinct now.
If it ever turns out that it is needed on other systems, it suffices
to revert this commit.
Pavel Charvat [Mon, 2 Jun 2008 08:33:27 +0000 (10:33 +0200)]
3.12.3-dev -> 3.12.3
Pavel Charvat [Mon, 2 Jun 2008 07:39:55 +0000 (09:39 +0200)]
v3.12.3-dev -> v3.12.4-dev
Martin Mares [Sun, 25 May 2008 17:41:56 +0000 (19:41 +0200)]
Allow `configure OPTIONS' without specifying configuration name.
This involves a little bit of dwimmery -- we assume that the options are
all uppercase and the configuration files do not, but that's hopefully
a fair game.
Martin Mares [Sun, 25 May 2008 16:38:00 +0000 (18:38 +0200)]
Added a rule for installing config files from sub-directories.
This will be useful for out-of-tree users of our makefile system.
Martin Mares [Sun, 25 May 2008 16:36:10 +0000 (18:36 +0200)]
Moved the `custom cf' rule from Makebottom to the top-level Makefile.
(It is too intimately tied to Sherlock.)
Pavel Charvat [Mon, 19 May 2008 12:00:45 +0000 (14:00 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Mon, 19 May 2008 11:43:43 +0000 (13:43 +0200)]
Fixed test cases for the xml parser.
Pavel Charvat [Mon, 19 May 2008 11:35:32 +0000 (13:35 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git