]> mj.ucw.cz Git - libucw.git/log
libucw.git
15 years agoConfigure: Use `die "...\n"' for all error messages.
Martin Mares [Sun, 9 Nov 2008 21:12:59 +0000 (22:12 +0100)]
Configure: Use `die "...\n"' for all error messages.

This way, Perl does not clutter the output with the location of the
error in the source file, which is usually completely useless.

15 years agoExample: Fix the previous commit.
Martin Mares [Sun, 9 Nov 2008 21:11:23 +0000 (22:11 +0100)]
Example: Fix the previous commit.

(pkg-config does not like testing the version and reading a variable simultaneously.)

15 years agoExample: Request a new version of libucw.
Martin Mares [Sun, 9 Nov 2008 21:07:30 +0000 (22:07 +0100)]
Example: Request a new version of libucw.

15 years agoBuild example: Word polishing.
Martin Mares [Sun, 9 Nov 2008 20:56:11 +0000 (21:56 +0100)]
Build example: Word polishing.

15 years agoBuild: Renamed BUILDSYS_PATH to BUILDSYS to make it consistent with the rest.
Martin Mares [Sun, 9 Nov 2008 20:47:23 +0000 (21:47 +0100)]
Build: Renamed BUILDSYS_PATH to BUILDSYS to make it consistent with the rest.

15 years agoExample of extern project
Michal Vaner [Sun, 9 Nov 2008 18:24:09 +0000 (19:24 +0100)]
Example of extern project

A project that does not carry libucw with itself, not even it's build
system, but uses its build system installed locally.

15 years agoConfigure module to find the build system
Michal Vaner [Sun, 9 Nov 2008 18:05:42 +0000 (19:05 +0100)]
Configure module to find the build system

15 years agoAllow the build system live anywhere
Michal Vaner [Sun, 9 Nov 2008 15:46:28 +0000 (16:46 +0100)]
Allow the build system live anywhere

15 years agoProvide path to the build system
Michal Vaner [Sun, 9 Nov 2008 14:02:16 +0000 (15:02 +0100)]
Provide path to the build system

15 years agoInstall the build system
Michal Vaner [Sun, 9 Nov 2008 15:08:46 +0000 (16:08 +0100)]
Install the build system

15 years agoInstall rest of UCW perl modules
Michal Vaner [Sun, 9 Nov 2008 10:08:08 +0000 (11:08 +0100)]
Install rest of UCW perl modules

15 years agoInstall UCW perl modules
Michal Vaner [Sat, 8 Nov 2008 12:35:10 +0000 (13:35 +0100)]
Install UCW perl modules

Other modules, like Ulimits, needs installation routines.

15 years agoStore path to perl modules into pkgconfig
Michal Vaner [Fri, 7 Nov 2008 14:18:11 +0000 (15:18 +0100)]
Store path to perl modules into pkgconfig

15 years agoSet CONFIG_URL_ESCAPE_COMPAT flag
Michal Vaner [Fri, 7 Nov 2008 14:00:35 +0000 (15:00 +0100)]
Set CONFIG_URL_ESCAPE_COMPAT flag

It is set when we compile sherlock, since the new behaviour would break
a running installation. It is not set when only the libraries are
compiled.

15 years agoAdd flag to use old URL encoding
Michal Vaner [Fri, 7 Nov 2008 13:33:59 +0000 (14:33 +0100)]
Add flag to use old URL encoding

The new encoding is not compatible with already running sherlock
installation. Adds a CONFIG_URL_ESCAPE_COMPAT compile switch to keep the
old behaviour.

15 years agoDoc. system: parse complicated structures
Michal Vaner [Thu, 6 Nov 2008 22:53:22 +0000 (23:53 +0100)]
Doc. system: parse complicated structures

It stopped on the first }, now they are counted properly.

15 years agoSimplified 'unsigned char' -> 'byte'.
Pavel Charvat [Thu, 6 Nov 2008 16:39:04 +0000 (17:39 +0100)]
Simplified 'unsigned char' -> 'byte'.

