]>
mj.ucw.cz Git - libucw.git/log
Martin Mares [Thu, 16 Feb 2012 19:15:00 +0000 (20:15 +0100)]
Time: Timing functions separated out to <ucw/time.h>
Updated all references and wrote documentation.
Martin Mares [Sat, 11 Feb 2012 20:36:08 +0000 (21:36 +0100)]
Charset: compile cs2cs
Martin Mares [Sat, 11 Feb 2012 20:30:56 +0000 (21:30 +0100)]
Sorter tests: get rid of sherlock.h
Martin Mares [Sat, 11 Feb 2012 20:29:31 +0000 (21:29 +0100)]
Use #include <ucw/...> instead of "ucw/..." (and similarly for the other libs)
Martin Mares [Sat, 11 Feb 2012 20:17:04 +0000 (21:17 +0100)]
Fastbuf: Get rid of ->is_fastbuf typechecking hack
... it breaks C99 aliasing rules and GCC rightfully warns about it.
If we ever want to do such type checking, we might use
#define CAST(f) ((f)->is_fastbuf, (struct xxxx *)(f))
but I guess it is of little use anyway, so I am removing it.
Martin Mares [Sat, 11 Feb 2012 20:11:11 +0000 (21:11 +0100)]
Base64: Made thread-safe
Martin Mares [Sat, 11 Feb 2012 20:09:16 +0000 (21:09 +0100)]
Config: Use CONFIG_LOCAL in debugging configuration
Martin Mares [Sat, 11 Feb 2012 20:08:50 +0000 (21:08 +0100)]
Timer: Use monotonic clock on Linux
Martin Mares [Sat, 11 Feb 2012 19:39:36 +0000 (20:39 +0100)]
Doc: Release notes about timestamp_t
Martin Mares [Sat, 11 Feb 2012 19:32:22 +0000 (20:32 +0100)]
Main: Use get_timestamp() for main_now
Martin Mares [Sat, 11 Feb 2012 19:32:00 +0000 (20:32 +0100)]
Main: Decouple main_now from system time, remove main_now_seconds
Martin Mares [Sat, 11 Feb 2012 19:28:35 +0000 (20:28 +0100)]
Timer: get_timer() adds a random offset to catch misuse of timestamp_t
Martin Mares [Sat, 11 Feb 2012 19:27:19 +0000 (20:27 +0100)]
Redefined timestamp_t and removed ucw_time_t
timestamp_t is no longer tied to the wall clock time (so it can be
read from CLOCK_MONOTONIC or any other clock)
ucw_time_t was an obsolete hack
Martin Mares [Sat, 11 Feb 2012 19:09:53 +0000 (20:09 +0100)]
Config: Updated check-configs
Martin Mares [Sat, 11 Feb 2012 19:09:24 +0000 (20:09 +0100)]
Config: CONFIG_UCW_FAKE_ELTPOOL
Can be set by the user if needed, not referenced in any config scripts.
Martin Mares [Sat, 11 Feb 2012 19:05:04 +0000 (20:05 +0100)]
Gary: GARY_INIT_OR_RESIZE got broken by introduction of zeroing
Martin Mares [Sat, 11 Feb 2012 19:04:50 +0000 (20:04 +0100)]
Config: Regularized configuration of regex libs
Martin Mares [Sat, 11 Feb 2012 18:53:49 +0000 (19:53 +0100)]
Config: Updated UCW_VERSION and ..._CODE
Martin Mares [Sat, 11 Feb 2012 18:52:21 +0000 (19:52 +0100)]
Config: Removed reference to MAX_WORD_(BYTES|CHARS)
We do not ship Sherlock liblang any longer.
Martin Mares [Sat, 11 Feb 2012 18:51:16 +0000 (19:51 +0100)]
Config: Update the filtering rules for autoconf.h
Martin Mares [Sat, 11 Feb 2012 18:48:53 +0000 (19:48 +0100)]
Config: Split CONFIG_UCW_DEBUG off CONFIG_DEBUG
CONFIG_DEBUG controls the build system,
CONFIG_UCW_DEBUG gets embedded in the library.
Turning CONFIG_DEBUG in programs using LibUCW can influence
ASSERTs and other debugging constructs in the headers, but
not presence of debugging code in the library.
Martin Mares [Sat, 11 Feb 2012 18:48:38 +0000 (19:48 +0100)]
Config: One more reference to CONFIG_LARGE_FILES
Martin Mares [Sat, 11 Feb 2012 18:38:38 +0000 (19:38 +0100)]
Config: Moved CONFIG_LARGE_FILES to UCW namespace, removed CONFIG_LFS
Martin Mares [Sat, 11 Feb 2012 18:35:57 +0000 (19:35 +0100)]
Config: CONFIG_OWN_GETOPT moved to UCW namespace
Martin Mares [Sat, 11 Feb 2012 18:34:36 +0000 (19:34 +0100)]
Config: CONFIG_DIRECT_IO moved to UCW namespace
Martin Mares [Sat, 11 Feb 2012 18:31:41 +0000 (19:31 +0100)]
Conf: DEFAULT_CONFIG and ENV_VAR_CONFIG got a CONFIG_UCW_ prefix
Martin Mares [Sat, 11 Feb 2012 18:28:01 +0000 (19:28 +0100)]
URL: Removed CONFIG_URL_ESCAPE_COMPAT
Martin Mares [Sat, 11 Feb 2012 18:23:27 +0000 (19:23 +0100)]
Doc: Updated release notes
Martin Mares [Sat, 11 Feb 2012 18:08:09 +0000 (19:08 +0100)]
Updated TODO
Martin Mares [Sat, 11 Feb 2012 18:07:02 +0000 (19:07 +0100)]
Sighandler removed from public API
It is still used internally by lizard-safe, so I am not removing it yet.
Martin Mares [Sat, 11 Feb 2012 18:05:41 +0000 (19:05 +0100)]
Lizard: Removed comments which are already part of the docs
Martin Mares [Sat, 11 Feb 2012 18:00:44 +0000 (19:00 +0100)]
Doc: Typos in the index
Martin Mares [Sat, 11 Feb 2012 17:59:14 +0000 (18:59 +0100)]
Doc: Typos and clarifications in unicode.h
Martin Mares [Sat, 11 Feb 2012 17:54:27 +0000 (18:54 +0100)]
Doc: lib.h is already fully documented
(In fact, the parts that were not, were moved to other header files.)
Martin Mares [Sat, 11 Feb 2012 17:53:02 +0000 (18:53 +0100)]
Doc: Describe general rules for reentrancy
Martin Mares [Sat, 11 Feb 2012 17:37:02 +0000 (18:37 +0100)]
Removed str_start_with() and str_end_with()
They were already present in dev-trans under different names.
Martin Mares [Sat, 11 Feb 2012 17:29:35 +0000 (18:29 +0100)]
Docs: Removed obsolete remarks about automatic tying of fastbufs
Martin Mares [Sat, 11 Feb 2012 11:21:57 +0000 (12:21 +0100)]
Trans: Moved FIXMEs to global TODO
Martin Mares [Sat, 11 Feb 2012 11:20:31 +0000 (12:20 +0100)]
Merge branch 'dev-trans'
Conflicts:
ucw/Makefile
ucw/string.h
Martin Mares [Fri, 10 Feb 2012 22:11:04 +0000 (23:11 +0100)]
Tester: Do not be picky about final newlines
Martin Mares [Fri, 10 Feb 2012 22:10:33 +0000 (23:10 +0100)]
Basecode tests were completely wrong
Wrong directory, wrong keywords...
Martin Mares [Fri, 10 Feb 2012 21:57:16 +0000 (22:57 +0100)]
Growing arrays: Fixed test cases
"Output" is not a synonym for "Out".
Martin Mares [Fri, 10 Feb 2012 21:57:03 +0000 (22:57 +0100)]
Growing arrays now support auto-zeroing mode
Martin Mares [Thu, 9 Feb 2012 22:43:14 +0000 (23:43 +0100)]
Updated TODO
Martin Mares [Thu, 9 Feb 2012 22:42:16 +0000 (23:42 +0100)]
Removed the `qache' module
During the whole history, it had only a single use in Sherlock's
multiplexer. Will be moved to libsherlock upon reviving Sherlock.
Martin Mares [Thu, 9 Feb 2012 22:36:36 +0000 (23:36 +0100)]
Doc: Mention several undocumented modules
Martin Mares [Thu, 9 Feb 2012 22:33:00 +0000 (23:33 +0100)]
Moved memory allocation functions together and document them
Martin Mares [Thu, 9 Feb 2012 22:29:52 +0000 (23:29 +0100)]
The `prefetch' module has been removed.
In recent years, GCC builtin_prefetch() is much more useful.
Martin Mares [Thu, 9 Feb 2012 22:29:10 +0000 (23:29 +0100)]
The rest of sighandler separation
Martin Mares [Thu, 9 Feb 2012 22:24:07 +0000 (23:24 +0100)]
Separated out sighandler module
For years, it was used only in lizard-safe and its use makes
signal handling even more complicated than it's usual.
Scheduled for removal, will replace it by a lizard-specific hack.
Martin Mares [Thu, 9 Feb 2012 22:16:51 +0000 (23:16 +0100)]
Moved process-related functions to ucw/process.h
Martin Mares [Thu, 9 Feb 2012 22:12:08 +0000 (23:12 +0100)]
io.h: Fixed guard macro
Martin Mares [Thu, 9 Feb 2012 22:09:46 +0000 (23:09 +0100)]
More modules moved to io.h and renamed to io-*.c
This includes carefulio, mmap, file_size() and sync.
Martin Mares [Thu, 9 Feb 2012 22:02:17 +0000 (23:02 +0100)]
Moved ucw/lfs.h to ucw/io.h
More I/O functions will follow.
Martin Mares [Thu, 9 Feb 2012 21:54:43 +0000 (22:54 +0100)]
The `randomkey' module has been removed.
Obsolete, no real use in years.
Martin Mares [Thu, 9 Feb 2012 21:48:31 +0000 (22:48 +0100)]
The `profile' module has been removed
It was obsolete and I do not know of any use in last 5 years.
Martin Mares [Thu, 9 Feb 2012 21:24:54 +0000 (22:24 +0100)]
Main: hook_add() is guaranteed to reschedule the hook
Martin Mares [Thu, 9 Feb 2012 19:20:34 +0000 (20:20 +0100)]
Main: Removing an already removed event is always safe.
Also adding an already added hook is always safe. For other event
types, we still refuse repeated adds.
Pavel Charvat [Wed, 8 Feb 2012 13:58:46 +0000 (14:58 +0100)]
Added consts to functions for matching of prefixes and suffixes.
Martin Mares [Tue, 7 Feb 2012 09:10:11 +0000 (10:10 +0100)]
Main: Fixed miscalculated memory allocation
Martin Mares [Fri, 27 Jan 2012 14:05:47 +0000 (15:05 +0100)]
strtonum: str_to_<signed> now implicitly allows signs
Martin Mares [Sat, 7 Jan 2012 14:25:47 +0000 (15:25 +0100)]
String: Added str_starts_with() and str_ends_with()
Martin Mares [Sat, 7 Jan 2012 13:33:52 +0000 (14:33 +0100)]
Logging: Use log_set_default_stream().
Martin Mares [Sat, 7 Jan 2012 13:33:43 +0000 (14:33 +0100)]
Logging: Added log_set_default_stream()
Martin Mares [Thu, 5 Jan 2012 17:35:39 +0000 (18:35 +0100)]
<ucw/sha1.h> is a part of the public API, do not forget to install it
Pavel Charvat [Mon, 5 Dec 2011 10:21:42 +0000 (11:21 +0100)]
mempool: Fixed a memory leak in mp_pop().
Martin Mares [Tue, 22 Nov 2011 16:15:09 +0000 (17:15 +0100)]
UCW::CGI: Updated copyright
Martin Mares [Tue, 22 Nov 2011 16:14:18 +0000 (17:14 +0100)]
UCW::CGI: Use "//" instead of "||" where appropriate
Martin Mares [Tue, 22 Nov 2011 16:13:32 +0000 (17:13 +0100)]
UCW::CGI: Report all errors by proper HTTP status codes
All calls to die have been replaced by returning a proper HTTP status
code. (A sole exception is if we fail, because we were not run as a CGI
script at all.)
Also, the set of supported HTTP methods now includes HEAD.
Martin Mares [Thu, 20 Oct 2011 07:16:53 +0000 (09:16 +0200)]
log output: Fix of a bug introduced during cleanups
Martin Mares [Tue, 18 Oct 2011 16:17:15 +0000 (18:17 +0200)]
logoutput: A few cleanups
Martin Mares [Tue, 18 Oct 2011 16:12:16 +0000 (18:12 +0200)]
Added a utility for logging of program output
Contributed by Tomas Ebenlendr <ebik@ucw.cz>.
Martin Mares [Sun, 25 Sep 2011 12:03:38 +0000 (14:03 +0200)]
Merge branch 'dev-mainloop' of ssh://git.ucw.cz/projects/libucw/GIT/libucw into dev-mainloop
Martin Mares [Sun, 25 Sep 2011 12:03:28 +0000 (14:03 +0200)]
TODO: A few remarks...
Martin Mares [Wed, 14 Sep 2011 13:19:58 +0000 (15:19 +0200)]
Main recio: Killed an ASSERT, which triggered under legitimate conditions
Martin Mares [Fri, 19 Aug 2011 15:17:45 +0000 (17:17 +0200)]
Let setproctitle() recalculate program_invocation_name
Otherwise, syslog() and other functions which try to log the name
of the current programs are confused.
Martin Mares [Fri, 19 Aug 2011 10:38:59 +0000 (12:38 +0200)]
Main: Complete the fix in HEAD^^
Martin Mares [Fri, 19 Aug 2011 10:38:11 +0000 (12:38 +0200)]
Main: Better reporting of fio errors in main-test
Martin Mares [Fri, 19 Aug 2011 10:29:34 +0000 (12:29 +0200)]
Main: Clean up handling of poll flags
- We no longer include POLLERR and POLLHUP in the set of requested
events. The standard (SUSv2) says they will be delivered regardless
of the event mask chosen.
- POLLERR is an output event, so we call only the write handler.
- POLLHUP is documented as an output event, but it sometimes signals
events which we would like to process by the input handler. The
situations when POLLHUP is generated include:
* on reading end of a pipe when the writing end has been closed
-> we would like to call read handler and get EOF (write handler
does not exist)
* on writing end of a pipe when the reading end has been closed
-> we would like to call write handler (read handler does not
exist)
* on a R/W socket when the other end has been closed -> better
call read handler to get an EOF
* on a tty which has been hanged up -> probably the same as a R/W
socket
We have therefore decided to call the read handler, but fall back to
the write handler if the read handler does not exist.
- When a handler decided to remove itself (but keep the main_file),
we could have entered an infinite loop. This no longer happens.
Martin Mares [Mon, 15 Aug 2011 11:27:50 +0000 (13:27 +0200)]
UCW::CGI: "; boundary=..." is also valid syntax
Martin Mares [Mon, 15 Aug 2011 08:27:54 +0000 (10:27 +0200)]
UCW::CGI: Cosmetic changes in capitalization of HTTP headers
Martin Mares [Sun, 31 Jul 2011 15:15:37 +0000 (17:15 +0200)]
fb-socket: Support shared fd's
Martin Mares [Sun, 31 Jul 2011 12:55:41 +0000 (14:55 +0200)]
Doc: Updated release notes
Martin Mares [Sun, 31 Jul 2011 12:55:17 +0000 (14:55 +0200)]
UCW::CGI: Implemented UTF-8 mode (compatible with `use utf8')
Martin Mares [Sun, 31 Jul 2011 12:44:25 +0000 (14:44 +0200)]
Merge branch 'dev-mainloop'
Martin Mares [Sun, 31 Jul 2011 12:42:59 +0000 (14:42 +0200)]
Main recio: Constants seem to be OK, deleted FIXME
Martin Mares [Thu, 9 Jun 2011 16:16:33 +0000 (18:16 +0200)]
Main: Introduce functions for telling whether an object is active
This is an useful idiom and it helps avoid calling clist_is_linked()
on private parts of the objects.
Martin Mares [Thu, 9 Jun 2011 16:04:26 +0000 (18:04 +0200)]
Main recio: Allow rec_io_(start|stop)_read from the read_handler
This involves rescanning the read buffer on rec_io_start_read()
as there might be leftover data from previous invokations of the
read_handler.
However, we have to be careful to avoid arbitrarily deep recursion
of various handlers. We do that by deferring the actual start of
reading to a main_hook.
Martin Mares [Thu, 9 Jun 2011 15:15:08 +0000 (17:15 +0200)]
Main: Moved hooks before recio
Martin Mares [Thu, 9 Jun 2011 15:12:22 +0000 (17:12 +0200)]
Main record-based I/O: documentation
Martin Mares [Thu, 9 Jun 2011 14:51:15 +0000 (16:51 +0200)]
Main record-based I/O: allow freeing of recio from read handlers
Pavel Charvat [Mon, 6 Jun 2011 08:49:31 +0000 (10:49 +0200)]
Removed invalid usage on .NOTPARALLEL keyword in makefiles.
Pavel Charvat [Wed, 18 May 2011 09:46:18 +0000 (11:46 +0200)]
Whitespace cleanup.
Martin Mares [Sun, 1 May 2011 23:49:59 +0000 (01:49 +0200)]
Main record I/O: Flow control and a few bits of documentation
Martin Mares [Sun, 1 May 2011 23:23:42 +0000 (01:23 +0200)]
Main: Preliminary implementation of record-based I/O
Martin Mares [Tue, 19 Apr 2011 13:55:41 +0000 (15:55 +0200)]
Docs: Let eltpool and mempool refer to the corresponding resource functions
Martin Mares [Tue, 19 Apr 2011 13:47:34 +0000 (15:47 +0200)]
Resources: Renamed respool.* -> resource.*
Martin Mares [Tue, 19 Apr 2011 13:44:14 +0000 (15:44 +0200)]
Doc: Note that gary.h is undocumented
Martin Mares [Tue, 19 Apr 2011 13:42:58 +0000 (15:42 +0200)]
Resources: Added eltpool class
Martin Mares [Tue, 19 Apr 2011 13:42:41 +0000 (15:42 +0200)]
Eltpool: Fixed a doc typo