util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] logger: remove use of libc openlog and other small changes
@ 2014-08-10 11:56 Sami Kerola
  2014-08-10 11:56 ` [PATCH 1/5] logger: allow use of --id=ppid when logging locally Sami Kerola
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Sami Kerola @ 2014-08-10 11:56 UTC (permalink / raw)
  To: util-linux; +Cc: kerolasa

Hello,

In commit eea331abd7159432d8f45f978b2fbac19330ce48 I added an option to
use ppid instead of pid in logger message.  That change worked only when
logging remotely, because the libc syslog(3) call does not support ppid
printing.  For a moment I thought it might be possible to change libc to
have such feature, before realizing there are more than one libc
implementation and making all of them work is hopeless.  So I decided to
avoid the syslog(3) all together, and make syslog_local() to be as close
copy of glibc syslog(3) format as possible with support for ppid
printing.

Rest of the changes in this series are not technically that interesting,
and only remaining thing worth to mention is a small write out, requested
by Karel, about logger changes.

http://www.iki.fi/kerolasa/logger.html


The following changes since commit cd8414f7a13aca0b3ea150b473b83f00819b312f:

  cfdisk: move curs_set(1) to ui_end() (2014-08-06 15:39:27 +0200)

are available in the git repository at:

  git://github.com/kerolasa/lelux-utiliteetit.git logger

for you to fetch changes up to f0757ac355b42baab1e477345690260db651e693:

  docs: mentintion default udp and tcp ports logger is using (2014-08-09 09:13:25 +0100)

----------------------------------------------------------------
Sami Kerola (5):
      logger: allow use of --id=ppid when logging locally
      logger: remove openlog(3) options
      logger: optimize string initializations
      logger: set function arguments read-only when possible
      docs: mentintion default udp and tcp ports logger is using

 misc-utils/logger.1 |  7 +++++
 misc-utils/logger.c | 84 +++++++++++++++++++++++++++++++++--------------------
 2 files changed, 60 insertions(+), 31 deletions(-)

-- 
2.0.4


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-08-20 10:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-10 11:56 [PATCH 0/5] logger: remove use of libc openlog and other small changes Sami Kerola
2014-08-10 11:56 ` [PATCH 1/5] logger: allow use of --id=ppid when logging locally Sami Kerola
2014-08-10 11:56 ` [PATCH 2/5] logger: remove openlog(3) options Sami Kerola
2014-08-10 11:56 ` [PATCH 3/5] logger: optimize string initializations Sami Kerola
2014-08-11 13:12   ` Karel Zak
2014-08-11 20:34     ` Sami Kerola
2014-08-10 11:56 ` [PATCH 4/5] logger: set function arguments read-only when possible Sami Kerola
2014-08-10 11:56 ` [PATCH 5/5] docs: mentintion default udp and tcp ports logger is using Sami Kerola
2014-08-11 13:03 ` [PATCH 0/5] logger: remove use of libc openlog and other small changes Karel Zak
2014-08-20 10:25   ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).