libqb/lib
Jan Pokorný 642f74de61
Feature: allow changing the identifier for syslog (+tests)
Original "qb_log_ctl" interface had to be extended for passing read-only
strings (new parameter), resulting in new "qb_log_ctl2" function, which
is what qb_log_ctl calls into with the new parameter set to NULL.
This ensures backward compatibility.

A new QB_LOG_CONF_IDENT configuration directive for the mentioned
interface is added with a goal to set new internal identifier
that is, notably, used for syslog sink.  This allows for switching
the identification without a need to reinitialize logging subsystem,
akin to changing target logging facility.

Also a brand new concept of testing syslog sink in particular is
introduced (finally).  During initial trial&error stage, it used
LD_PRELOAD hack but it seems that libtool is sophisticated enough
that no such extra intervention is needed and the desired symbol
resolution Just Works (tm).  However, the technique is highly
non-portable (there is even a warning about that from libtool,
which is partially on purpose as the _syslog_override.so should
rather be explicit it is by no mean a regular library) and hence
the syslog tests have to be enabled with explicit

    ./configure --enable-syslog-tests

rather than possibly break on untested platforms (far too many).
The concept can be extended upon, but initially, just the new
feature is being tested.

Post-review: thanks Chrissie for a suggestion how to deal with
extract-arg-and-forget in a less intrusive way (no defines).
2016-02-18 11:30:14 +01:00
..
.gitignore Cleanup the .gitignore files 2012-05-09 21:43:58 +10:00
array.c LOG: set the return code when calloc fails 2012-11-23 10:24:56 +11:00
atomic_int.h Add internal support for the new __atomic gcc builtins 2013-05-13 10:15:55 +10:00
hashtable.c Add the processing which remove notifier at skiplist_destroy function 2013-01-15 01:57:29 +09:00
hdb.c Unify to QB_TRUE/QB_FALSE a boolean value 2013-01-11 02:01:06 +09:00
ipc_int.h update: per kgaillot review 2016-01-25 21:27:29 -05:00
ipc_setup.c update: per kgaillot review 2016-01-25 21:27:29 -05:00
ipc_shm.c ipc: Don't send the dispatch_del() function a closed fd 2015-09-24 16:04:28 +01:00
ipc_socket.c update: per kgaillot review 2016-01-25 21:27:29 -05:00
ipcc.c Fix: valgrind "invalid file descriptor" warning 2015-08-18 09:14:50 -05:00
ipcs.c Low: ipcs: Cleanup unnecessary reference counting 2014-04-04 12:12:58 -05:00
libqb.pc.in build: fix libqb.pc creation and make maintainer-clean 2012-08-27 15:07:36 +02:00
log_blackbox.c Low: blackbox: Abort blackbox logging on ringbuffer overwrite reclaim error 2013-10-08 21:59:59 -05:00
log_dcs.c LOG: copy the function/filename for dynamic callsites 2013-03-20 17:10:35 +11:00
log_file.c LOG: make it possible to fsync() on each file log. 2012-06-05 12:07:35 +10:00
log_format.c Feature: Implement "extended" logging using a marker character 2015-04-30 12:14:53 -04:00
log_int.h Feature: Implement "extended" logging using a marker character 2015-04-30 12:14:53 -04:00
log_syslog.c Get coverity to ignore this warning. 2012-02-03 14:42:25 +11:00
log_thread.c Fixes sem leak 2013-07-22 18:21:23 -05:00
log.c Feature: allow changing the identifier for syslog (+tests) 2016-02-18 11:30:14 +01:00
loop_int.h LOOP: make it possible to pass in NULL as the default loop instance 2012-02-10 14:47:49 +11:00
loop_job.c Unify the list processing with qb_list function 2013-01-09 02:04:20 +09:00
loop_poll_epoll.c epoll: don't miss poll events under high load 2014-06-05 15:25:26 +10:00
loop_poll_int.h POLL: seperate out the poll/epoll and add kqueue 2012-04-04 00:26:20 +10:00
loop_poll_kqueue.c The udata member of the kevent struct is a void * 2015-01-23 01:58:02 +01:00
loop_poll_poll.c POLL: seperate out the poll/epoll and add kqueue 2012-04-04 00:26:20 +10:00
loop_poll.c High: loop: fixes resource starvation in mainloop code 2015-04-14 11:52:59 -04:00
loop_timerlist.c TIMER: check for null timer handle 2012-03-09 12:17:03 +11:00
loop.c Avoid double-decrement of level->todo 2013-08-20 09:30:16 +10:00
Makefile.am lib: update library version for new release 2016-01-12 11:10:18 +00:00
map_int.h PTRIE: refcount the notifier structs 2012-01-25 16:09:32 +11:00
map.c MAP: add a notifier purely to allow the user to free memory. 2011-12-14 00:26:01 +11:00
ringbuffer_helper.c RB: make the "sem" abstraction into a notifier 2013-02-18 23:25:10 +11:00
ringbuffer_int.h RB: make the "sem" abstraction into a notifier 2013-02-18 23:25:10 +11:00
ringbuffer.c Fix alignment issues on hppa 2015-04-24 12:26:01 +02:00
rpl_sem.c rpl_sem: make destroy more compliant 2013-02-19 12:40:06 +11:00
rpl_sem.h rpl_sem: make destroy more compliant 2013-02-19 12:40:06 +11:00
skiplist.c Add the processing which remove notifier at skiplist_destroy function 2013-01-15 01:57:29 +09:00
strchrnul.c Use safer versions of string functions (strcpy -> strlcpy) 2012-02-08 22:00:49 +11:00
strlcat.c Fix strlcpy and strlcat functions 2012-12-19 10:42:08 +11:00
strlcpy.c Fix strlcpy and strlcat functions 2012-12-19 10:42:08 +11:00
trie.c High: trie: allow modifying the trie map during the notify callback 2014-07-30 09:58:04 -05:00
unix.c lib: create mmap files in socket directory 2016-01-18 19:02:08 -05:00
util_int.h IPC: Increase the listen backlog of IPC server 2014-01-08 13:29:51 +08:00
util.c Remove HZ and use sysconf instead. 2012-05-09 21:38:38 +10:00