sysklogd/lib
Joachim Nilsson 58da3b6bd2 Mark strlcat() and strlcpy() as weak functions, for libsyslog
The strlcat() and strlcpy() functions are only intended to be used
by syslog.c internally (and syslogd), when building libsyslog.

A user linking with libsyslog may have another library that provides
strlcat() or strlcpy() replacements.  We must therefore mark ours as
weak functions so they can be overridden.

This patch also add a convenience library for libsyslog, to control
the build deps. for libsyslog.  This is where external dependencies
should be addded (explicitly) when syslog.c is updated from NetBSD.
If you add new deps you likely want to mark them too as weak refs.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-11-04 11:04:13 +01:00
..
.gitignore Make sure libsyslog.la, incl. strlcpy.o, is built with -fPIC 2019-11-03 15:55:25 +01:00
pidfile.c Replace homegrown PID file functions with std BSD pidfile() 2019-11-02 21:03:28 +01:00
strlcat.c Mark strlcat() and strlcpy() as weak functions, for libsyslog 2019-11-04 11:04:13 +01:00
strlcpy.c Mark strlcat() and strlcpy() as weak functions, for libsyslog 2019-11-04 11:04:13 +01:00
utimensat.c Replace homegrown PID file functions with std BSD pidfile() 2019-11-02 21:03:28 +01:00