]> mj.ucw.cz Git - libucw.git/log
libucw.git
23 years agoIntroduced mp_alloc_zero().
Martin Mares [Sun, 21 Jan 2001 11:07:58 +0000 (11:07 +0000)]
Introduced mp_alloc_zero().

23 years agoIntroduced xmalloc_zero().
Martin Mares [Sun, 21 Jan 2001 11:07:40 +0000 (11:07 +0000)]
Introduced xmalloc_zero().

23 years agoExported conversions between internal character codes and UCS.
Martin Mares [Wed, 17 Jan 2001 13:10:28 +0000 (13:10 +0000)]
Exported conversions between internal character codes and UCS.

23 years agoFixed a couple of bugs.
Martin Mares [Mon, 15 Jan 2001 11:30:45 +0000 (11:30 +0000)]
Fixed a couple of bugs.

23 years agorewritten, enhanced, updated, fixed
Robert Spalek [Mon, 15 Jan 2001 10:11:05 +0000 (10:11 +0000)]
rewritten, enhanced, updated, fixed

23 years agoAdded an explanatory comment.
Martin Mares [Mon, 15 Jan 2001 09:36:26 +0000 (09:36 +0000)]
Added an explanatory comment.

23 years agoGuards, guards!
Martin Mares [Sun, 14 Jan 2001 21:46:09 +0000 (21:46 +0000)]
Guards, guards!

23 years agoRemember to link object.o to the library. :)
Martin Mares [Sun, 14 Jan 2001 20:50:13 +0000 (20:50 +0000)]
Remember to link object.o to the library. :)

23 years agoAdd sh_time_t type.
Martin Mares [Sun, 14 Jan 2001 20:50:00 +0000 (20:50 +0000)]
Add sh_time_t type.

23 years agoAllow bclose(NULL).
Martin Mares [Sun, 14 Jan 2001 20:49:49 +0000 (20:49 +0000)]
Allow bclose(NULL).

23 years agoGuard against multiple inclusion.
Martin Mares [Sun, 14 Jan 2001 20:49:41 +0000 (20:49 +0000)]
Guard against multiple inclusion.

23 years agoImport object attribute handling from old Sherlock.
Martin Mares [Sun, 14 Jan 2001 20:49:29 +0000 (20:49 +0000)]
Import object attribute handling from old Sherlock.

23 years agoKeep up with conf.h changes.
Martin Mares [Sun, 14 Jan 2001 18:47:06 +0000 (18:47 +0000)]
Keep up with conf.h changes.

23 years agoKeep in sync with pools.h changes.
Martin Mares [Sun, 14 Jan 2001 18:46:28 +0000 (18:46 +0000)]
Keep in sync with pools.h changes.

23 years agoRenamed memory pool functions to "mp_*", so they don't clobber name space.
Martin Mares [Sun, 14 Jan 2001 18:46:08 +0000 (18:46 +0000)]
Renamed memory pool functions to "mp_*", so they don't clobber name space.

23 years agoAdded DEFAULT_CONFIG define which tells us the name of the master
Martin Mares [Sun, 14 Jan 2001 18:45:20 +0000 (18:45 +0000)]
Added DEFAULT_CONFIG define which tells us the name of the master
configuration file.

Added CONSTRUCTOR which is a macro generating __attribute__((constructor))
to make a function called automatically upon program startup. This is ideal
for registering of configuration sections.

23 years agoMoved #include <getopt.h> to conf.h.
Martin Mares [Sun, 14 Jan 2001 18:44:03 +0000 (18:44 +0000)]
Moved #include <getopt.h> to conf.h.

23 years agoSwitch to new logging functions.
Martin Mares [Sun, 14 Jan 2001 17:51:37 +0000 (17:51 +0000)]
Switch to new logging functions.

23 years agoNew logging mechanism. Also cleaned up lib.h.
Martin Mares [Sun, 14 Jan 2001 17:51:22 +0000 (17:51 +0000)]
New logging mechanism. Also cleaned up lib.h.

23 years agolib/conf.[ch] rewritten
Robert Spalek [Sun, 14 Jan 2001 12:16:57 +0000 (12:16 +0000)]
lib/conf.[ch] rewritten
lib/conf-test.c updated

23 years agoadded tester for conf.c, already tested and it works
Robert Spalek [Mon, 8 Jan 2001 10:27:00 +0000 (10:27 +0000)]
added tester for conf.c, already tested and it works

