]> mj.ucw.cz Git - libucw.git/log
libucw.git
2 months agoReleased as 6.5.16. master v6.5.16
Pavel Charvat [Wed, 21 Feb 2024 18:42:29 +0000 (18:42 +0000)]
Released as 6.5.16.

2 months agoFastbufs: Some improvements in documented rules for back-ends.
Pavel Charvat [Thu, 15 Feb 2024 22:27:13 +0000 (22:27 +0000)]
Fastbufs: Some improvements in documented rules for back-ends.

3 months agoFBSocket: Fix possible crashes when switching read/write with bflush().
Milan Rusek [Mon, 12 Feb 2024 14:26:44 +0000 (15:26 +0100)]
FBSocket: Fix possible crashes when switching read/write with bflush().

15 months agoBuild: Added support for aarch64 architecture. v6.5.15
Milan Rusek [Tue, 7 Feb 2023 10:14:03 +0000 (10:14 +0000)]
Build: Added support for aarch64 architecture.

2 years agoReleased as 6.5.14. v6.5.14
Pavel Charvat [Wed, 23 Mar 2022 11:28:44 +0000 (11:28 +0000)]
Released as 6.5.14.

2 years agoRandom: Switched flags and buf_size arguments of strongrand (slightly nicer usage).
Pavel Charvat [Wed, 23 Mar 2022 07:42:09 +0000 (07:42 +0000)]
Random: Switched flags and buf_size arguments of strongrand (slightly nicer usage).

2 years agoRandom: Small fixes in documentation.
Pavel Charvat [Wed, 23 Mar 2022 07:22:55 +0000 (07:22 +0000)]
Random: Small fixes in documentation.

2 years agoRandom: Implemented strong random source.
Pavel Charvat [Tue, 22 Mar 2022 15:49:04 +0000 (15:49 +0000)]
Random: Implemented strong random source.

2 years agoRandom: Detect and use getrandom() to seed fastrand.
Pavel Charvat [Tue, 22 Mar 2022 15:47:06 +0000 (15:47 +0000)]
Random: Detect and use getrandom() to seed fastrand.

2 years agoRandom: Defined random_gen_seed() to simplify old programs.
Pavel Charvat [Tue, 9 Jun 2020 17:11:11 +0000 (19:11 +0200)]
Random: Defined random_gen_seed() to simplify old programs.

2 years agoRandom: Implemented fastrand_double().
Pavel Charvat [Tue, 22 Mar 2022 15:46:30 +0000 (15:46 +0000)]
Random: Implemented fastrand_double().

2 years agoRandom: fastrand_mem() is now deterministic.
Pavel Charvat [Tue, 9 Jun 2020 16:51:46 +0000 (18:51 +0200)]
Random: fastrand_mem() is now deterministic.

2 years agoRandom: Use full 64bit output from xoroshiro128+, but prefer the higher bits.
Pavel Charvat [Tue, 9 Jun 2020 10:44:26 +0000 (12:44 +0200)]
Random: Use full 64bit output from xoroshiro128+, but prefer the higher bits.

2 years agoRandom: Removed sub-32bit generators.
Pavel Charvat [Tue, 22 Mar 2022 15:30:19 +0000 (15:30 +0000)]
Random: Removed sub-32bit generators.

2 years agoRandom: Implemented new pseudo-random interface.
Pavel Charvat [Tue, 9 Jun 2020 10:14:16 +0000 (12:14 +0200)]
Random: Implemented new pseudo-random interface.

2 years agoRandom: Old pseudo-random implementation moved to random-legacy.c
Pavel Charvat [Tue, 9 Jun 2020 09:27:08 +0000 (11:27 +0200)]
Random: Old pseudo-random implementation moved to random-legacy.c

2 years agoUpdating Maria's name
Maria Matejka [Tue, 22 Feb 2022 11:58:17 +0000 (12:58 +0100)]
Updating Maria's name

2 years agoBuild: Added CONFIG_BUILDDEB_GZIP option.
Pavel Charvat [Wed, 19 Jan 2022 15:20:59 +0000 (16:20 +0100)]
Build: Added CONFIG_BUILDDEB_GZIP option.

