]> mj.ucw.cz Git - libucw.git/log
libucw.git
9 years agoJSON: Checks for INF/NAN moved to json_new_number()
Martin Mares [Fri, 17 Jul 2015 13:33:37 +0000 (15:33 +0200)]
JSON: Checks for INF/NAN moved to json_new_number()

9 years agoJSON: Mention exceptions in docs
Martin Mares [Fri, 17 Jul 2015 13:29:55 +0000 (15:29 +0200)]
JSON: Mention exceptions in docs

9 years agoJSON: Better exception name
Martin Mares [Fri, 17 Jul 2015 13:27:06 +0000 (15:27 +0200)]
JSON: Better exception name

9 years agoJSON: Defined debian packages.
Pavel Charvat [Fri, 17 Jul 2015 12:11:10 +0000 (12:11 +0000)]
JSON: Defined debian packages.

9 years agoStrtonum: Fixed a typo in a comment
Martin Mares [Wed, 8 Jul 2015 22:01:28 +0000 (00:01 +0200)]
Strtonum: Fixed a typo in a comment

9 years agoJSON: Reject denormalized UTF-8 sequences
Martin Mares [Wed, 8 Jul 2015 22:00:36 +0000 (00:00 +0200)]
JSON: Reject denormalized UTF-8 sequences

9 years agoUnicode: Reject denormalized UTF-8 sequences
Martin Mares [Wed, 8 Jul 2015 21:58:21 +0000 (23:58 +0200)]
Unicode: Reject denormalized UTF-8 sequences

When there are multiple possible encodings of a single Unicode
codepoint, the standard requires to use the shortest one. Not checking
this requirement on input has been observed to cause weird security
problems in some software, so better be careful.

9 years agoJSON: Add json_strdup()
Martin Mares [Wed, 8 Jul 2015 21:23:33 +0000 (23:23 +0200)]
JSON: Add json_strdup()

9 years agoJSON: Remove unused includes
Martin Mares [Wed, 8 Jul 2015 21:23:26 +0000 (23:23 +0200)]
JSON: Remove unused includes

9 years agoJSON: Null, true, and false use a single static instance
Martin Mares [Wed, 8 Jul 2015 21:14:34 +0000 (23:14 +0200)]
JSON: Null, true, and false use a single static instance

9 years agoJSON: Improved memory management with pushing/popping of states
Martin Mares [Wed, 8 Jul 2015 21:11:04 +0000 (23:11 +0200)]
JSON: Improved memory management with pushing/popping of states

9 years agoTester: Always print test numbers
Martin Mares [Wed, 8 Jul 2015 20:47:43 +0000 (22:47 +0200)]
Tester: Always print test numbers

They help to locate the right temporary files.

9 years agoJSON: Basic documentation
Martin Mares [Wed, 8 Jul 2015 18:27:00 +0000 (20:27 +0200)]
JSON: Basic documentation

9 years agoABI cleanups
Martin Mares [Wed, 8 Jul 2015 17:57:45 +0000 (19:57 +0200)]
ABI cleanups

9 years agoJSON: More tests and bug fixes
Martin Mares [Wed, 8 Jul 2015 17:55:35 +0000 (19:55 +0200)]
JSON: More tests and bug fixes

9 years agoJSON: Tests and bug fixes
Martin Mares [Wed, 8 Jul 2015 17:44:02 +0000 (19:44 +0200)]
JSON: Tests and bug fixes

9 years agoFastbuf: fw-hex escapes DEL, too
Martin Mares [Wed, 8 Jul 2015 17:15:56 +0000 (19:15 +0200)]
Fastbuf: fw-hex escapes DEL, too

9 years agoFastbuf: Added fw-hex wrapper
Martin Mares [Wed, 8 Jul 2015 17:02:48 +0000 (19:02 +0200)]
Fastbuf: Added fw-hex wrapper

