From 67c6b9aa14d625ebd5b266131566d95298d2d993 Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Mon, 24 Nov 2014 21:05:59 +0100 Subject: [PATCH] 4306 rpc_svc_calls(3nsl): Messed svc_sendreply/svc_max_pollfd Reviewed by: Richard Lowe Reviewed by: Gordon Ross Reviewed by: Yuri Pankov Approved by: Dan McDonald --- usr/src/man/man3nsl/rpc_svc_calls.3nsl | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/usr/src/man/man3nsl/rpc_svc_calls.3nsl b/usr/src/man/man3nsl/rpc_svc_calls.3nsl index 8d9b0d0812..105c9d16d4 100644 --- a/usr/src/man/man3nsl/rpc_svc_calls.3nsl +++ b/usr/src/man/man3nsl/rpc_svc_calls.3nsl @@ -1,10 +1,11 @@ '\" te +.\" Copyright 2014 Nexenta Systems, Inc. All rights reserved. .\" Copyright 1989 AT&T .\" Copyright (C) 2004 Sun Microsystems, Inc. All Rights Reserved .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH RPC_SVC_CALLS 3NSL "Oct 28, 2013" +.TH RPC_SVC_CALLS 3NSL "Nov 24, 2014" .SH NAME rpc_svc_calls, svc_dg_enablecache, svc_done, svc_exit, svc_fdset, svc_freeargs, svc_getargs, svc_getreq_common, svc_getreq_poll, svc_getreqset, @@ -79,13 +80,17 @@ svc_getcallerucred, svc_fd_negotiate_ucred \- library routines for RPC servers .LP .nf \fBbool_t\fR \fBsvc_sendreply\fR(\fBconst SVCXPRT *\fR\fIxprt\fR, \fBconst xdrproc_t\fR \fIoutproc\fR, - \fBcaddr_t\fR \fIout\fRint svc_max_pollfd; + \fBcaddr_t\fR \fIout\fR); +.fi + +.LP +.nf +int svc_max_pollfd; fd_set svc_fdset; pollfd_t *svc_pollfd; .fi .SH DESCRIPTION -.sp .LP These routines are part of the \fBRPC\fR library which allows C language programs to make procedure calls on other machines across the network. @@ -199,8 +204,8 @@ descriptor bit mask. This is only of interest if service implementors do not call \fBsvc_run()\fR, but rather do their own asynchronous event processing. This variable is read-only may change after calls to \fBsvc_getreqset()\fR or after any creation routine. Do not pass its address to \fBselect\fR(3C). -Instead, pass the address of a copy. multithreaded applications executing in -either the Automatic MT mode or the user MT mode should never read this +Instead, pass the address of a copy. Multithreaded applications executing in +either the Automatic MT mode or the User MT mode should never read this variable. They should use auxiliary threads to do asynchronous event processing. The \fBsvc_fdset\fR variable is limited to 1024 file descriptors and is considered obsolete. Use of \fBsvc_pollfd\fR is recommended instead. @@ -213,8 +218,8 @@ but rather do their own asynchronous event processing. This variable is read-only, and it may change after calls to \fBsvc_getreg_poll()\fR or any creation routines. Do no pass its address to \fBpoll\fR(2). Instead, pass the address of a copy. By default, \fBsvc_pollfd\fR is limited to 1024 entries. Use -\fBrpc_control\fR(3NSL) to remove this limitation. multithreaded applications -executing in either the Automatic MT mode or the user MT mode should never be +\fBrpc_control\fR(3NSL) to remove this limitation. Multithreaded applications +executing in either the Automatic MT mode or the User MT mode should never be read this variable. They should use auxiliary threads to do asynchronous event processing. .sp @@ -250,7 +255,6 @@ memory location is non-null, the function reuses the existing \fBucred_t\fR. When \fIucred\fR is no longer needed, a credential allocated by \fBsvc_getcallerucred()\fR should be freed with \fBucred_free\fR(3C). .SH ATTRIBUTES -.sp .LP See \fBattributes\fR(5) for descriptions of attribute types and values. .sp @@ -275,7 +279,6 @@ the Automatic or the User MT mode. The \fBsvc_getreq_common()\fR, \fBsvc_getreqset()\fR, and \fBsvc_getreq_poll()\fR functions are Unsafe in multithreaded applications and should be called only from the main thread. .SH SEE ALSO -.sp .LP \fBrpcgen\fR(1), \fBpoll\fR(2), \fBgetpeerucred\fR(3C), \fBrpc\fR(3NSL), \fBrpc_control\fR(3NSL), \fBrpc_svc_create\fR(3NSL), \fBrpc_svc_err\fR(3NSL), -- 2.11.4.GIT