2 years agoBuild: Silenced some false compilation warnings on debian bullseye.
Pavel Charvat [Mon, 17 Jan 2022 00:15:34 +0000 (00:15 +0000)]
Build: Silenced some false compilation warnings on debian bullseye.

2 years agoReleased as 6.5.13. v6.5.13
Pavel Charvat [Sun, 16 Jan 2022 23:57:58 +0000 (00:57 +0100)]
Released as 6.5.13.

2 years agoTrans: Duplicate exception ids to transaction pool.
Pavel Charvat [Thu, 11 Nov 2021 10:42:49 +0000 (10:42 +0000)]
Trans: Duplicate exception ids to transaction pool.

Otherwise it breaks after longjmp if allocated on stack, for example in bthrow().

2 years agoRename our gettid() wrapper to ucw_gettid()
Martin Mares [Wed, 21 Jul 2021 20:16:18 +0000 (22:16 +0200)]
Rename our gettid() wrapper to ucw_gettid()

Recent versions of glibc apparently supply gettid() in <unistd.h>,
which clashes with our definition.

3 years agoLogging: msg() now does not change errno (easier usage of "%m").
Pavel Charvat [Tue, 11 Aug 2020 13:13:27 +0000 (13:13 +0000)]
Logging: msg() now does not change errno (easier usage of "%m").

3 years agostkstring: Fixed bug in stk_fsize().
Pavel Charvat [Fri, 22 May 2020 12:10:22 +0000 (14:10 +0200)]
stkstring: Fixed bug in stk_fsize().

4 years agoMaint: Reorganization of my directory structure
Martin Mares [Sun, 29 Mar 2020 20:36:29 +0000 (22:36 +0200)]
Maint: Reorganization of my directory structure

4 years agoReleased as 6.5.12. v6.5.12
Pavel Charvat [Fri, 28 Feb 2020 17:57:10 +0000 (18:57 +0100)]
Released as 6.5.12.

4 years agoio-careful: Fixed missing #include
Pavel Charvat [Fri, 28 Feb 2020 17:56:16 +0000 (18:56 +0100)]
io-careful: Fixed missing #include

4 years agoio-careful: Do not fail if a system call is interrupted by a signal
Jan Filip Chadima [Tue, 25 Feb 2020 15:15:42 +0000 (16:15 +0100)]
io-careful: Do not fail if a system call is interrupted by a signal

4 years agoDebian: pkg-config is needed for all -dev packages
Martin Mares [Mon, 27 Jan 2020 19:19:41 +0000 (20:19 +0100)]
Debian: pkg-config is needed for all -dev packages

4 years agoReleased as 6.5.11. v6.5.11
Pavel Charvat [Tue, 12 Nov 2019 16:58:17 +0000 (16:58 +0000)]
Released as 6.5.11.

4 years agoTests: Silenced few warnings on new compilers.
Pavel Charvat [Sat, 7 Sep 2019 11:01:46 +0000 (11:01 +0000)]
Tests: Silenced few warnings on new compilers.

4 years agoConfig: Added support for terabyte values, for example "123T".
Pavel Charvat [Sat, 7 Sep 2019 10:59:00 +0000 (10:59 +0000)]
Config: Added support for terabyte values, for example "123T".

5 years agoReleased as 6.5.10. v6.5.10
Pavel Charvat [Fri, 22 Mar 2019 14:09:14 +0000 (15:09 +0100)]
Released as 6.5.10.

5 years agoBuild: Silenced few -Wimplicit-fallthrough warnings.
Pavel Charvat [Fri, 22 Mar 2019 10:17:24 +0000 (10:17 +0000)]
Build: Silenced few -Wimplicit-fallthrough warnings.

5 years agoTests: xtypes-test sets an explicit timezone
Martin Mares [Mon, 11 Feb 2019 11:35:15 +0000 (12:35 +0100)]
Tests: xtypes-test sets an explicit timezone

Its output, which is checked in xtypes-test.t, depends on the current TZ.