9 years agoJSON: Error messages include column number
Martin Mares [Wed, 8 Jul 2015 16:05:54 +0000 (18:05 +0200)]
JSON: Error messages include column number

9 years agoJSON: More parsing and formatting details
Martin Mares [Wed, 8 Jul 2015 16:03:04 +0000 (18:03 +0200)]
JSON: More parsing and formatting details

9 years agoJSON: Rudimentary formatting
Martin Mares [Wed, 8 Jul 2015 14:43:57 +0000 (16:43 +0200)]
JSON: Rudimentary formatting

9 years agoJSON: Skeleton, memory representation, parser
Martin Mares [Wed, 8 Jul 2015 14:21:16 +0000 (16:21 +0200)]
JSON: Skeleton, memory representation, parser

9 years agoUnicode: Fixed a comment in unicode_sanitize_char()
Martin Mares [Wed, 8 Jul 2015 14:19:38 +0000 (16:19 +0200)]
Unicode: Fixed a comment in unicode_sanitize_char()

9 years agoMempools: Added mp_append_utf8_32()
Martin Mares [Wed, 8 Jul 2015 14:19:16 +0000 (16:19 +0200)]
Mempools: Added mp_append_utf8_32()

9 years agoMempools: Renamed mp_append_[v]printf() back to its original name
Martin Mares [Thu, 9 Apr 2015 13:49:56 +0000 (15:49 +0200)]
Mempools: Renamed mp_append_[v]printf() back to its original name

9 years agoWeb: Fixed link to relnotes
Martin Mares [Wed, 8 Apr 2015 12:23:10 +0000 (14:23 +0200)]
Web: Fixed link to relnotes

9 years agoWill release as v6.4 v6.4
Martin Mares [Wed, 8 Apr 2015 12:20:02 +0000 (14:20 +0200)]
Will release as v6.4

9 years ago... fix of the previous fix
Martin Mares [Wed, 1 Apr 2015 12:39:54 +0000 (14:39 +0200)]
... fix of the previous fix

9 years agoXML: Fixed installation of headers
Martin Mares [Wed, 1 Apr 2015 12:36:39 +0000 (14:36 +0200)]
XML: Fixed installation of headers

9 years agoMainloop: Avoid polling for an empty set of events
Martin Mares [Fri, 6 Mar 2015 13:50:05 +0000 (14:50 +0100)]
Mainloop: Avoid polling for an empty set of events

If a main_file was active, but it did not have any handlers set,
it could happen that poll/epoll was called with an empty set of
requested events.

Alas, even in those cases POLLHUP or POLLERR could be delivered,
leading to an endless loop of such events. (Remember that we do not
use the edge-triggered mode of epoll as we want to be compatible
with plain poll semantics in handlers.)

From now on, we avoid this situation by removing the fd from the
poll set temporarily.

Also, this led to a slight unification of code paths.

9 years agoMaint: Automatic updating of version displayed at http://mj.ucw.cz/
Martin Mares [Fri, 13 Feb 2015 23:28:30 +0000 (00:28 +0100)]
Maint: Automatic updating of version displayed at http://mj.ucw.cz/

9 years agoWill release as v6.3 v6.3
Martin Mares [Fri, 13 Feb 2015 23:25:27 +0000 (00:25 +0100)]
Will release as v6.3

9 years agoDoc: Release notes for version 6.3
Martin Mares [Fri, 13 Feb 2015 23:21:33 +0000 (00:21 +0100)]
Doc: Release notes for version 6.3

9 years agoMaint: Uploading of documentation of companion libraries
Martin Mares [Fri, 13 Feb 2015 23:21:22 +0000 (00:21 +0100)]
Maint: Uploading of documentation of companion libraries

9 years agoXML: Brief documentation of LibUCW-XML
Martin Mares [Fri, 13 Feb 2015 23:20:45 +0000 (00:20 +0100)]
XML: Brief documentation of LibUCW-XML