15 years agoDoc: Fixed a typo.
Pavel Charvat [Thu, 6 Nov 2008 16:37:30 +0000 (17:37 +0100)]
Doc: Fixed a typo.

15 years agoDocumented chartype.h and unicode.h.
Pavel Charvat [Thu, 6 Nov 2008 16:26:41 +0000 (17:26 +0100)]
Documented chartype.h and unicode.h.
The Cxvalue macro converted to a function.

15 years agoDoc: More bits about linked lists.
Pavel Charvat [Thu, 6 Nov 2008 14:44:30 +0000 (15:44 +0100)]
Doc: More bits about linked lists.

15 years agoDoc: Fixed a typo.
Pavel Charvat [Thu, 6 Nov 2008 14:03:16 +0000 (15:03 +0100)]
Doc: Fixed a typo.

15 years agoucw docs: forgotten links in index
Michal Vaner [Thu, 6 Nov 2008 13:52:05 +0000 (14:52 +0100)]
ucw docs: forgotten links in index

The links to growing buffers were missing.

15 years agoMerge branch 'dev-lib' of git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock into...
Pavel Charvat [Thu, 6 Nov 2008 13:36:58 +0000 (14:36 +0100)]
Merge branch 'dev-lib' of git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock into dev-lib

15 years agoDoc: Partially documented linked lists.
Pavel Charvat [Thu, 6 Nov 2008 13:36:36 +0000 (14:36 +0100)]
Doc: Partially documented linked lists.

15 years agoFix installation of config files
Michal Vaner [Thu, 6 Nov 2008 13:23:17 +0000 (14:23 +0100)]
Fix installation of config files

Transition to etc/ broke some rules with hardcoded cf.

15 years agoDoc: Documented ucw/unaligned.h.
Pavel Charvat [Thu, 6 Nov 2008 12:03:45 +0000 (13:03 +0100)]
Doc: Documented ucw/unaligned.h.

15 years agoDoc: Fixed a typo.
Pavel Charvat [Thu, 6 Nov 2008 12:03:36 +0000 (13:03 +0100)]
Doc: Fixed a typo.

15 years agoDoc: Cosmetic fixes.
Martin Mares [Thu, 6 Nov 2008 10:46:17 +0000 (11:46 +0100)]
Doc: Cosmetic fixes.

15 years agoDoc: Described ff-binary.
Pavel Charvat [Thu, 6 Nov 2008 10:03:41 +0000 (11:03 +0100)]
Doc: Described ff-binary.

15 years agoDoc: Described the interface for direct I/O on fastbufs.
Pavel Charvat [Thu, 6 Nov 2008 09:37:27 +0000 (10:37 +0100)]
Doc: Described the interface for direct I/O on fastbufs.

15 years agoMerge branch 'dev-lib' of ssh://git.ucw.cz/projects/sherlock/GIT/sherlock into dev-lib
Michal Vaner [Tue, 4 Nov 2008 21:48:35 +0000 (22:48 +0100)]
Merge branch 'dev-lib' of ssh://git.ucw.cz/projects/sherlock/GIT/sherlock into dev-lib

15 years agoucw docs: growing buffers
Michal Vaner [Tue, 4 Nov 2008 21:46:56 +0000 (22:46 +0100)]
ucw docs: growing buffers

15 years agoDoc system: docs for macro generics extraction
Michal Vaner [Tue, 4 Nov 2008 21:45:48 +0000 (22:45 +0100)]
Doc system: docs for macro generics extraction

15 years agoConfigure: Prepare for installation of Configure modules.
Martin Mares [Tue, 4 Nov 2008 18:12:20 +0000 (19:12 +0100)]
Configure: Prepare for installation of Configure modules.

So far, they are installed only to the run/lib/perl5/
hierarchy, since we do not have targets for site-wide
installation of Perl modules yet.

15 years agoDoc. system: support for macro generics
Michal Vaner [Tue, 4 Nov 2008 18:11:41 +0000 (19:11 +0100)]
Doc. system: support for macro generics

The documentation system handles generics generated by preprocessor. It
needs some help from the documentation writer, thought.

