aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-05-18 04:48:58 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-05-18 04:48:58 +0000
commit78121e79aa390b2e94fb8aca2d0477d81aa20cf2 (patch)
treea7da280e9c51ddf3723fc804ad191a284f8d89a0 /include
parentb1334ec97da48be7ae393b95f60d139a16e6fc6a (diff)
downloadsrc-78121e79aa390b2e94fb8aca2d0477d81aa20cf2.tar.gz
src-78121e79aa390b2e94fb8aca2d0477d81aa20cf2.zip
Add a strsignal(3) (like strerror(3)) for libc compatability with other
systems. NetBSD, Linux, SVR4 etc all have it.
Notes
Notes: svn path=/head/; revision=47289
Diffstat (limited to 'include')
-rw-r--r--include/signal.h1
-rw-r--r--include/string.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/signal.h b/include/signal.h
index cba3a4461efd..69832e068d1e 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -44,6 +44,7 @@
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
extern __const char *__const sys_signame[NSIG];
extern __const char *__const sys_siglist[NSIG];
+extern __const int sys_nsig;
#endif
__BEGIN_DECLS
diff --git a/include/string.h b/include/string.h
index acfebfc7141a..56997677af4c 100644
--- a/include/string.h
+++ b/include/string.h
@@ -86,6 +86,7 @@ char *strdup __P((const char *));
void strmode __P((int, char *));
int strncasecmp __P((const char *, const char *, size_t));
char *strsep __P((char **, const char *));
+char *strsignal __P((int));
char *strtok_r __P((char *, const char *, char **));
void swab __P((const void *, void *, size_t));
#endif