9 years agoMerge branch 'dev-xml-ns'
Martin Mares [Fri, 13 Feb 2015 22:01:06 +0000 (23:01 +0100)]
Merge branch 'dev-xml-ns'

9 years agoMerge branch 'dev-xml'
Martin Mares [Fri, 13 Feb 2015 22:00:53 +0000 (23:00 +0100)]
Merge branch 'dev-xml'

9 years agoConfigure: Changed default.cfg
Martin Mares [Fri, 13 Feb 2015 15:15:36 +0000 (16:15 +0100)]
Configure: Changed default.cfg

CONFIG_UCW_ONLY is gone, it did not work anyway.

CONFIG_XML is turned on by default.

9 years agoConfigure: Experimental CONFIG_LTO
Martin Mares [Fri, 13 Feb 2015 15:13:15 +0000 (16:13 +0100)]
Configure: Experimental CONFIG_LTO

9 years agoXML: Uninlined
Martin Mares [Fri, 13 Feb 2015 14:54:39 +0000 (15:54 +0100)]
XML: Uninlined

9 years agoXML: Bug fixes of namespaces
Martin Mares [Fri, 13 Feb 2015 14:36:59 +0000 (15:36 +0100)]
XML: Bug fixes of namespaces

9 years agoMempool: Just updated (c)
Pavel Charvat [Fri, 13 Feb 2015 12:48:54 +0000 (12:48 +0000)]
Mempool: Just updated (c)

9 years agoMempool: mp_new(size) should not add size of chunk header before aligned to pages.
Pavel Charvat [Fri, 13 Feb 2015 12:43:16 +0000 (12:43 +0000)]
Mempool: mp_new(size) should not add size of chunk header before aligned to pages.

... so that mp_new(4096) allocates exactly one page, not two.

9 years agoXML: Fix processing of namespace prefixes
Martin Mares [Thu, 12 Feb 2015 23:48:56 +0000 (00:48 +0100)]
XML: Fix processing of namespace prefixes

9 years agoXML: ABI cleanup
Martin Mares [Thu, 12 Feb 2015 23:31:57 +0000 (00:31 +0100)]
XML: ABI cleanup

9 years agoXML: Changed internal representation of attributes
Martin Mares [Thu, 12 Feb 2015 23:24:26 +0000 (00:24 +0100)]
XML: Changed internal representation of attributes

As most elements have only a couple of attributes, I switched the
main attribute data structure from a hash table to a list. String
comparisons are hopefully avoided in most cases, as we keep a hash
of the lookup key in each entry.

More importantly, the structure is populated in two steps: first,
original (i.e., qualified) names of all attributes are entered;
second, namespaces are resolved and attributes are checked for
uniqueness.

If linear time complexity of attribute lookups turns out to be
too slow, we can add a secondary hash table for elements with
many attributes. This table will be populated from the list
in the 2nd step above.

9 years agoXML: Implementation of XML namespaces
Martin Mares [Thu, 12 Feb 2015 22:12:03 +0000 (23:12 +0100)]
XML: Implementation of XML namespaces

The basic logic of namespaces and qualified names works,
but unfortunately the attribute data structures are broken.

9 years agoXML: Directory renamed to ucw-xml
Martin Mares [Thu, 12 Feb 2015 18:44:04 +0000 (19:44 +0100)]
XML: Directory renamed to ucw-xml

Instead of <xml/something.h>, we now include <ucw-xml/something.h>,
which is less likely to clash with other libraries.

9 years agoXML: ABI cleanup
Martin Mares [Thu, 12 Feb 2015 18:31:53 +0000 (19:31 +0100)]
XML: ABI cleanup

9 years agoLogging: log_new_fd to fd=2 also prevents stderr from closing
Martin Mares [Thu, 12 Feb 2015 18:06:34 +0000 (19:06 +0100)]
Logging: log_new_fd to fd=2 also prevents stderr from closing