5 years agoTests: table-test now works on 32-bit architectures
Martin Mares [Mon, 11 Feb 2019 11:34:59 +0000 (12:34 +0100)]
Tests: table-test now works on 32-bit architectures

5 years agoConfigure::Doc: Add missing newlines in warnings
Martin Mares [Mon, 11 Feb 2019 11:33:43 +0000 (12:33 +0100)]
Configure::Doc: Add missing newlines in warnings

5 years agoConfigure: Recognize "armhf" architecture
Martin Mares [Mon, 11 Feb 2019 11:32:13 +0000 (12:32 +0100)]
Configure: Recognize "armhf" architecture

I needed to build LibUCW on Raspberry PI.

However, support for armhf is still a little bit hackish:
You need to configure with "ARCH=armhf" (auto-detection from GCC machine
type does now work) and tests require an explicit export of LD_LIBRARY_PATH
run/lib.

5 years agoCreated an OpenWRT package dev-systemd
Martin Mares [Sat, 11 Aug 2018 12:27:51 +0000 (14:27 +0200)]
Created an OpenWRT package

Currently, only the main library with no utilities is built.

5 years agoConfigure: Settings for powerpc
Martin Mares [Sat, 11 Aug 2018 12:01:51 +0000 (14:01 +0200)]
Configure: Settings for powerpc

6 years agoCompatibility with GCC < 4.0 is not needed any longer
Martin Mares [Sun, 6 May 2018 08:55:53 +0000 (10:55 +0200)]
Compatibility with GCC < 4.0 is not needed any longer

6 years agoconf.h: Added a hack to silence GCC's warnings about uninitialized fields
Martin Mares [Mon, 9 Apr 2018 09:31:04 +0000 (11:31 +0200)]
conf.h: Added a hack to silence GCC's warnings about uninitialized fields

6 years agoConfigure: TestBool did not record a false value correctly
Martin Mares [Fri, 30 Mar 2018 18:34:10 +0000 (20:34 +0200)]
Configure: TestBool did not record a false value correctly

6 years agoReleased as 6.5.9. v6.5.9
Pavel Charvat [Fri, 23 Mar 2018 09:49:39 +0000 (10:49 +0100)]
Released as 6.5.9.

6 years agoConfigure: libgif seems to be available on all recent system, libungif doesn't
Martin Mares [Mon, 12 Feb 2018 23:22:22 +0000 (00:22 +0100)]
Configure: libgif seems to be available on all recent system, libungif doesn't

6 years agoImages: Cope with API changes in recent versions of libgif
Martin Mares [Mon, 12 Feb 2018 23:22:06 +0000 (00:22 +0100)]
Images: Cope with API changes in recent versions of libgif

6 years agoMain blockio: Added const keyword to block_io_write().
Pavel Charvat [Mon, 12 Feb 2018 17:33:27 +0000 (18:33 +0100)]
Main blockio: Added const keyword to block_io_write().

6 years agoMain recio: Fixed crashes when a second rec_io_add() followed rec_io_del().
Pavel Charvat [Mon, 12 Feb 2018 11:17:52 +0000 (12:17 +0100)]
Main recio: Fixed crashes when a second rec_io_add() followed rec_io_del().

6 years agoMain recio: Avoid calling of read_handler() with zero available bytes.
Pavel Charvat [Sun, 11 Feb 2018 16:32:48 +0000 (17:32 +0100)]
Main recio: Avoid calling of read_handler() with zero available bytes.

The problem was in the deferred hook. Also changed it's return value,
hooks like this should always return HOOK_IDLE and not slower HOOK_RETRY.

6 years agoMain recio: Added const keyword to rec_io_write().
Pavel Charvat [Sun, 11 Feb 2018 16:09:55 +0000 (17:09 +0100)]
Main recio: Added const keyword to rec_io_write().

6 years agoCRC: Added const keywords.
Pavel Charvat [Mon, 5 Feb 2018 12:57:56 +0000 (13:57 +0100)]
CRC: Added const keywords.

6 years agoFbGrow: Fixed assertion error after a refill of empty fastbuf.
Pavel Charvat [Sun, 4 Feb 2018 08:39:54 +0000 (09:39 +0100)]
FbGrow: Fixed assertion error after a refill of empty fastbuf.

