diff options
| author | kleink <kleink@NetBSD.org> | 2009-07-22 19:48:27 +0000 |
|---|---|---|
| committer | kleink <kleink@NetBSD.org> | 2009-07-22 19:48:27 +0000 |
| commit | 9be4603670f2453564ef28e2691c5cd99419b1be (patch) | |
| tree | e69fa59e52a539517c261b0e8768979f2b270445 /include/string.h | |
| parent | 65db08e438ead04b428b8dd9dc98ba49179bd50a (diff) | |
Declare strsignal(3) in <string.h>, per POSIX-2008, and adjust
documentation accordingly.
Fixes PR standards/41325 from Perry E. Metzger.
Diffstat (limited to 'include/string.h')
| -rw-r--r-- | include/string.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/string.h b/include/string.h index 9e3a8141dd6..98825fb705a 100644 --- a/include/string.h +++ b/include/string.h @@ -1,4 +1,4 @@ -/* $NetBSD: string.h,v 1.38 2009/05/01 20:01:23 perry Exp $ */ +/* $NetBSD: string.h,v 1.39 2009/07/22 19:48:27 kleink Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -84,13 +84,16 @@ char *strdup(const char *); char *stpcpy(char * __restrict, const char * __restrict); char *stpncpy(char * __restrict, const char * __restrict, size_t); size_t strnlen(const char *, size_t); +#ifndef __STRSIGNAL_DECLARED +#define __STRSIGNAL_DECLARED +/* also in unistd.h */ +__aconst char *strsignal(int); +#endif /* __STRSIGNAL_DECLARED */ /* * For POSIX compliance, we still need: * strcoll_l * strerror_l * strxfrm_l - * - * and strsignal needs to be moved from unistd.h to here. */ #endif |
