diff options
author | guenther <> | 2015-09-05 11:25:30 +0000 |
---|---|---|
committer | guenther <> | 2015-09-05 11:25:30 +0000 |
commit | 9bd9ea1e2dcdaad0b3a64cf0240acfa7c885f4d2 (patch) | |
tree | afc88c4b4c6d7b062be2b4e575e8d879b0db6fae | |
parent | 237233ce584d25df55d24c3114c46b643889d98d (diff) | |
download | openbsd-9bd9ea1e2dcdaad0b3a64cf0240acfa7c885f4d2.tar.gz openbsd-9bd9ea1e2dcdaad0b3a64cf0240acfa7c885f4d2.tar.bz2 openbsd-9bd9ea1e2dcdaad0b3a64cf0240acfa7c885f4d2.zip |
Use new framework for wrapping cat{open,gets,close}(), eliminating
_cat* in the process.
ok kettenis@
-rw-r--r-- | src/lib/libc/include/namespace.h | 5 | ||||
-rw-r--r-- | src/lib/libc/string/strerror_r.c | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/libc/include/namespace.h b/src/lib/libc/include/namespace.h index b0cad502a3..381ccc35be 100644 --- a/src/lib/libc/include/namespace.h +++ b/src/lib/libc/include/namespace.h | |||
@@ -1,12 +1,9 @@ | |||
1 | /* $OpenBSD: namespace.h,v 1.3 2015/08/31 02:53:56 guenther Exp $ */ | 1 | /* $OpenBSD: namespace.h,v 1.4 2015/09/05 11:25:30 guenther Exp $ */ |
2 | 2 | ||
3 | #ifndef _LIBC_NAMESPACE_H_ | 3 | #ifndef _LIBC_NAMESPACE_H_ |
4 | #define _LIBC_NAMESPACE_H_ | 4 | #define _LIBC_NAMESPACE_H_ |
5 | 5 | ||
6 | /* These will be replaced with symbol renaming ala PROTO_NORMAL */ | 6 | /* These will be replaced with symbol renaming ala PROTO_NORMAL */ |
7 | #define catclose _catclose | ||
8 | #define catgets _catgets | ||
9 | #define catopen _catopen | ||
10 | #define strtoq _strtoq | 7 | #define strtoq _strtoq |
11 | #define strtouq _strtouq | 8 | #define strtouq _strtouq |
12 | #define sys_errlist _sys_errlist | 9 | #define sys_errlist _sys_errlist |
diff --git a/src/lib/libc/string/strerror_r.c b/src/lib/libc/string/strerror_r.c index 90aa012360..2262cb512d 100644 --- a/src/lib/libc/string/strerror_r.c +++ b/src/lib/libc/string/strerror_r.c | |||
@@ -1,10 +1,7 @@ | |||
1 | /* $OpenBSD: strerror_r.c,v 1.9 2015/08/31 02:53:57 guenther Exp $ */ | 1 | /* $OpenBSD: strerror_r.c,v 1.10 2015/09/05 11:25:30 guenther Exp $ */ |
2 | /* Public Domain <marc@snafu.org> */ | 2 | /* Public Domain <marc@snafu.org> */ |
3 | 3 | ||
4 | #ifdef NLS | 4 | #ifdef NLS |
5 | #define catclose _catclose | ||
6 | #define catgets _catgets | ||
7 | #define catopen _catopen | ||
8 | #include <nl_types.h> | 5 | #include <nl_types.h> |
9 | #endif | 6 | #endif |
10 | 7 | ||