]> mj.ucw.cz Git - libucw.git/log
libucw.git
16 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Martin Mares [Sat, 25 Aug 2007 10:08:53 +0000 (12:08 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

Hand-merged:

  debug/Makefile
  lib/Makefile
  gather/shepherd/shep-select.c

16 years agoMerge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git
Martin Mares [Fri, 24 Aug 2007 12:32:16 +0000 (14:32 +0200)]
Merge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git

16 years agoFix compilation of subsets of the stand-alone libraries.
Martin Mares [Fri, 17 Aug 2007 12:36:55 +0000 (14:36 +0200)]
Fix compilation of subsets of the stand-alone libraries.

16 years agoShell utilities should link with libucw, not libsh.
Martin Mares [Thu, 26 Jul 2007 10:11:30 +0000 (12:11 +0200)]
Shell utilities should link with libucw, not libsh.

16 years agoCommented more libucw configuration switches.
Martin Mares [Thu, 26 Jul 2007 09:50:57 +0000 (11:50 +0200)]
Commented more libucw configuration switches.

16 years agoUse lib/default.cfg and get the version string from there.
Martin Mares [Thu, 26 Jul 2007 09:50:44 +0000 (11:50 +0200)]
Use lib/default.cfg and get the version string from there.
Avoid sherlock/autoconf.cfg.

16 years agoMoved default settings of the UCW library to a separate config file.
Martin Mares [Thu, 26 Jul 2007 09:46:54 +0000 (11:46 +0200)]
Moved default settings of the UCW library to a separate config file.
This config file also contains the master version number.

16 years agoRenamed both instances of `defconfig' to `default.cfg' to keep the names
Martin Mares [Thu, 26 Jul 2007 09:39:22 +0000 (11:39 +0200)]
Renamed both instances of `defconfig' to `default.cfg' to keep the names
in line with the rest of the configuration files.

16 years agoMention doc/configure.
Martin Mares [Thu, 26 Jul 2007 09:35:02 +0000 (11:35 +0200)]
Mention doc/configure.

16 years agoUpdated documentation on using libraries.
Martin Mares [Thu, 26 Jul 2007 09:24:58 +0000 (11:24 +0200)]
Updated documentation on using libraries.

16 years agoMoved the tests of linking with Sherlock libraries to free/libs/examples/.
Martin Mares [Thu, 26 Jul 2007 09:18:24 +0000 (11:18 +0200)]
Moved the tests of linking with Sherlock libraries to free/libs/examples/.

16 years agoThe separate library distribution now compiles.
Martin Mares [Thu, 26 Jul 2007 09:05:33 +0000 (11:05 +0200)]
The separate library distribution now compiles.

16 years agoMoved the rule for cf/library to lib/Makefile and the default empty
Martin Mares [Thu, 26 Jul 2007 09:04:54 +0000 (11:04 +0200)]
Moved the rule for cf/library to lib/Makefile and the default empty
rule for extras to build/Maketop.

16 years agoAn unfinished experiment in making a separate release of all libraries.
Martin Mares [Wed, 25 Jul 2007 21:37:45 +0000 (23:37 +0200)]
An unfinished experiment in making a separate release of all libraries.

16 years agoComments must not be indented, otherwise they are passed to the shell.
Martin Mares [Wed, 25 Jul 2007 21:05:53 +0000 (23:05 +0200)]
Comments must not be indented, otherwise they are passed to the shell.

16 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Wed, 25 Jul 2007 11:06:58 +0000 (13:06 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

16 years agoComment on optionality of UCW::CGI::error_hook.
Martin Mares [Fri, 20 Jul 2007 15:24:15 +0000 (17:24 +0200)]
Comment on optionality of UCW::CGI::error_hook.

16 years agoGot rid of some more hidden references to Sherlock namespace in our modules.
Martin Mares [Fri, 20 Jul 2007 15:10:24 +0000 (17:10 +0200)]
Got rid of some more hidden references to Sherlock namespace in our modules.

(This was obscured by the configure system bug which caused the modules
not to be built at all.)

16 years agoLast bits of the CGI.pm move.
Martin Mares [Fri, 20 Jul 2007 15:01:04 +0000 (17:01 +0200)]
Last bits of the CGI.pm move.

16 years agoCGI: Added error handling and strictness.
Martin Mares [Fri, 20 Jul 2007 14:36:48 +0000 (16:36 +0200)]
CGI: Added error handling and strictness.

16 years agoCGI: Added parsing of multi-part POSTed forms (file uploads etc.)
Martin Mares [Fri, 20 Jul 2007 14:35:45 +0000 (16:35 +0200)]
CGI: Added parsing of multi-part POSTed forms (file uploads etc.)

In addition to that, we accept parameters listed in URL not only for
GET requests, but also for POSTs.

16 years agoCGI: Added "multiline" flag, which allows newline in parameter values.
Martin Mares [Fri, 20 Jul 2007 14:33:26 +0000 (16:33 +0200)]
CGI: Added "multiline" flag, which allows newline in parameter values.

16 years agoCGI: Added url_param_escape() which writes spaces as "+".
Martin Mares [Fri, 20 Jul 2007 14:32:17 +0000 (16:32 +0200)]
CGI: Added url_param_escape() which writes spaces as "+".

Use this function when genering self-ref URLs to save URL space.

16 years agoCGI: make_out_args() handles undefs correctly.
Martin Mares [Fri, 20 Jul 2007 14:30:10 +0000 (16:30 +0200)]
CGI: make_out_args() handles undefs correctly.

16 years agoCGI: Added functions for parsing of HTTP headers.
Martin Mares [Fri, 20 Jul 2007 14:28:35 +0000 (16:28 +0200)]
CGI: Added functions for parsing of HTTP headers.

16 years agoCGI: Added functions for cookies.
Martin Mares [Fri, 20 Jul 2007 14:27:07 +0000 (16:27 +0200)]
CGI: Added functions for cookies.

16 years agoMoved CGI.pm to UCW namespace.
Martin Mares [Fri, 20 Jul 2007 14:21:56 +0000 (16:21 +0200)]
Moved CGI.pm to UCW namespace.

16 years agoSome Perl modules have moved to UCW namespace.
Martin Mares [Fri, 20 Jul 2007 12:43:09 +0000 (14:43 +0200)]
Some Perl modules have moved to UCW namespace.

16 years agoSplit Perl modules to Sherlock and UCW namespaces as we already do with C libraries.
Martin Mares [Fri, 20 Jul 2007 12:42:26 +0000 (14:42 +0200)]
Split Perl modules to Sherlock and UCW namespaces as we already do with C libraries.

16 years agoMakefile: fixed compilation of tests
Pavel Charvat [Fri, 20 Jul 2007 08:54:25 +0000 (10:54 +0200)]
Makefile: fixed compilation of tests

16 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Thu, 19 Jul 2007 20:09:13 +0000 (22:09 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

16 years agoMerge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git
Martin Mares [Thu, 19 Jul 2007 11:58:23 +0000 (13:58 +0200)]
Merge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git

Merged with the dev-make branch. Lo and behold, new makefiles are there!

16 years agolibucw: removed utf8_check routine... it did not check correct UTF-8
Pavel Charvat [Thu, 19 Jul 2007 11:48:47 +0000 (13:48 +0200)]
libucw: removed utf8_check routine... it did not check correct UTF-8
anyway, only a subset

16 years ago`make clean' no longer unconfigures the package, it only deletes
Martin Mares [Thu, 19 Jul 2007 11:03:46 +0000 (13:03 +0200)]
`make clean' no longer unconfigures the package, it only deletes
all object files.

This fulfils an old wish by Tom Valla.

16 years agoMoved autoconf.h from obj/lib to obj.
Martin Mares [Thu, 19 Jul 2007 11:01:04 +0000 (13:01 +0200)]
Moved autoconf.h from obj/lib to obj.

It is not specific to libucw (although it is currently included from
lib/config.h, it makes sense to use the configuration mechanism without
the rest of libucw) and, more importantly, it allows us to distinguish
between cleaning object files and unconfiguring the package.

16 years agoSimplified clean targets.
Martin Mares [Thu, 19 Jul 2007 10:53:49 +0000 (12:53 +0200)]
Simplified clean targets.

16 years agoautoconf.h needs to be handled differently, since it is copied from obj/lib
Martin Mares [Thu, 19 Jul 2007 10:41:37 +0000 (12:41 +0200)]
autoconf.h needs to be handled differently, since it is copied from obj/lib
instead of src/lib.

The public API works again.

16 years agoUnfortunately, libraries with public API need an extra rule for their .pc.
Martin Mares [Thu, 19 Jul 2007 09:32:04 +0000 (11:32 +0200)]
Unfortunately, libraries with public API need an extra rule for their .pc.

16 years agoSet `s' and `o' variables in configure.
Martin Mares [Wed, 18 Jul 2007 21:21:22 +0000 (23:21 +0200)]
Set `s' and `o' variables in configure.

This helps us avoid explicit references to SRCDIR in the top-level Makefile.

16 years agoUse msg() instead of log().
Martin Mares [Wed, 18 Jul 2007 19:59:32 +0000 (21:59 +0200)]
Use msg() instead of log().

16 years agoRemoved another bunch of unneeded dependencies on sherlock/sherlock.h.
Martin Mares [Wed, 18 Jul 2007 19:59:17 +0000 (21:59 +0200)]
Removed another bunch of unneeded dependencies on sherlock/sherlock.h.

16 years agoRemoved unnecessary depedencies on sherlock/sherlock.h.
Martin Mares [Wed, 18 Jul 2007 19:57:07 +0000 (21:57 +0200)]
Removed unnecessary depedencies on sherlock/sherlock.h.

16 years agoSome of the directories in run/ hierarchy are not dependent on Sherlock.
Martin Mares [Wed, 18 Jul 2007 19:43:30 +0000 (21:43 +0200)]
Some of the directories in run/ hierarchy are not dependent on Sherlock.

16 years agoFixed const qualifiers in regex library.
Martin Mares [Wed, 18 Jul 2007 19:43:08 +0000 (21:43 +0200)]
Fixed const qualifiers in regex library.

(The wrong ones were used in non-default compilation modes.)

16 years agoSplit the top-level Makefile to three parts.
Martin Mares [Wed, 18 Jul 2007 14:20:58 +0000 (16:20 +0200)]
Split the top-level Makefile to three parts.

Maketop and Makebottom contain the generic parts, which are useful for
other projects as well, while Makefile includes them and contains the
parts specific for Sherlock.

16 years agoMerge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git#dev-make
Martin Mares [Wed, 18 Jul 2007 13:56:27 +0000 (15:56 +0200)]
Merge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git#dev-make

16 years agoCleaned up insallation of library API.
Martin Mares [Wed, 18 Jul 2007 13:56:19 +0000 (15:56 +0200)]
Cleaned up insallation of library API.

16 years ago"-nt" behaves randomly on non-existent files, so check existence first.
Martin Mares [Wed, 18 Jul 2007 08:48:01 +0000 (10:48 +0200)]
"-nt" behaves randomly on non-existent files, so check existence first.

16 years agoFirst bits of installation of .pc files.
Martin Mares [Tue, 17 Jul 2007 18:07:26 +0000 (20:07 +0200)]
First bits of installation of .pc files.

(So far, the paths are relative, so they are of doubtful use, but
the main bits are here.)

16 years agoFixed depedencies of libimages.
Martin Mares [Tue, 17 Jul 2007 17:27:59 +0000 (19:27 +0200)]
Fixed depedencies of libimages.

16 years agoThe pkg-config variables have no default value.
Martin Mares [Tue, 17 Jul 2007 17:04:00 +0000 (19:04 +0200)]
The pkg-config variables have no default value.

16 years agoUse pkg-config to handle library dependencies.
Martin Mares [Tue, 17 Jul 2007 17:00:58 +0000 (19:00 +0200)]
Use pkg-config to handle library dependencies.

The original system of library dependencies was very confusing and brittle,
so I have decided to use pkg-config instead.

Each library now has its .pc file, which is processed by genconf, so conditionals
and variable substitutions can be used. You need to specify three Makefile
rules:
(1) libsomething.a to build the static version
(2) libsomething.so to build the shared version
(3) libsomething.pc for the pkg-config metadata; this target should
    depend on .pc files of all libraries required by this library.
    @DEPS@ in the .pc file will be substituted by the names of such
    libraries, so you can just say "Requires: @DEPS@" to handle
    dependencies on other Sherlock libraries.

To link with a library, just add a depedency on its .pc file. The default
rules are smart enough to run pkg-config and construct the appropriate
linker flags.

If you want to link with an external library, the LIBS variable still works.

If you want an internal library to depend on an external library, just
mention it in the linker flags in the .pc file.

16 years agoSubstitute not only configuration switches, but also environment variables.
Martin Mares [Tue, 17 Jul 2007 16:39:33 +0000 (18:39 +0200)]
Substitute not only configuration switches, but also environment variables.

16 years agofixed a well hidden bug in file fastbufs
Pavel Charvat [Tue, 17 Jul 2007 13:54:06 +0000 (15:54 +0200)]
fixed a well hidden bug in file fastbufs

16 years agoUnified installation of includes.
Martin Mares [Tue, 17 Jul 2007 13:22:30 +0000 (15:22 +0200)]
Unified installation of includes.

16 years agoIntroduced the verbose switch.
Martin Mares [Tue, 17 Jul 2007 13:01:35 +0000 (15:01 +0200)]
Introduced the verbose switch.

Makefiles are now silent by default and they only write single-line
messages on what's currently being done.

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Mon, 9 Jul 2007 08:47:56 +0000 (10:47 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

17 years agotypos
Pavel Charvat [Mon, 25 Jun 2007 16:07:21 +0000 (18:07 +0200)]
typos

17 years agofew "byte *" -> "char *" conversions
Pavel Charvat [Mon, 25 Jun 2007 14:42:00 +0000 (16:42 +0200)]
few "byte *" -> "char *" conversions

17 years agonoted that utf8_{put/get} supports only a subset of the Unicode range
Pavel Charvat [Mon, 25 Jun 2007 14:39:40 +0000 (16:39 +0200)]
noted that utf8_{put/get} supports only a subset of the Unicode range

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Mon, 25 Jun 2007 13:49:33 +0000 (15:49 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

17 years agoconverted byte ** -> char ** in sepsplit
Pavel Charvat [Mon, 25 Jun 2007 12:37:27 +0000 (14:37 +0200)]
converted byte ** -> char ** in sepsplit

17 years agoreplaced several "byte *" -> "char *", mostly in the configuration system
Pavel Charvat [Mon, 25 Jun 2007 12:12:57 +0000 (14:12 +0200)]
replaced several "byte *" -> "char *", mostly in the configuration system

17 years agofastbufs: byte * -> char *
Pavel Charvat [Mon, 25 Jun 2007 10:01:50 +0000 (12:01 +0200)]
fastbufs: byte * -> char *

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Mon, 25 Jun 2007 08:38:49 +0000 (10:38 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

17 years agohashfunc: char-ified.
Martin Mares [Fri, 22 Jun 2007 09:38:54 +0000 (11:38 +0200)]
hashfunc: char-ified.

17 years agoUse `char *' instead of `byte *' for strings
Martin Mares [Fri, 22 Jun 2007 09:31:26 +0000 (11:31 +0200)]
Use `char *' instead of `byte *' for strings
at places where it is straight-forward.

17 years agoAdded missing parameter names to function prototypes.
Martin Mares [Fri, 22 Jun 2007 08:26:30 +0000 (10:26 +0200)]
Added missing parameter names to function prototypes.

(They were correct, but this is definitely more readable.)

17 years agolib: convert log->msg in Darwin-#ifdef'ed code
Robert Spalek [Fri, 22 Jun 2007 01:39:27 +0000 (18:39 -0700)]
lib: convert log->msg in Darwin-#ifdef'ed code

17 years agolibimages: removed experiments with Hilbert curves
Pavel Charvat [Thu, 21 Jun 2007 13:47:46 +0000 (15:47 +0200)]
libimages: removed experiments with Hilbert curves

17 years agorun testing utities in rundir instead of in source tree
Pavel Charvat [Thu, 21 Jun 2007 13:13:49 +0000 (15:13 +0200)]
run testing utities in rundir instead of in source tree

17 years agoThe great conversion of log() logging function to msg().
Pavel Charvat [Thu, 21 Jun 2007 12:18:53 +0000 (14:18 +0200)]
The great conversion of log() logging function to msg().
Sherlock.h still defines log() alias to UCW's msg().
Lib/math.h has been moved to sherlock/math.h.

17 years agolicharset: added const qualifiers
Pavel Charvat [Thu, 21 Jun 2007 09:22:13 +0000 (11:22 +0200)]
licharset: added const qualifiers

17 years agolibucw: added more const qualifiers
Pavel Charvat [Thu, 21 Jun 2007 09:09:42 +0000 (11:09 +0200)]
libucw: added more const qualifiers

17 years agofixed few compilation warnings
Pavel Charvat [Thu, 21 Jun 2007 08:43:57 +0000 (10:43 +0200)]
fixed few compilation warnings

17 years agolibucw: added several const qualifiers
Pavel Charvat [Thu, 21 Jun 2007 08:37:40 +0000 (10:37 +0200)]
libucw: added several const qualifiers

17 years agoMoved detaching of stdout from log_file() to the daemon-helper.
Martin Mares [Wed, 20 Jun 2007 08:04:08 +0000 (10:04 +0200)]
Moved detaching of stdout from log_file() to the daemon-helper.

17 years agoDocumented bgets() and friends per popular request.
Martin Mares [Wed, 20 Jun 2007 07:47:01 +0000 (09:47 +0200)]
Documented bgets() and friends per popular request.

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Tue, 19 Jun 2007 07:22:59 +0000 (09:22 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

17 years agosimplified usage utf8_get
Pavel Charvat [Thu, 14 Jun 2007 13:29:46 +0000 (15:29 +0200)]
simplified usage utf8_get

17 years agobackbuf support in parametrized fastbuf
Pavel Charvat [Thu, 7 Jun 2007 07:35:25 +0000 (09:35 +0200)]
backbuf support in parametrized fastbuf

17 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Thu, 7 Jun 2007 06:31:58 +0000 (08:31 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

17 years agofb-file: some comments and automatic tests
Pavel Charvat [Thu, 7 Jun 2007 06:30:19 +0000 (08:30 +0200)]
fb-file: some comments and automatic tests

17 years agodocumented fbpool briefly
Pavel Charvat [Wed, 6 Jun 2007 08:24:23 +0000 (10:24 +0200)]
documented fbpool briefly

17 years agofixed fb-grow tester
Pavel Charvat [Wed, 6 Jun 2007 08:18:37 +0000 (10:18 +0200)]
fixed fb-grow tester

17 years agoadded some fastbuf tests
Pavel Charvat [Wed, 6 Jun 2007 07:43:59 +0000 (09:43 +0200)]
added some fastbuf tests

17 years agofastbufs: added some I/O checks
Pavel Charvat [Wed, 6 Jun 2007 07:30:03 +0000 (09:30 +0200)]
fastbufs: added some I/O checks

17 years agosimple fastbuf on memory pools
Pavel Charvat [Wed, 6 Jun 2007 07:03:20 +0000 (09:03 +0200)]
simple fastbuf on memory pools

17 years agoported fastbuf with effective backwards reading... incomplete
Pavel Charvat [Wed, 6 Jun 2007 04:51:00 +0000 (06:51 +0200)]
ported fastbuf with effective backwards reading... incomplete

17 years agogettid: fixed a compilation bug on gentoo
Pavel Charvat [Tue, 5 Jun 2007 11:45:13 +0000 (13:45 +0200)]
gettid: fixed a compilation bug on gentoo

17 years agoAdded missing includes to libucw API.
Martin Mares [Mon, 4 Jun 2007 10:54:45 +0000 (12:54 +0200)]
Added missing includes to libucw API.

17 years agoExported the addrmasks and their matching.
Martin Mares [Sun, 3 Jun 2007 19:38:13 +0000 (21:38 +0200)]
Exported the addrmasks and their matching.

17 years agobig_alloc: check if big_alloc and big_free sizes match
Pavel Charvat [Fri, 1 Jun 2007 13:45:48 +0000 (15:45 +0200)]
big_alloc: check if big_alloc and big_free sizes match

17 years agolib: added {big,page}_alloc_zero routines
Pavel Charvat [Fri, 1 Jun 2007 12:40:02 +0000 (14:40 +0200)]
lib: added {big,page}_alloc_zero routines

17 years agolib: removed breada :-)
Pavel Charvat [Fri, 1 Jun 2007 09:42:22 +0000 (11:42 +0200)]
lib: removed breada :-)

17 years agofastbufs: added a new function for safe reading of fixed-length array
Pavel Charvat [Fri, 1 Jun 2007 08:46:12 +0000 (10:46 +0200)]
fastbufs: added a new function for safe reading of fixed-length array

17 years agoFixed a bug in fb-mmap.
Pavel Charvat [Thu, 31 May 2007 19:23:04 +0000 (21:23 +0200)]
Fixed a bug in fb-mmap.

17 years agoCleaned up the fastbuf interfaces.
Martin Mares [Tue, 29 May 2007 20:39:31 +0000 (22:39 +0200)]
Cleaned up the fastbuf interfaces.

The high-level functions of fb-mmap and fb-direct have been removed.

17 years agoSorter buckets now use the parametrized fastbuf interface, too.
Martin Mares [Tue, 29 May 2007 20:38:45 +0000 (22:38 +0200)]
Sorter buckets now use the parametrized fastbuf interface, too.

17 years agoAdded a couple of comments.
Martin Mares [Tue, 29 May 2007 20:16:59 +0000 (22:16 +0200)]
Added a couple of comments.