diff options
| author | kamil <kamil@NetBSD.org> | 2018-01-04 20:57:28 +0000 |
|---|---|---|
| committer | kamil <kamil@NetBSD.org> | 2018-01-04 20:57:28 +0000 |
| commit | f54fea0f02b59cfd914fa4a8c130aad36f4cfc43 (patch) | |
| tree | 982d029b0e91d115ed497911093572a84750cdc7 /lib/libc/stdlib/reallocarray.c | |
| parent | d883e3ded59c99c3b06bbded1889567f52bc898d (diff) | |
Add bunch of missing includes of namespace.h in libc
The NetBSD Standard C Library uses internally some of its functions with
a mangled symbol name, usually "_symbol". The internal functions shall not
use the global (public) symbols.
This change eliminates usage of the global changes of the following symbols:
- strlcat -> _strlcat
- sysconf -> __sysconf
- closedir -> _closedir
- fparseln -> _fparseln
- kill -> _kill
- mkstemp -> _mkstemp
- reallocarr -> _reallocarr
- strcasecmp -> _strcasecmp
- strncasecmp -> _strncasecmp
- strptime -> _strptime
- strtok_r -> _strtok_r
- sysctl -> _sysctl
- dlopen -> __dlopen
- dlclose -> __dlclose
- dlsym -> __dlsym
Sponsored by <The NetBSD Foundation>
Diffstat (limited to 'lib/libc/stdlib/reallocarray.c')
| -rw-r--r-- | lib/libc/stdlib/reallocarray.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/stdlib/reallocarray.c b/lib/libc/stdlib/reallocarray.c index 56bebf50c52..9f267889d90 100644 --- a/lib/libc/stdlib/reallocarray.c +++ b/lib/libc/stdlib/reallocarray.c @@ -1,4 +1,4 @@ -/* $NetBSD: reallocarray.c,v 1.9 2017/10/07 21:15:48 christos Exp $ */ +/* $NetBSD: reallocarray.c,v 1.10 2018/01/04 20:57:29 kamil Exp $ */ /* $OpenBSD: reallocarray.c,v 1.1 2014/05/08 21:43:49 deraadt Exp $ */ /*- @@ -31,7 +31,9 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: reallocarray.c,v 1.9 2017/10/07 21:15:48 christos Exp $"); +__RCSID("$NetBSD: reallocarray.c,v 1.10 2018/01/04 20:57:29 kamil Exp $"); + +#include "namespace.h" #define _OPENBSD_SOURCE #include <errno.h> |