9 years agoRemove obsolete references to Sherlock
Martin Mares [Thu, 12 Feb 2015 18:05:40 +0000 (19:05 +0100)]
Remove obsolete references to Sherlock

9 years agoXML: Fixed a typo in comment
Martin Mares [Thu, 12 Feb 2015 17:26:30 +0000 (18:26 +0100)]
XML: Fixed a typo in comment

9 years agoXML: DEL is not printable
Martin Mares [Thu, 12 Feb 2015 16:58:06 +0000 (17:58 +0100)]
XML: DEL is not printable

9 years agoREADME: Adjusted years
Martin Mares [Thu, 12 Feb 2015 16:16:31 +0000 (17:16 +0100)]
README: Adjusted years

9 years agoLogging: Resurrected testing of log-conf
Martin Mares [Thu, 12 Feb 2015 15:50:53 +0000 (16:50 +0100)]
Logging: Resurrected testing of log-conf

9 years agoLogging: Added log_drop_stderr().
Martin Mares [Thu, 12 Feb 2015 15:41:26 +0000 (16:41 +0100)]
Logging: Added log_drop_stderr().

When writing the daemonization module, I assumed that it is not
necessary to close stderr, because it will be replaced by a log
file later. Alas, this is not true for general log streams.

I have added a function, which should be called by the daemon
when it is done with initialization of logging.

9 years agoMaint: One more note v6.2
Martin Mares [Fri, 16 Jan 2015 15:26:29 +0000 (16:26 +0100)]
Maint: One more note

9 years agoXtypes: Documentation cleanup
Martin Mares [Fri, 16 Jan 2015 15:23:47 +0000 (16:23 +0100)]
Xtypes: Documentation cleanup

Many missing bits have been added, many a wording has been polished.

The man page for table options has been moved to section 5, as it
describes a general convention, not a program.

9 years agoDoc: Man pages are now generated as both HTML and NROFF
Martin Mares [Fri, 16 Jan 2015 14:23:11 +0000 (15:23 +0100)]
Doc: Man pages are now generated as both HTML and NROFF

9 years agoMaint: Fix installation of man pages
Martin Mares [Fri, 16 Jan 2015 14:10:30 +0000 (15:10 +0100)]
Maint: Fix installation of man pages

9 years agoXtypes: Documentation
Martin Mares [Fri, 16 Jan 2015 14:09:55 +0000 (15:09 +0100)]
Xtypes: Documentation

9 years agoMaint: Added a HOWTO on releasing LibUCW
Martin Mares [Fri, 16 Jan 2015 13:31:57 +0000 (14:31 +0100)]
Maint: Added a HOWTO on releasing LibUCW

9 years agoMerge branch 'dev-xtypes'
Martin Mares [Fri, 16 Jan 2015 13:04:10 +0000 (14:04 +0100)]
Merge branch 'dev-xtypes'

9 years agoBuild: Attempt to fix problems with access rights to custom INSTALL_LIB_DIR.
Pavel Charvat [Thu, 15 Jan 2015 19:44:24 +0000 (19:44 +0000)]
Build: Attempt to fix problems with access rights to custom INSTALL_LIB_DIR.

9 years agoMacros: CLAMP now accepts arbitrary types, not only ints
Martin Mares [Sun, 9 Nov 2014 13:56:41 +0000 (14:56 +0100)]
Macros: CLAMP now accepts arbitrary types, not only ints

9 years agoMainloop: Be benevolent when file_del() is called on a closed fd
Martin Mares [Sun, 9 Nov 2014 12:32:28 +0000 (13:32 +0100)]
Mainloop: Be benevolent when file_del() is called on a closed fd

I recently wrote a couple of wrappers for connecting other mainloop
interfaces to UCW mainloop. Unfortunately, asking a mainloop to stop
watching a file a moment after close() is a common (mal)practice.
Working around it in the wrapper is hard to do, so I relax the checks
in LibUCW instead.

