about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/syslog.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-01-24 22:57:26 +0000
committerUlrich Drepper <drepper@redhat.com>2005-01-24 22:57:26 +0000
commit790aa1f272f22c2a4912d2e776bc6e2f38474633 (patch)
tree8961271cce35abaf2ea2440bbb11d3dfcc74b03f /sysdeps/unix/sysv/linux/syslog.c
parentd990ebaaf17a26ad83698db706b5a08aaeca589e (diff)
downloadglibc-790aa1f272f22c2a4912d2e776bc6e2f38474633.tar.gz
glibc-790aa1f272f22c2a4912d2e776bc6e2f38474633.tar.xz
glibc-790aa1f272f22c2a4912d2e776bc6e2f38474633.zip
Update.
2005-01-24  Ulrich Drepper  <drepper@redhat.com>

	* misc/syslog.c: Moved to...
	* sysdeps/generic/syslog.c: ...here.
	[NO_SIGIPE]: Don't install SIGPIPE handler.
	* sysdeps/unix/sysv/linux/syslog.c: New file.
	* sysdeps/unix/sysv/linux/kernel-features.h: Define
	__ASSUME_MSG_NOSIGNAL.
Diffstat (limited to 'sysdeps/unix/sysv/linux/syslog.c')
-rw-r--r--sysdeps/unix/sysv/linux/syslog.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/syslog.c b/sysdeps/unix/sysv/linux/syslog.c
new file mode 100644
index 0000000000..eaaa9839dc
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/syslog.c
@@ -0,0 +1,10 @@
+#include "kernel-features.h"
+
+#if __ASSUME_MSG_NOSIGNAL
+# define NO_SIGPIPE
+# define send_flags MSG_NOSIGNAL
+#else
+# define send_flags 0
+#endif
+
+#include <sysdeps/generic/syslog.c>