summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-05-30 02:53:29 +0000
committerguenther <guenther@openbsd.org>2016-05-30 02:53:29 +0000
commit8ae7fd5a8b25750a56d9f379f0a603221b54b459 (patch)
tree5c946b7388fc8c353d1ff653a5b60400078d72af /lib/libc
parentDo setjmp cookies for eip, esp, and ebp. For bonus points, mix how (diff)
downloadwireguard-openbsd-8ae7fd5a8b25750a56d9f379f0a603221b54b459.tar.xz
wireguard-openbsd-8ae7fd5a8b25750a56d9f379f0a603221b54b459.zip
Stop publicly declaring _yp_dobind() and struct dom_binding, closing out
a rant Theo wrote 24 years ago. Mark __ypexclude_{add,is,free}() as hidden "get off my lawn!" deraadt@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/hidden/rpcsvc/ypclnt.h8
-rw-r--r--lib/libc/yp/yp_bind.c3
-rw-r--r--lib/libc/yp/ypexclude.h4
3 files changed, 10 insertions, 5 deletions
diff --git a/lib/libc/hidden/rpcsvc/ypclnt.h b/lib/libc/hidden/rpcsvc/ypclnt.h
index 6a5aa7b8365..30ad7660069 100644
--- a/lib/libc/hidden/rpcsvc/ypclnt.h
+++ b/lib/libc/hidden/rpcsvc/ypclnt.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypclnt.h,v 1.1 2015/09/13 20:57:28 guenther Exp $ */
+/* $OpenBSD: ypclnt.h,v 1.2 2016/05/30 02:53:29 guenther Exp $ */
/*
* Copyright (c) 2015 Philip Guenther <guenther@openbsd.org>
*
@@ -20,7 +20,11 @@
#include_next <rpcsvc/ypclnt.h>
-PROTO_NORMAL(_yp_dobind);
+__BEGIN_HIDDEN_DECLS
+struct dom_binding;
+int _yp_dobind(const char *, struct dom_binding **);
+__END_HIDDEN_DECLS
+
PROTO_DEPRECATED(yp_all);
PROTO_NORMAL(yp_bind);
PROTO_NORMAL(yp_first);
diff --git a/lib/libc/yp/yp_bind.c b/lib/libc/yp/yp_bind.c
index 48c639739e3..9208fd5225b 100644
--- a/lib/libc/yp/yp_bind.c
+++ b/lib/libc/yp/yp_bind.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yp_bind.c,v 1.27 2016/05/29 22:42:24 guenther Exp $ */
+/* $OpenBSD: yp_bind.c,v 1.28 2016/05/30 02:53:29 guenther Exp $ */
/*
* Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com>
* All rights reserved.
@@ -248,7 +248,6 @@ gotdata:
*ypdb = ysd;
return 0;
}
-DEF_WEAK(_yp_dobind);
void
_yp_unbind(struct dom_binding *ypb)
diff --git a/lib/libc/yp/ypexclude.h b/lib/libc/yp/ypexclude.h
index 4ab5fabe1b2..599064dd57c 100644
--- a/lib/libc/yp/ypexclude.h
+++ b/lib/libc/yp/ypexclude.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypexclude.h,v 1.1 2009/06/03 16:02:44 schwarze Exp $ */
+/* $OpenBSD: ypexclude.h,v 1.2 2016/05/30 02:53:29 guenther Exp $ */
/*
* Copyright (c) 1995, 1996, Jason Downs. All rights reserved.
*
@@ -36,6 +36,8 @@ struct _ypexclude {
struct _ypexclude *next;
};
+__BEGIN_HIDDEN_DECLS
int __ypexclude_add(struct _ypexclude **, const char *);
int __ypexclude_is(struct _ypexclude **, const char *);
void __ypexclude_free(struct _ypexclude **);
+__END_HIDDEN_DECLS