23 years agobugfixes
Robert Spalek [Mon, 8 Jan 2001 10:26:37 +0000 (10:26 +0000)]
bugfixes

23 years agowritten parsing config files and command line parameters, untested yet
Robert Spalek [Sun, 7 Jan 2001 21:21:53 +0000 (21:21 +0000)]
written parsing config files and command line parameters, untested yet

23 years agoWhen checking/fixing bucket file structure, adjust exit code according
Martin Mares [Sun, 7 Jan 2001 15:07:24 +0000 (15:07 +0000)]
When checking/fixing bucket file structure, adjust exit code according
to whether the file is clean or not.

23 years agoAdded a simple utility for handling of buckets and repairing damaged
Martin Mares [Sun, 7 Jan 2001 15:00:10 +0000 (15:00 +0000)]
Added a simple utility for handling of buckets and repairing damaged
bucket files.

23 years agoSquashed a signedness warning.
Martin Mares [Sun, 7 Jan 2001 14:59:35 +0000 (14:59 +0000)]
Squashed a signedness warning.

23 years agoAdded sh_ftruncate(), but it currently works only on 32-bit files,
Martin Mares [Sun, 7 Jan 2001 14:58:58 +0000 (14:58 +0000)]
Added sh_ftruncate(), but it currently works only on 32-bit files,
so I've switched the default configuration to 32 bits.

23 years agobread() now returns the number of bytes read instead of dying when
Martin Mares [Sun, 7 Jan 2001 14:58:11 +0000 (14:58 +0000)]
bread() now returns the number of bytes read instead of dying when
the file is too short.

Need to be taken care of when porting old Sherlock code.

23 years agoUse OBUCK_INCOMPLETE_MAGIC for incomplete entries.
Martin Mares [Sun, 7 Jan 2001 14:56:23 +0000 (14:56 +0000)]
Use OBUCK_INCOMPLETE_MAGIC for incomplete entries.
find_first/find_next have a new option allowing to find deleted buckets.
Use sh_p(read|write) instead of p(read|write).

23 years agoRewrote to use pread/pwrite() and to avoid messing up with internals
Martin Mares [Fri, 5 Jan 2001 23:22:16 +0000 (23:22 +0000)]
Rewrote to use pread/pwrite() and to avoid messing up with internals
of the fb-file module. It should work with file descriptors shared between
processes (no need to re-open the file after fork()) and should be also
somewhat faster.

Basic functions already work, it remains to create some utilities
and implement compression.

make obj/lib/bucket-t for a small test program.

23 years agoPreliminary version of object bucket code.
Martin Mares [Fri, 5 Jan 2001 19:08:21 +0000 (19:08 +0000)]
Preliminary version of object bucket code.

23 years agoAdded support for memory debuggers (efence and [untested] dmalloc), just
Martin Mares [Mon, 11 Dec 2000 22:57:04 +0000 (22:57 +0000)]
Added support for memory debuggers (efence and [untested] dmalloc), just
enable in the top-level Makefile.

All modules should use xmalloc/xrealloc/xfree (or memory pools) to allocate
their data. These functions automatically check for errors and they also
translate to dmalloc calls if needed.

23 years agoFixed includes, defines and copyrights.
Martin Mares [Mon, 11 Dec 2000 22:12:13 +0000 (22:12 +0000)]
Fixed includes, defines and copyrights.

23 years ago#include <errno.h>
Martin Mares [Wed, 6 Dec 2000 15:01:24 +0000 (15:01 +0000)]
#include <errno.h>

23 years agoAdded a couple of FIXME's.
Martin Mares [Tue, 5 Dec 2000 23:13:18 +0000 (23:13 +0000)]
Added a couple of FIXME's.

23 years agoRevived the old chartype macros.
Martin Mares [Tue, 5 Dec 2000 23:07:33 +0000 (23:07 +0000)]
Revived the old chartype macros.

23 years agoAdd path to all includes.
Martin Mares [Tue, 5 Dec 2000 23:00:55 +0000 (23:00 +0000)]
Add path to all includes.

23 years agoAdd directory to all includes.
Martin Mares [Tue, 5 Dec 2000 23:00:25 +0000 (23:00 +0000)]
Add directory to all includes.

23 years agoSquashed a couple of warnings.
Martin Mares [Tue, 5 Dec 2000 22:45:42 +0000 (22:45 +0000)]
Squashed a couple of warnings.