10 years agoDaemon: Fixed more race conditions. v6.1.1
Pavel Charvat [Fri, 10 Oct 2014 12:56:58 +0000 (12:56 +0000)]
Daemon: Fixed more race conditions.

10 years agoDaemon: Improved comments.
Pavel Charvat [Fri, 10 Oct 2014 12:20:51 +0000 (12:20 +0000)]
Daemon: Improved comments.

10 years agoDaemon: Use pipe instead of fcntl lock to synchronize child process with master.
Pavel Charvat [Fri, 10 Oct 2014 11:56:34 +0000 (11:56 +0000)]
Daemon: Use pipe instead of fcntl lock to synchronize child process with master.

10 years agoDaemon: Only fixed a comment.
Pavel Charvat [Thu, 9 Oct 2014 10:21:01 +0000 (10:21 +0000)]
Daemon: Only fixed a comment.

10 years agoDaemon: Returned original check of written pidfile after start, but don't fail on...
Pavel Charvat [Thu, 9 Oct 2014 10:13:27 +0000 (10:13 +0000)]
Daemon: Returned original check of written pidfile after start, but don't fail on quick stop.

10 years agoDaemon: Removed unnecessary fcntl lock from daemon-control.
Pavel Charvat [Thu, 9 Oct 2014 10:08:39 +0000 (10:08 +0000)]
Daemon: Removed unnecessary fcntl lock from daemon-control.

10 years agoDaemon: Fixed races in previous commit.
Pavel Charvat [Thu, 9 Oct 2014 09:20:30 +0000 (09:20 +0000)]
Daemon: Fixed races in previous commit.

10 years agoDaemon: Fixed invalid permissions and some races when closing daemons.
Pavel Charvat [Thu, 9 Oct 2014 06:30:08 +0000 (06:30 +0000)]
Daemon: Fixed invalid permissions and some races when closing daemons.

10 years agoxtypes: fix of tests of xt_timestamp::parse
Robert Kessl [Fri, 5 Sep 2014 08:55:11 +0000 (10:55 +0200)]
xtypes: fix of tests of xt_timestamp::parse

10 years agoXTypes: Fixed dump of configuration.
Pavel Charvat [Thu, 4 Sep 2014 12:14:58 +0000 (12:14 +0000)]
XTypes: Fixed dump of configuration.

10 years agoXTypes: CF_XTYPE requires '&' before xt_*, just like most other parameters in CF_...
Pavel Charvat [Thu, 4 Sep 2014 11:51:12 +0000 (11:51 +0000)]
XTypes: CF_XTYPE requires '&' before xt_*, just like most other parameters in CF_* macros.

10 years agoXTypes: Added support to configuration and option parser.
Pavel Charvat [Thu, 4 Sep 2014 11:39:06 +0000 (11:39 +0000)]
XTypes: Added support to configuration and option parser.

10 years agoBuild: Forced linker to find the currently compiled libraries instead of possibly...
Pavel Charvat [Sun, 10 Aug 2014 14:52:45 +0000 (14:52 +0000)]
Build: Forced linker to find the currently compiled libraries instead of possibly installed ones.

10 years agoTables: Fixed few typos in manpage.
Pavel Charvat [Sun, 10 Aug 2014 14:20:21 +0000 (14:20 +0000)]
Tables: Fixed few typos in manpage.

10 years agoDoc: Generalized makefile rules for all categories of manpages.
Pavel Charvat [Sun, 10 Aug 2014 14:15:03 +0000 (14:15 +0000)]
Doc: Generalized makefile rules for all categories of manpages.

10 years agoDoc: Manpages are installed to rundir so that you can use 'man -M run/doc/man ucw...
Pavel Charvat [Sun, 10 Aug 2014 13:55:25 +0000 (13:55 +0000)]
Doc: Manpages are installed to rundir so that you can use 'man -M run/doc/man ucw-tableprinter'.

