diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-09-09 15:33:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-09-09 15:33:19 +0000 |
commit | a735cf56e7d9c4bc40eb151c490f994f44dae78d (patch) | |
tree | 0f916fb11a2f53d760af9b078cd2d893e7ef5b9b /lib | |
parent | 3174858e978879a9200a6f2cd8bd68cdd8f08d5e (diff) |
Hide YP-specific xdr_* functions, and have the YP tools link -lrpcsvc
as needed.
ok miod guenther
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/Symbols.list | 19 | ||||
-rw-r--r-- | lib/libc/hidden/rpcsvc/yp.h | 44 |
2 files changed, 44 insertions, 19 deletions
diff --git a/lib/libc/Symbols.list b/lib/libc/Symbols.list index 8b964f0f0d0..8fc74e9c819 100644 --- a/lib/libc/Symbols.list +++ b/lib/libc/Symbols.list @@ -1728,26 +1728,7 @@ uuid_is_nil uuid_to_string /* yp */ -xdr_domainname -xdr_keydat -xdr_mapname -xdr_peername -xdr_valdat -xdr_ypbind_binding -xdr_ypbind_resp -xdr_ypbind_resptype -xdr_ypbind_setdom -xdr_ypmaplist -xdr_ypreq_key -xdr_ypreq_nokey -xdr_ypresp_all xdr_ypresp_all_seq -xdr_ypresp_key_val -xdr_ypresp_maplist -xdr_ypresp_master -xdr_ypresp_order -xdr_ypresp_val -xdr_ypstat yp_all yp_bind yp_first diff --git a/lib/libc/hidden/rpcsvc/yp.h b/lib/libc/hidden/rpcsvc/yp.h new file mode 100644 index 00000000000..4d8ba39fe98 --- /dev/null +++ b/lib/libc/hidden/rpcsvc/yp.h @@ -0,0 +1,44 @@ +/* $OpenBSD: yp.h,v 1.1 2015/09/09 15:33:18 deraadt Exp $ */ +/* + * Copyright (c) 2015 Theo de Raadt <deraadt@openbsd.org> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef _LIBC_RPCSVC_YP_H_ +#define _LIBC_RPCSVC_YP_H_ + +#include_next <rpcsvc/yp.h> +#include "namespace.h" + +PROTO_NORMAL(xdr_domainname); +PROTO_NORMAL(xdr_keydat); +PROTO_NORMAL(xdr_mapname); +PROTO_NORMAL(xdr_peername); +PROTO_NORMAL(xdr_valdat); +PROTO_NORMAL(xdr_ypbind_binding); +PROTO_NORMAL(xdr_ypbind_resp); +PROTO_NORMAL(xdr_ypbind_resptype); +PROTO_NORMAL(xdr_ypbind_setdom); +PROTO_NORMAL(xdr_ypmaplist); +PROTO_NORMAL(xdr_ypreq_key); +PROTO_NORMAL(xdr_ypreq_nokey); +PROTO_NORMAL(xdr_ypresp_all); +PROTO_NORMAL(xdr_ypresp_key_val); +PROTO_NORMAL(xdr_ypresp_maplist); +PROTO_NORMAL(xdr_ypresp_master); +PROTO_NORMAL(xdr_ypresp_order); +PROTO_NORMAL(xdr_ypresp_val); +PROTO_NORMAL(xdr_ypstat); + +#endif /* _LIBC_RPCSVC_YP_H_ */ |