23 years agoAdded build tools.
Martin Mares [Tue, 5 Dec 2000 22:39:59 +0000 (22:39 +0000)]
Added build tools.

23 years agoNew Makefiles.
Martin Mares [Tue, 5 Dec 2000 22:39:13 +0000 (22:39 +0000)]
New Makefiles.

23 years agoAdded character class definitions, formerly in lib/string.h.
Martin Mares [Tue, 5 Dec 2000 22:38:52 +0000 (22:38 +0000)]
Added character class definitions, formerly in lib/string.h.

23 years agoImplemented long tags and section limits (must be enabled in config.h first).
Martin Mares [Sun, 29 Oct 2000 12:26:42 +0000 (12:26 +0000)]
Implemented long tags and section limits (must be enabled in config.h first).

23 years agoNew I/O library.
Martin Mares [Sat, 28 Oct 2000 14:01:28 +0000 (14:01 +0000)]
New I/O library.

23 years agoSupport database sizes from 2G to 4G.
Martin Mares [Wed, 2 Aug 2000 09:52:56 +0000 (09:52 +0000)]
Support database sizes from 2G to 4G.

23 years agoDon't cry when pread/pwrite is not available.
Martin Mares [Wed, 2 Aug 2000 09:13:38 +0000 (09:13 +0000)]
Don't cry when pread/pwrite is not available.

23 years agoRewrote large file support. Instead of mucking with SHERLOCK_O_LARGEFILE
Martin Mares [Wed, 2 Aug 2000 09:00:56 +0000 (09:00 +0000)]
Rewrote large file support. Instead of mucking with SHERLOCK_O_LARGEFILE
all the way around, just use sh_{open,pread,pwrite} instead of the
ordinary calls.

23 years agoAdded "-t" switch.
Martin Mares [Thu, 13 Jul 2000 21:35:52 +0000 (21:35 +0000)]
Added "-t" switch.

23 years agoRecalculate directory position when cascading splits.
Martin Mares [Thu, 13 Jul 2000 21:35:14 +0000 (21:35 +0000)]
Recalculate directory position when cascading splits.

23 years agoAdded a utility for rebuilding of databases.
Martin Mares [Thu, 13 Jul 2000 21:34:49 +0000 (21:34 +0000)]
Added a utility for rebuilding of databases.

23 years agoReplaced the hash function. Damn it!
Martin Mares [Thu, 13 Jul 2000 20:17:30 +0000 (20:17 +0000)]
Replaced the hash function. Damn it!

24 years agoDefine _GNU_SOURCE, so that pread/pwrite work with glibc 2.1.
Martin Mares [Sun, 4 Jun 2000 23:15:58 +0000 (23:15 +0000)]
Define _GNU_SOURCE, so that pread/pwrite work with glibc 2.1.

Don't forget to print out fd's in fatal error messages.

24 years agoUse %Y instead of %y.
Martin Mares [Sun, 4 Jun 2000 23:15:32 +0000 (23:15 +0000)]
Use %Y instead of %y.

24 years agoAdded a bunch of includes, so that hex compiles.
Martin Mares [Thu, 20 Jan 2000 11:41:03 +0000 (11:41 +0000)]
Added a bunch of includes, so that hex compiles.

24 years agoRemoved few by now obsolete assertions.
Martin Mares [Fri, 14 Jan 2000 08:58:53 +0000 (08:58 +0000)]
Removed few by now obsolete assertions.

24 years agoStupid bug.
Martin Mares [Fri, 10 Dec 1999 18:12:34 +0000 (18:12 +0000)]
Stupid bug.

24 years agoModified verbose mode.
Martin Mares [Fri, 10 Dec 1999 14:47:42 +0000 (14:47 +0000)]
Modified verbose mode.

24 years agoMake it compile in GDBM mode.
Martin Mares [Sat, 20 Nov 1999 11:21:57 +0000 (11:21 +0000)]
Make it compile in GDBM mode.

24 years agoDon't call pgc_page_pos, it no longer exists!
Martin Mares [Sat, 20 Nov 1999 11:21:37 +0000 (11:21 +0000)]
Don't call pgc_page_pos, it no longer exists!