10 years agoPackages: Updated build dependencies.
Pavel Charvat [Sun, 10 Aug 2014 12:20:32 +0000 (12:20 +0000)]
Packages: Updated build dependencies.

10 years agoSorter: Noted that we need to fix a bug in radix sort.
Pavel Charvat [Sun, 10 Aug 2014 12:14:17 +0000 (12:14 +0000)]
Sorter: Noted that we need to fix a bug in radix sort.

10 years agoDoc: Simplified rule for compilation of manpages.
Pavel Charvat [Sun, 10 Aug 2014 12:02:01 +0000 (12:02 +0000)]
Doc: Simplified rule for compilation of manpages.

10 years agoRelease: Increased version in default.cfg to 6.1. v6.1
Pavel Charvat [Sat, 9 Aug 2014 18:49:29 +0000 (18:49 +0000)]
Release: Increased version in default.cfg to 6.1.

10 years agoPackages: Fixed bug in debian/tag-release script.
Pavel Charvat [Sat, 9 Aug 2014 05:37:49 +0000 (05:37 +0000)]
Packages: Fixed bug in debian/tag-release script.

10 years agoTODO: Do not forget xtype docs
Martin Mares [Fri, 8 Aug 2014 22:54:50 +0000 (00:54 +0200)]
TODO: Do not forget xtype docs

10 years agoMerge branch 'dev-table'
Martin Mares [Fri, 8 Aug 2014 22:54:29 +0000 (00:54 +0200)]
Merge branch 'dev-table'

10 years agoucw/doc/Makefile: Do not mix UCW_MANPAGES with MANPAGES
Martin Mares [Fri, 8 Aug 2014 22:52:32 +0000 (00:52 +0200)]
ucw/doc/Makefile: Do not mix UCW_MANPAGES with MANPAGES

10 years agoMakefile cosmetics
Martin Mares [Fri, 8 Aug 2014 22:50:15 +0000 (00:50 +0200)]
Makefile cosmetics

10 years agoEven more updates in build of manpages
Robert Kessl [Fri, 8 Aug 2014 10:56:14 +0000 (12:56 +0200)]
Even more updates in build of manpages

10 years agoUpdate build of manpages, contd.
Robert Kessl [Fri, 8 Aug 2014 10:49:56 +0000 (12:49 +0200)]
Update build of manpages, contd.

10 years agoUpdate build of manpages
Robert Kessl [Fri, 8 Aug 2014 07:48:48 +0000 (09:48 +0200)]
Update build of manpages

10 years agoAdded manpages to doc build; update of doc.
Robert Kessl [Wed, 6 Aug 2014 07:41:52 +0000 (09:41 +0200)]
Added manpages to doc build; update of doc.

10 years agoDoc: The last line ought to end with a newline
Martin Mares [Tue, 5 Aug 2014 15:14:42 +0000 (17:14 +0200)]
Doc: The last line ought to end with a newline

10 years agoExtended types: Fix constness issues
Martin Mares [Tue, 5 Aug 2014 15:14:15 +0000 (17:14 +0200)]
Extended types: Fix constness issues

10 years agotableprinter: manpage is now installed into /usr/share/man/man1
Robert Kessl [Tue, 5 Aug 2014 07:00:31 +0000 (09:00 +0200)]
tableprinter: manpage is now installed into /usr/share/man/man1

10 years agoxtypes: xt_double bugfix in parsing of precision
Robert Kessl [Mon, 4 Aug 2014 11:47:40 +0000 (13:47 +0200)]
xtypes: xt_double bugfix in parsing of precision

10 years agotableprinter: table_set_col_opt now uses xtype_parse_fmt instead of hook parse_fmt
Robert Kessl [Mon, 4 Aug 2014 11:47:05 +0000 (13:47 +0200)]
tableprinter: table_set_col_opt now uses xtype_parse_fmt instead of hook parse_fmt