6 years agoFastbuf: Fixed compilation with LOCAL_DEBUG.
Pavel Charvat [Sun, 4 Feb 2018 08:38:30 +0000 (09:38 +0100)]
Fastbuf: Fixed compilation with LOCAL_DEBUG.

6 years agoBase64: Improved documentation of base64_decode().
Pavel Charvat [Wed, 10 Jan 2018 11:56:02 +0000 (12:56 +0100)]
Base64: Improved documentation of base64_decode().

6 years agoReleased as 6.5.8. v6.5.8
Pavel Charvat [Wed, 10 Jan 2018 11:44:57 +0000 (12:44 +0100)]
Released as 6.5.8.

6 years agobgets_mp(): Rewritten implementation.
Pavel Charvat [Wed, 10 Jan 2018 11:44:05 +0000 (12:44 +0100)]
bgets_mp(): Rewritten implementation.

6 years agoMerge branch 'master' of ssh://git.ucw.cz/projects/libucw/GIT/libucw
Pavel Charvat [Wed, 10 Jan 2018 11:17:15 +0000 (12:17 +0100)]
Merge branch 'master' of ssh://git.ucw.cz/projects/libucw/GIT/libucw

6 years agobgets_mp(): Added a non-intuitive warning to documentation.
Pavel Charvat [Wed, 10 Jan 2018 11:16:31 +0000 (12:16 +0100)]
bgets_mp(): Added a non-intuitive warning to documentation.

6 years agoReleased as 6.5.7. v6.5.7
Pavel Charvat [Wed, 10 Jan 2018 08:38:01 +0000 (09:38 +0100)]
Released as 6.5.7.

6 years agoBase64: Rewritten base64 encoder and decoder.
Pavel Charvat [Tue, 2 Jan 2018 10:05:48 +0000 (11:05 +0100)]
Base64: Rewritten base64 encoder and decoder.

6 years agoRevert "Unicode: Added reading of 32bit UTF-8 unicode values with protection against...
Pavel Charvat [Thu, 28 Dec 2017 19:38:34 +0000 (20:38 +0100)]
Revert "Unicode: Added reading of 32bit UTF-8 unicode values with protection against buffer overflow."

This reverts commit 445e507caadb330b5ad640b3c5a357e6326c7855.

6 years agoCLists, SLists: Extended interface for merging of link lists.
Pavel Charvat [Sun, 17 Dec 2017 16:51:11 +0000 (17:51 +0100)]
CLists, SLists: Extended interface for merging of link lists.

6 years agoUnicode: Added reading of 32bit UTF-8 unicode values with protection against buffer...
Pavel Charvat [Thu, 14 Dec 2017 09:08:00 +0000 (10:08 +0100)]
Unicode: Added reading of 32bit UTF-8 unicode values with protection against buffer overflow.

Until now safe reading was possible only in fastbufs, which are
in some cases inefficient to initialize.

I'm still not sure about this change -> added only for one of many similar
functions. It multiplies the size of already long source code.

6 years agoReleased as 6.5.6 v6.5.6
Pavel Charvat [Mon, 11 Sep 2017 19:40:04 +0000 (21:40 +0200)]
Released as 6.5.6

6 years agoUCW::Configure: Fixed compatibility with old perl.
Pavel Charvat [Mon, 11 Sep 2017 19:35:03 +0000 (21:35 +0200)]
UCW::Configure: Fixed compatibility with old perl.

Older versions of perl don't automatically load methods
like STDOUT->flush, we need to explicitly use IO::File.

6 years agoDoc: Added explanation of FB exceptions vs. fb_tie() v6.5.5
Martin Mares [Wed, 6 Sep 2017 20:52:35 +0000 (22:52 +0200)]
Doc: Added explanation of FB exceptions vs. fb_tie()

6 years agoDebian: Updated a comment on CONFIG_UCW_PERL_MODULES
Martin Mares [Wed, 6 Sep 2017 20:34:25 +0000 (22:34 +0200)]
Debian: Updated a comment on CONFIG_UCW_PERL_MODULES

