From a546d85a3d8311e150ad32416337a72977192bca Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sat, 31 Jan 2009 23:13:20 +0100 Subject: [PATCH] rpc_svc_calls(3): Remove __svc_getcallercreds() documentation. FreeBSD removed the macro but forgot to adjust the manpage. --- Makefile_upgrade.inc | 2 ++ lib/libc/rpc/Makefile.inc | 1 - lib/libc/rpc/rpc_svc_calls.3 | 21 ++------------------- 3 files changed, 4 insertions(+), 20 deletions(-) diff --git a/Makefile_upgrade.inc b/Makefile_upgrade.inc index ed6140d5a0..0686c897d2 100644 --- a/Makefile_upgrade.inc +++ b/Makefile_upgrade.inc @@ -1053,3 +1053,5 @@ TO_REMOVE+=/usr/include/machine/cronyx.h TO_REMOVE+=/usr/share/man/man4/i386/cx.4.gz TO_REMOVE+=/usr/share/man/cat4/i386/cx.4.gz TO_REMOVE+=/usr/share/zoneinfo/Asia/Katmandu +TO_REMOVE+=/usr/share/man/man3/__svc_getcallercreds.3.gz +TO_REMOVE+=/usr/share/man/cat3/__svc_getcallercreds.3.gz diff --git a/lib/libc/rpc/Makefile.inc b/lib/libc/rpc/Makefile.inc index 37f53a8c07..7ab8ff01cb 100644 --- a/lib/libc/rpc/Makefile.inc +++ b/lib/libc/rpc/Makefile.inc @@ -138,7 +138,6 @@ MLINKS+= bindresvport.3 bindresvport_sa.3 \ rpc_soc.3 svcunixfd_create.3 \ rpc_soc.3 xdr_pmap.3 \ rpc_soc.3 xdr_pmaplist.3 \ - rpc_svc_calls.3 __svc_getcallercreds.3 \ rpc_svc_calls.3 svc_dg_enablecache.3 \ rpc_svc_calls.3 svc_exit.3 \ rpc_svc_calls.3 svc_freeargs.3 \ diff --git a/lib/libc/rpc/rpc_svc_calls.3 b/lib/libc/rpc/rpc_svc_calls.3 index 3eeacd0bcd..93d98545dd 100644 --- a/lib/libc/rpc/rpc_svc_calls.3 +++ b/lib/libc/rpc/rpc_svc_calls.3 @@ -4,8 +4,7 @@ .\" Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved. .\" $NetBSD: rpc_svc_calls.3,v 1.1 2000/06/02 23:11:13 fvdl Exp $ .\" $FreeBSD: src/lib/libc/rpc/rpc_svc_calls.3,v 1.10 2005/11/23 16:44:23 ru Exp $ -.\" $DragonFly$ -.Dd May 3, 1993 +.Dd January 31, 2009 .Dt RPC_SVC_CALLS 3 .Os .Sh NAME @@ -42,8 +41,6 @@ .Fn svc_getreqset "fd_set * rdfds" .Ft "struct netbuf *" .Fn svc_getrpccaller "const SVCXPRT *xprt" -.Ft "struct cmsgcred *" -.Fn __svc_getcallercreds "const SVCXPRT *xprt" .Vt struct pollfd svc_pollset[FD_SETSIZE]; .Ft void .Fn svc_run "void" @@ -76,7 +73,7 @@ See for the definition of the .Vt SVCXPRT data structure. -.Bl -tag -width __svc_getcallercreds() +.Bl -tag -width ".Fn svc_dg_enablecache" .It Fn svc_dg_enablecache This function allocates a duplicate request cache for the service endpoint @@ -197,20 +194,6 @@ The approved way of getting the network address of the caller of a procedure associated with the RPC service transport handle .Fa xprt . -.It Fn __svc_getcallercreds -.Em Warning : -this macro is specific to -.Fx -and thus not portable. -This macro returns a pointer to a -.Vt cmsgcred -structure, defined in -.In sys/socket.h , -identifying the calling client. -This only works if the client is -calling the server over an -.Dv AF_LOCAL -socket. .It Xo .Vt struct pollfd Va svc_pollset[FD_SETSIZE] ; .Xc -- 2.41.0