aboutsummaryrefslogtreecommitdiff
path: root/signal
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-02-26 06:18:24 +0000
committerUlrich Drepper <drepper@redhat.com>2009-02-26 06:18:24 +0000
commit1f04d005421644726a8c6b9ac78ba22ed938f5f0 (patch)
tree0785508bd93125f3bdeb6758fae555ce88cf6b6f /signal
parent* ctype/ctype.h: The *_l functions are in POSIX 2008. (diff)
downloadglibc-1f04d005421644726a8c6b9ac78ba22ed938f5f0.tar.gz
glibc-1f04d005421644726a8c6b9ac78ba22ed938f5f0.tar.bz2
glibc-1f04d005421644726a8c6b9ac78ba22ed938f5f0.zip
* locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
* locale/xlocale.h: Define locale_t type. * locale/locale.h: duplocale, freelocale, newlocale, uselocale are in POSIX 2008. Don't define locale_t here. * stdlib/monetary.h: strfmon_l is in POSIX 2008. * signal/signal.h: Declare psignal and psiginfo for POSIX 2008. * stdio-common/psiginfo.c: New file. * stdio-common/psiginfo-data.h: New file. * stdio-common/psiginfo-define.h: New file. * stdio-common/Makefile (routines): Add psiginfo. * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
Diffstat (limited to 'signal')
-rw-r--r--signal/signal.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/signal/signal.h b/signal/signal.h
index aa210374db..a5fa8d4583 100644
--- a/signal/signal.h
+++ b/signal/signal.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2003, 2004, 2007 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2003, 2004, 2007, 2009 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -136,10 +136,16 @@ extern __sighandler_t ssignal (int __sig, __sighandler_t __handler)
extern int gsignal (int __sig) __THROW;
#endif /* Use SVID. */
-#ifdef __USE_MISC
+#if defined __USE_MISC || defined __USE_XOPEN2K
/* Print a message describing the meaning of the given signal number. */
extern void psignal (int __sig, __const char *__s);
-#endif /* Use misc. */
+#endif /* Use misc or POSIX 2008. */
+
+#ifdef __USE_XOPEN2K
+/* Print a message describing the meaning of the given signal information. */
+extern void psiginfo (__const siginfo_t *__pinfo, __const char *__s);
+#endif /* POSIX 2008. */
+
/* The `sigpause' function has two different interfaces. The original