6 years agoUCW::Configure::Perl: Split off configuration of Perl paths
Martin Mares [Wed, 6 Sep 2017 20:31:08 +0000 (22:31 +0200)]
UCW::Configure::Perl: Split off configuration of Perl paths

We now query the %Config hash of Perl itself to determine the right
installation paths.

6 years agoUCW::Configure: Flush STDOUT after logging
Martin Mares [Wed, 6 Sep 2017 20:30:47 +0000 (22:30 +0200)]
UCW::Configure: Flush STDOUT after logging

6 years agoFastbufs: bclose() on caller-allocated fastbuf is allowed
Martin Mares [Tue, 5 Sep 2017 22:16:11 +0000 (00:16 +0200)]
Fastbufs: bclose() on caller-allocated fastbuf is allowed

Previously, it was impossible to catch exceptions thrown by fbbuf
(although it is quite useful in case of the "buffer overflow" exception).

With these changes, bclose() should be allowed and equivalent to bflush(),
which should do nothing :)  Hence, fb_tie() should work and so should
exception handling.

6 years agoBuild: "make install" should install also UCW::Configure module.
Pavel Charvat [Tue, 5 Sep 2017 07:04:30 +0000 (09:04 +0200)]
Build: "make install" should install also UCW::Configure module.

6 years agoBuild: Added support for custom PKG_CONFIG_PATH in UCW::Configure::PkgConfig().
Pavel Charvat [Mon, 4 Sep 2017 10:10:25 +0000 (12:10 +0200)]
Build: Added support for custom PKG_CONFIG_PATH in UCW::Configure::PkgConfig().

6 years agoReleased as 6.5.4 v6.5.4
Pavel Charvat [Mon, 4 Sep 2017 06:25:54 +0000 (08:25 +0200)]
Released as 6.5.4

6 years agoLizard: Fixed a typo in documentation.
Pavel Charvat [Thu, 31 Aug 2017 17:35:23 +0000 (19:35 +0200)]
Lizard: Fixed a typo in documentation.

6 years agoFB Socket: Fixed tracking of written bytes.
Pavel Charvat [Thu, 31 Aug 2017 16:58:26 +0000 (18:58 +0200)]
FB Socket: Fixed tracking of written bytes.

6 years agoMempool: Fix bug in a DBG() message.
Pavel Charvat [Sat, 26 Aug 2017 09:04:28 +0000 (11:04 +0200)]
Mempool: Fix bug in a DBG() message.

6 years agoDebian: The build system is packaged as a part of libucw-dev v6.5.3
Martin Mares [Sat, 22 Jul 2017 20:32:18 +0000 (22:32 +0200)]
Debian: The build system is packaged as a part of libucw-dev

Previously, I added UCW::Configure to libucw-perl, but I forgot
that most users of this module also need the build system. Surprisingly,
our packaging completely avoided the build system files.

Therefore, I moved UCW::Configure to libucw-dev and added the build
system there, too.

In the long term, we should move UCW::Configure under build/.

Since nobody is using v6.5.3 yet, I am rebuilding it with these
changes applied.

6 years agoXtype docs: Fixed a typo
Martin Mares [Sat, 22 Jul 2017 20:20:05 +0000 (22:20 +0200)]
Xtype docs: Fixed a typo

6 years agoReleased as v6.5.3
Martin Mares [Sat, 22 Jul 2017 10:44:36 +0000 (12:44 +0200)]
Released as v6.5.3

6 years agoDebian: A separate package for (most) Perl modules
Martin Mares [Sat, 22 Jul 2017 10:29:34 +0000 (12:29 +0200)]
Debian: A separate package for (most) Perl modules

7 years agoBuild: Fixed debian/mk --archonly on debian stretch. v6.5.2
Pavel Charvat [Tue, 18 Apr 2017 13:37:18 +0000 (15:37 +0200)]
Build: Fixed debian/mk --archonly on debian stretch.

7 years agoBuild: Added support for chrooted building from Centrum Gigamail repository.
Pavel Charvat [Tue, 18 Apr 2017 11:20:37 +0000 (13:20 +0200)]
Build: Added support for chrooted building from Centrum Gigamail repository.