24 years agoSplit page key to pos and fd. Wastes extra 4 bytes, but simplifies the code a lot.
Martin Mares [Sat, 20 Nov 1999 11:21:01 +0000 (11:21 +0000)]
Split page key to pos and fd. Wastes extra 4 bytes, but simplifies the code a lot.
Also sort write requests when flushing dirty pages.

24 years agoNew test and benchmark code.
Martin Mares [Fri, 19 Nov 1999 18:09:55 +0000 (18:09 +0000)]
New test and benchmark code.

24 years agoFix return values.
Martin Mares [Fri, 19 Nov 1999 18:09:44 +0000 (18:09 +0000)]
Fix return values.

24 years agoMoved tests to extra file.
Martin Mares [Mon, 15 Nov 1999 22:47:10 +0000 (22:47 +0000)]
Moved tests to extra file.

24 years agoAdded emulator of SDBM on top of GDBM.
Martin Mares [Mon, 15 Nov 1999 22:46:56 +0000 (22:46 +0000)]
Added emulator of SDBM on top of GDBM.

24 years agoRemoved struct sdbm_buf.
Martin Mares [Mon, 15 Nov 1999 22:46:41 +0000 (22:46 +0000)]
Removed struct sdbm_buf.

24 years agoImplemented database walking.
Martin Mares [Mon, 15 Nov 1999 12:54:54 +0000 (12:54 +0000)]
Implemented database walking.

Squashed a couple of bugs.

Added some more tests.

24 years agoAdded prototype version of the fast database management library.
Martin Mares [Mon, 15 Nov 1999 10:32:06 +0000 (10:32 +0000)]
Added prototype version of the fast database management library.

24 years agoImplemented pgc_get_zero().
Martin Mares [Mon, 15 Nov 1999 10:31:01 +0000 (10:31 +0000)]
Implemented pgc_get_zero().

24 years agoPosition caching didn't work with multiple files.
Martin Mares [Sat, 13 Nov 1999 18:55:12 +0000 (18:55 +0000)]
Position caching didn't work with multiple files.

24 years agoAdded pgc_page_pos().
Martin Mares [Sat, 13 Nov 1999 15:37:07 +0000 (15:37 +0000)]
Added pgc_page_pos().

Don't forget to unhash buffers when freeing them.

24 years agoUse pread/pwrite whenever available. In all other cases, cache file positions.
Martin Mares [Thu, 11 Nov 1999 23:17:24 +0000 (23:17 +0000)]
Use pread/pwrite whenever available. In all other cases, cache file positions.

24 years agoDefine pread() if available.
Martin Mares [Thu, 11 Nov 1999 23:16:26 +0000 (23:16 +0000)]
Define pread() if available.

24 years agoAllow locked dirty pages. Better debugging. Simplified and cleaned up
Martin Mares [Tue, 9 Nov 1999 23:24:10 +0000 (23:24 +0000)]
Allow locked dirty pages. Better debugging. Simplified and cleaned up
handling of offset masking. Fixed 64-bit cast problems.

24 years agoSignedness fixes.
Martin Mares [Tue, 9 Nov 1999 22:59:39 +0000 (22:59 +0000)]
Signedness fixes.

24 years agoSquash warnings...
Martin Mares [Mon, 8 Nov 1999 23:59:22 +0000 (23:59 +0000)]
Squash warnings...

24 years agoSHERLOCK_O_LARGEFILE is either O_LARGEFILE or 0 depending on SHERLOCK_CONFIG_LFS.
Martin Mares [Mon, 8 Nov 1999 23:57:20 +0000 (23:57 +0000)]
SHERLOCK_O_LARGEFILE is either O_LARGEFILE or 0 depending on SHERLOCK_CONFIG_LFS.

24 years agoNew page cache.
Martin Mares [Mon, 8 Nov 1999 23:30:27 +0000 (23:30 +0000)]
New page cache.

24 years agoNew list functions from BIRD project.
Martin Mares [Mon, 8 Nov 1999 23:30:02 +0000 (23:30 +0000)]
New list functions from BIRD project.

24 years agoMoved OFFSETOF etc. here. Added ASSERT.
Martin Mares [Mon, 8 Nov 1999 23:29:40 +0000 (23:29 +0000)]
Moved OFFSETOF etc. here. Added ASSERT.

24 years agoBetter version of clearable pools.
Martin Mares [Mon, 25 Oct 1999 07:54:28 +0000 (07:54 +0000)]
Better version of clearable pools.