15 years agoDoc: Improved fastbuf documentation.
Martin Mares [Tue, 4 Nov 2008 13:26:33 +0000 (14:26 +0100)]
Doc: Improved fastbuf documentation.

15 years agoDocumented some details about fastbufs.
Pavel Charvat [Tue, 4 Nov 2008 12:03:12 +0000 (13:03 +0100)]
Documented some details about fastbufs.
Something is not true now, but it sould be after we merge dev-lib with dev-trans.

15 years agoConfigure: Moved interaction with pkg-config to a separate module (continued).
Martin Mares [Mon, 3 Nov 2008 22:48:38 +0000 (23:48 +0100)]
Configure: Moved interaction with pkg-config to a separate module (continued).

Sorry, I have commited only a half of the change.

15 years agoConfigure: Moved interaction with pkg-config to a separate module.
Martin Mares [Mon, 3 Nov 2008 22:48:04 +0000 (23:48 +0100)]
Configure: Moved interaction with pkg-config to a separate module.

15 years agoBuild system: By default, we use `etc' instead of `cf' as a CONFIG_DIR.
Martin Mares [Mon, 3 Nov 2008 22:42:38 +0000 (23:42 +0100)]
Build system: By default, we use `etc' instead of `cf' as a CONFIG_DIR.

Sherlock however overrides this back to `cf' for backward compatibility.

15 years agoSimplified calls of sorter/array-simple.h.
Martin Mares [Mon, 3 Nov 2008 22:39:46 +0000 (23:39 +0100)]
Simplified calls of sorter/array-simple.h.

Use the two-argument form instead of ASORT_EXTRA_ARGS where
convenient.

15 years agoBring interface of sorter/array-simple.h in line with sorter/array.h.
Martin Mares [Mon, 3 Nov 2008 22:39:03 +0000 (23:39 +0100)]
Bring interface of sorter/array-simple.h in line with sorter/array.h.

ASORT_ELT is no longer mandatory; if it is not used, the sorting function
gets a pointer of an array to be sorted as its first argument.

15 years agoAnother reference to arraysort.
Martin Mares [Mon, 3 Nov 2008 22:27:19 +0000 (23:27 +0100)]
Another reference to arraysort.

15 years agoRemoved the reference to arraysort in the doc.
Martin Mares [Mon, 3 Nov 2008 22:27:06 +0000 (23:27 +0100)]
Removed the reference to arraysort in the doc.

15 years agoUpdate all calls to arraysort.h.
Martin Mares [Mon, 3 Nov 2008 22:25:35 +0000 (23:25 +0100)]
Update all calls to arraysort.h.

15 years agoMoved ucw/arraysort.h to ucw/sorter/array-simple.h.
Martin Mares [Mon, 3 Nov 2008 22:24:59 +0000 (23:24 +0100)]
Moved ucw/arraysort.h to ucw/sorter/array-simple.h.

15 years agoUse .gitignore instead of hand-installing build/git/exclude.
Martin Mares [Mon, 3 Nov 2008 22:11:24 +0000 (23:11 +0100)]
Use .gitignore instead of hand-installing build/git/exclude.

15 years agoConfigure: Some versions of asciidoc print the version number to stderr.
Martin Mares [Mon, 3 Nov 2008 18:10:32 +0000 (19:10 +0100)]
Configure: Some versions of asciidoc print the version number to stderr.

15 years agoucw docs: make the language more English
Michal Vaner [Mon, 3 Nov 2008 14:08:46 +0000 (15:08 +0100)]
ucw docs: make the language more English

15 years agoucw docs: Generic headers
Michal Vaner [Sun, 2 Nov 2008 13:48:38 +0000 (14:48 +0100)]
ucw docs: Generic headers

15 years agoucw docs: File activity in mainloop
Michal Vaner [Sun, 2 Nov 2008 11:28:45 +0000 (12:28 +0100)]
ucw docs: File activity in mainloop

15 years agoDoc system: Check for asciidoc only when needed
Michal Vaner [Fri, 31 Oct 2008 19:31:14 +0000 (20:31 +0100)]
Doc system: Check for asciidoc only when needed

15 years agoDoc system: Typos
Michal Vaner [Fri, 31 Oct 2008 18:53:05 +0000 (19:53 +0100)]
Doc system: Typos

15 years agoBuild system: Do not clean obj/ucw/autoconf.h
Michal Vaner [Fri, 31 Oct 2008 15:27:24 +0000 (16:27 +0100)]
Build system: Do not clean obj/ucw/autoconf.h

It is generated by configure, it should survive make clean.

15 years agoFree dist: fix installation of lib-only package
Michal Vaner [Fri, 31 Oct 2008 15:13:29 +0000 (16:13 +0100)]
Free dist: fix installation of lib-only package

15 years agoDoc system: Detect asciidoc
Michal Vaner [Fri, 31 Oct 2008 14:57:21 +0000 (15:57 +0100)]
Doc system: Detect asciidoc

And decide if we build documentation.

15 years agoDoc system: install if CONFIG_DOC
Michal Vaner [Fri, 31 Oct 2008 14:19:23 +0000 (15:19 +0100)]
Doc system: install if CONFIG_DOC

If the documentation is included in default target, install it too. If
it is not, allow installation with make install-ucw-docs.

15 years agoDoc system: Allow building in default target
Michal Vaner [Fri, 31 Oct 2008 13:57:01 +0000 (14:57 +0100)]
Doc system: Allow building in default target

If CONFIG_DOC is turned on, documentation is build with everything else,
in default target.

15 years agoucw docs: Group undocumented modules together
Michal Vaner [Fri, 31 Oct 2008 12:56:59 +0000 (13:56 +0100)]
ucw docs: Group undocumented modules together

15 years agoucw docs: Move the list of undocumented modules
Michal Vaner [Thu, 30 Oct 2008 23:45:06 +0000 (00:45 +0100)]
ucw docs: Move the list of undocumented modules

The list was too long and carried too little information, moved it
lower.

15 years agoucw docs: Add missing documentation to index
Michal Vaner [Thu, 30 Oct 2008 23:42:49 +0000 (00:42 +0100)]
ucw docs: Add missing documentation to index

The configure and config files were created in different branch than the
index, added them.

15 years agoMerge branch 'dev-lib' of ssh://git.ucw.cz/projects/sherlock/GIT/sherlock into dev-lib
Michal Vaner [Thu, 30 Oct 2008 23:39:28 +0000 (00:39 +0100)]
Merge branch 'dev-lib' of ssh://git.ucw.cz/projects/sherlock/GIT/sherlock into dev-lib

15 years agoucw docs: List of undocumented modules
Michal Vaner [Thu, 30 Oct 2008 23:38:43 +0000 (00:38 +0100)]
ucw docs: List of undocumented modules

Only first shot, still needs some sorting

15 years agoFixed more tests which failed with shared libraries.
Martin Mares [Thu, 30 Oct 2008 23:13:04 +0000 (00:13 +0100)]
Fixed more tests which failed with shared libraries.

15 years agoMerge branch 'dev-lib' of ssh://git.ucw.cz/projects/sherlock/GIT/sherlock into dev-lib
Martin Mares [Thu, 30 Oct 2008 23:01:00 +0000 (00:01 +0100)]
Merge branch 'dev-lib' of ssh://git.ucw.cz/projects/sherlock/GIT/sherlock into dev-lib

15 years agoDoc: Improved mainloop intro and also the description of timers.
Martin Mares [Thu, 30 Oct 2008 23:00:56 +0000 (00:00 +0100)]
Doc: Improved mainloop intro and also the description of timers.

15 years agoFixed fb-atomic.test.
Martin Mares [Thu, 30 Oct 2008 22:43:28 +0000 (23:43 +0100)]
Fixed fb-atomic.test.

The test was failing whenever CONFIG_SHARED was set, because in such cases the
config file constructor was called twice and the config machinery died of
duplicate sections.

15 years agoFB_ATOMIC_TRACE no longer exists.
Martin Mares [Thu, 30 Oct 2008 22:41:49 +0000 (23:41 +0100)]
FB_ATOMIC_TRACE no longer exists.

15 years agoDoc: Improved the title page.
Martin Mares [Thu, 30 Oct 2008 22:39:49 +0000 (23:39 +0100)]
Doc: Improved the title page.

15 years agoMerge branch 'dev-free' into dev-lib
Martin Mares [Thu, 30 Oct 2008 22:19:10 +0000 (23:19 +0100)]
Merge branch 'dev-free' into dev-lib

Conflicts:

ucw/doc/Makefile

15 years agoLibUCW: Reverted the config.h hack.
Martin Mares [Thu, 30 Oct 2008 22:07:15 +0000 (23:07 +0100)]
LibUCW: Reverted the config.h hack.

Unfortunately, the public version of config.h prepared in obj/ucw/
gets included by private source files as well, which leads to inclusion
of the public autoconf.h and so to invisibility of private symbols.

15 years agoSplit cf/library to cf/libucw and cf/libsherlock.
Martin Mares [Thu, 30 Oct 2008 21:52:16 +0000 (22:52 +0100)]
Split cf/library to cf/libucw and cf/libsherlock.

Each part is installed together in the respective library's install target.

15 years agoLibUCW: Export version of the libraries as well as of Sherlock.
Martin Mares [Thu, 30 Oct 2008 21:38:08 +0000 (22:38 +0100)]
LibUCW: Export version of the libraries as well as of Sherlock.

15 years agoLibUCW: Entrust generation of ucw/autoconf.h to the configure machinery.
Martin Mares [Thu, 30 Oct 2008 21:33:38 +0000 (22:33 +0100)]
LibUCW: Entrust generation of ucw/autoconf.h to the configure machinery.

This is much nicer than the sed script invoked from ucw/Makefile.

15 years agoConfigure: Enabled strict mode and localized @cpu.
Martin Mares [Thu, 30 Oct 2008 21:28:02 +0000 (22:28 +0100)]
Configure: Enabled strict mode and localized @cpu.

15 years agoConfigure: Replaced debPrint() by DebugDump().
Martin Mares [Thu, 30 Oct 2008 21:27:04 +0000 (22:27 +0100)]
Configure: Replaced debPrint() by DebugDump().

15 years agoConfigure: Fixed a silly typo.
Martin Mares [Thu, 30 Oct 2008 21:26:01 +0000 (22:26 +0100)]
Configure: Fixed a silly typo.

15 years agoConfigure: Introduce AtWrite hooks and handle autoconf.h by them.
Martin Mares [Thu, 30 Oct 2008 21:24:46 +0000 (22:24 +0100)]
Configure: Introduce AtWrite hooks and handle autoconf.h by them.

15 years agoUpdate references to autoconf.cfg.
Martin Mares [Thu, 30 Oct 2008 21:01:12 +0000 (22:01 +0100)]
Update references to autoconf.cfg.

15 years agoConfigure: Added a mechanism for registering post-config hooks.
Martin Mares [Thu, 30 Oct 2008 20:56:54 +0000 (21:56 +0100)]
Configure: Added a mechanism for registering post-config hooks.

15 years agoAdded cpp-parseable version string to autoconf.h.
Martin Mares [Thu, 30 Oct 2008 20:45:06 +0000 (21:45 +0100)]
Added cpp-parseable version string to autoconf.h.

15 years agoFilter config.h and autoconf.h in the public API.
Martin Mares [Thu, 30 Oct 2008 19:48:02 +0000 (20:48 +0100)]
Filter config.h and autoconf.h in the public API.

This tries to avoid leaking private symbols to autoconf.h which is a part
of the public API.

15 years agoTwo more references to CONFIG_PARTMAP_IS_MMAP.
Martin Mares [Thu, 30 Oct 2008 19:20:55 +0000 (20:20 +0100)]
Two more references to CONFIG_PARTMAP_IS_MMAP.

15 years agoMoved *_IS_MMAP to CONFIG_UCW_* namespace.
Martin Mares [Thu, 30 Oct 2008 19:13:31 +0000 (20:13 +0100)]
Moved *_IS_MMAP to CONFIG_UCW_* namespace.

BTW, PARTMAP_IS_MMAP was broken for a long time: the configure script
was setting PARTMAP_IS_MMAP, while partmap.c expected CONFIG_PARTMAP_IS_MMAP.

15 years agoBetter installation of ucw/autoconf.h.
Martin Mares [Thu, 30 Oct 2008 18:48:36 +0000 (19:48 +0100)]
Better installation of ucw/autoconf.h.

The autoconf header should be installed in the install-libucw target,
I do not see any need for handling it separately.

15 years agoRemoved default-install from the generic build system.
Martin Mares [Thu, 30 Oct 2008 18:47:11 +0000 (19:47 +0100)]
Removed default-install from the generic build system.

The default-install target is very specific for Sherlock and nobody
else seems to use build/install. I have therefore moved this target
back to the top-level Makefile as it was when the world was young.

However, if we compile only the libraries (CONFIG_SHERLOCK is unset),
we use the standard install target identical the one in free/libs/Makefile.

15 years agoSlightly better names for configuration modules.
Martin Mares [Thu, 30 Oct 2008 18:11:41 +0000 (19:11 +0100)]
Slightly better names for configuration modules.

15 years agoucw docs: Mainloop
Michal Vaner [Thu, 30 Oct 2008 14:35:21 +0000 (15:35 +0100)]
ucw docs: Mainloop

* May still need an example
* File descriptors need to be described

15 years agoucw docs: Intro in index.html
Michal Vaner [Thu, 30 Oct 2008 13:01:19 +0000 (14:01 +0100)]
ucw docs: Intro in index.html

15 years agoGet rid of the "new" C++ keywords in ucwlib headers.
Pavel Charvat [Thu, 30 Oct 2008 09:33:49 +0000 (10:33 +0100)]
Get rid of the "new" C++ keywords in ucwlib headers.

15 years agoupdate_adler32 -> adler32_update (similar to {md5,sha1}_update)
Pavel Charvat [Thu, 30 Oct 2008 09:20:57 +0000 (10:20 +0100)]
update_adler32 -> adler32_update (similar to {md5,sha1}_update)

15 years agodefault_thread_stack_size -> ucwlib_thread_stack_size
Pavel Charvat [Thu, 30 Oct 2008 09:18:04 +0000 (10:18 +0100)]
default_thread_stack_size -> ucwlib_thread_stack_size

15 years agoidentify_protocol -> url_identify_protocol
Pavel Charvat [Thu, 30 Oct 2008 09:14:30 +0000 (10:14 +0100)]
identify_protocol -> url_identify_protocol

15 years agoAdded missing ifdef guards to ucw/*.h.
Pavel Charvat [Wed, 29 Oct 2008 09:21:49 +0000 (10:21 +0100)]
Added missing ifdef guards to ucw/*.h.

15 years agoJust renamed hash_block()'s `str' parameter to `buf'.
Pavel Charvat [Mon, 27 Oct 2008 10:48:28 +0000 (11:48 +0100)]
Just renamed hash_block()'s `str' parameter to `buf'.

15 years agoFixed few typos.
Pavel Charvat [Mon, 27 Oct 2008 10:44:31 +0000 (11:44 +0100)]
Fixed few typos.

15 years agoFixed a typo in configuration example.
Pavel Charvat [Mon, 27 Oct 2008 10:08:37 +0000 (11:08 +0100)]
Fixed a typo in configuration example.

15 years agoMerge branch 'dev-lib' of ssh://git.ucw.cz/projects/sherlock/GIT/sherlock into dev-lib
Pavel Charvat [Mon, 27 Oct 2008 10:06:45 +0000 (11:06 +0100)]
Merge branch 'dev-lib' of ssh://git.ucw.cz/projects/sherlock/GIT/sherlock into dev-lib

15 years agoshort_opts[] should be chars, not bytes
Pavel Charvat [Mon, 27 Oct 2008 10:05:47 +0000 (11:05 +0100)]
short_opts[] should be chars, not bytes

15 years agodoc system: fix "struct name;"
Michal Vaner [Sun, 26 Oct 2008 19:10:21 +0000 (20:10 +0100)]
doc system: fix "struct name;"

It was considered as a variable.

Shortened the code a little bit on the way.