7 years agoOpt: Fixed compilation warnings in tests.
Pavel Charvat [Sun, 26 Feb 2017 22:56:38 +0000 (23:56 +0100)]
Opt: Fixed compilation warnings in tests.

7 years agoLizard: Fixed compilation warning in tests.
Pavel Charvat [Sun, 26 Feb 2017 22:55:43 +0000 (23:55 +0100)]
Lizard: Fixed compilation warning in tests.

7 years agoUCW::Configure: Translate local filenames to "./file"
Martin Mares [Wed, 22 Feb 2017 15:12:00 +0000 (16:12 +0100)]
UCW::Configure: Translate local filenames to "./file"

As a security measure, "require" in newer versions of Perl (5.22+)
does not look up files relative to the current directory.

7 years agoUCW::CGI: Encode UTF-8 characters in cookies properly
Martin Mares [Wed, 22 Feb 2017 15:11:45 +0000 (16:11 +0100)]
UCW::CGI: Encode UTF-8 characters in cookies properly

7 years agofb-param: Fixed a typo found by warnings in newer GCC
Martin Mares [Tue, 21 Feb 2017 21:59:08 +0000 (22:59 +0100)]
fb-param: Fixed a typo found by warnings in newer GCC

7 years agoCRC: Fixed possible integer underflow when called on very small unaligned blocks.
Pavel Charvat [Mon, 15 Aug 2016 14:07:53 +0000 (16:07 +0200)]
CRC: Fixed possible integer underflow when called on very small unaligned blocks.

8 years agoUCW::CGI: Added an option for preserving whitespaces in arguments
Martin Mares [Mon, 14 Sep 2015 10:46:53 +0000 (12:46 +0200)]
UCW::CGI: Added an option for preserving whitespaces in arguments

8 years agoReleased libucw-6.5.1 v6.5.1
Pavel Charvat [Wed, 22 Jul 2015 21:27:36 +0000 (21:27 +0000)]
Released libucw-6.5.1

8 years agoJSON: Let initializers of our anonymous union be compatible with ancient GCC's
Martin Mares [Wed, 22 Jul 2015 20:20:35 +0000 (22:20 +0200)]
JSON: Let initializers of our anonymous union be compatible with ancient GCC's

8 years agoMaint: upload-doc should not forget about ucw-json
Martin Mares [Fri, 17 Jul 2015 14:26:15 +0000 (16:26 +0200)]
Maint: upload-doc should not forget about ucw-json

8 years agoReleased libucw-6.5 v6.5
Martin Mares [Fri, 17 Jul 2015 14:23:08 +0000 (16:23 +0200)]
Released libucw-6.5

8 years agoDoc: Release notes for version 6.5
Martin Mares [Fri, 17 Jul 2015 14:21:51 +0000 (16:21 +0200)]
Doc: Release notes for version 6.5

8 years agoUnicode: Fixed a test case
Martin Mares [Fri, 17 Jul 2015 14:14:40 +0000 (16:14 +0200)]
Unicode: Fixed a test case

8 years agoMempools: Optimize mp_append_utf8_32()
Martin Mares [Fri, 17 Jul 2015 14:10:31 +0000 (16:10 +0200)]
Mempools: Optimize mp_append_utf8_32()

8 years agoJSON: Comment on what is a string value
Martin Mares [Fri, 17 Jul 2015 14:08:00 +0000 (16:08 +0200)]
JSON: Comment on what is a string value

8 years agoJSON: Less strict checks when formatting strings
Martin Mares [Fri, 17 Jul 2015 14:02:51 +0000 (16:02 +0200)]
JSON: Less strict checks when formatting strings

Invalid characters are translated to UNI_REPLACEMENT instead
of aborting the program.

8 years agoJSON: Added numeric conversions
Martin Mares [Fri, 17 Jul 2015 14:01:39 +0000 (16:01 +0200)]
JSON: Added numeric conversions

8 years agoJSON: Link with libm
Martin Mares [Fri, 17 Jul 2015 13:37:01 +0000 (15:37 +0200)]
JSON: Link with libm