24 years agoDon't kill fragment references if there aren't any.
Martin Mares [Sun, 24 Oct 1999 20:14:51 +0000 (20:14 +0000)]
Don't kill fragment references if there aren't any.

24 years agoRevised URL parser, fixed a couple of bugs.
Martin Mares [Sun, 24 Oct 1999 20:00:02 +0000 (20:00 +0000)]
Revised URL parser, fixed a couple of bugs.

24 years agoLarge File Support in fastbuf library.
Martin Mares [Sun, 24 Oct 1999 19:59:21 +0000 (19:59 +0000)]
Large File Support in fastbuf library.

24 years agoClearable pools.
Martin Mares [Sun, 24 Oct 1999 19:58:55 +0000 (19:58 +0000)]
Clearable pools.

24 years agoLarge File Support.
Martin Mares [Sun, 24 Oct 1999 19:58:22 +0000 (19:58 +0000)]
Large File Support.

24 years agoKilled `typedef unsigned long ulg' and replaced all refs to ulg by either
Martin Mares [Mon, 13 Sep 1999 09:19:34 +0000 (09:19 +0000)]
Killed `typedef unsigned long ulg' and replaced all refs to ulg by either
u32 or (newly introduced) oid_t type (object ID).

24 years agoCompile with libc5.
Martin Mares [Thu, 9 Sep 1999 20:02:39 +0000 (20:02 +0000)]
Compile with libc5.

25 years agoRemove few obsolete config files, bump version to 1.2 and update README.
Martin Mares [Sat, 27 Mar 1999 21:49:08 +0000 (21:49 +0000)]
Remove few obsolete config files, bump version to 1.2 and update README.

25 years agoMiscellaneous fixes to the word matcher.
Martin Mares [Sat, 27 Mar 1999 21:43:23 +0000 (21:43 +0000)]
Miscellaneous fixes to the word matcher.

25 years agoImplemented mmap_file().
Martin Mares [Sat, 27 Mar 1999 21:42:43 +0000 (21:42 +0000)]
Implemented mmap_file().

25 years agoAdded fast wildcard matcher.
Martin Mares [Sat, 27 Mar 1999 12:48:07 +0000 (12:48 +0000)]
Added fast wildcard matcher.

26 years agoNew character set conversion routines from CharConv Library.
Martin Mares [Sat, 2 May 1998 08:54:22 +0000 (08:54 +0000)]
New character set conversion routines from CharConv Library.

I've left the old charset routines as-is for now.

26 years agobbcopy() leaves correct file positions.
Martin Mares [Sun, 15 Feb 1998 18:10:41 +0000 (18:10 +0000)]
bbcopy() leaves correct file positions.

26 years agoAdded typedefs for s64 and u64.
Martin Mares [Wed, 11 Feb 1998 09:10:52 +0000 (09:10 +0000)]
Added typedefs for s64 and u64.

Bumped version to 1.1.

26 years agoAdded a nice bounded random-number generator. Use where appropriate.
Martin Mares [Wed, 11 Feb 1998 09:10:22 +0000 (09:10 +0000)]
Added a nice bounded random-number generator. Use where appropriate.

26 years agoGrrrr. Caught nasty bbcopy() bug causing sword.c scramble large files!
Martin Mares [Tue, 10 Feb 1998 16:17:02 +0000 (16:17 +0000)]
Grrrr. Caught nasty bbcopy() bug causing sword.c scramble large files!

26 years agoAdded universal function for scanning of object trees. I'll convert
Martin Mares [Mon, 19 Jan 1998 19:13:35 +0000 (19:13 +0000)]
Added universal function for scanning of object trees. I'll convert
gived and expire to use it some day, but there are more important
things to do now.

26 years agoAdded "name" parameter to obj_fload in order to get better error reporting
Martin Mares [Mon, 12 Jan 1998 09:54:03 +0000 (09:54 +0000)]
Added "name" parameter to obj_fload in order to get better error reporting
on malformed objects.

26 years agoSync after disk crash. Main now includes zajicek's interface, lib now
Pavel Machek [Sat, 10 Jan 1998 20:57:21 +0000 (20:57 +0000)]
Sync after disk crash. Main now includes zajicek's interface, lib now
contains function to read config and never die.

26 years agoFixing _C_INNER in character class maps.
Martin Mares [Sat, 10 Jan 1998 09:41:38 +0000 (09:41 +0000)]
Fixing _C_INNER in character class maps.