Print this page
4340 rpc_clnt_create(3nsl): rpc_createerr is a variable, not a function

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3nsl/rpc_clnt_create.3nsl
          +++ new/usr/src/man/man3nsl/rpc_clnt_create.3nsl
   1    1  '\" te
   2    2  .\"  Copyright 1989 AT&T
   3    3  .\" Copyright (C) 2009, Sun Microsystems, Inc. All Rights Reserved
   4    4  .\" 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.
   5    5  .\"  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
   6    6  .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   7      -.TH RPC_CLNT_CREATE 3NSL "Jul 23, 2009"
        7 +.TH RPC_CLNT_CREATE 3NSL "Dec 16, 2013"
   8    8  .SH NAME
   9    9  rpc_clnt_create, clnt_control, clnt_create, clnt_create_timed,
  10   10  clnt_create_vers, clnt_create_vers_timed, clnt_destroy, clnt_dg_create,
  11   11  clnt_pcreateerror, clnt_raw_create, clnt_spcreateerror, clnt_tli_create,
  12   12  clnt_tp_create, clnt_tp_create_timed, clnt_vc_create, rpc_createerr,
  13   13  clnt_door_create \- library routines for dealing with creation and manipulation
  14   14  of CLIENT handles
  15   15  .SH SYNOPSIS
  16   16  .LP
  17   17  .nf
↓ open down ↓ 85 lines elided ↑ open up ↑
 103  103  .LP
 104  104  .nf
 105  105  \fBCLIENT *\fR\fBclnt_vc_create\fR(\fBconst int\fR \fIfildes\fR,
 106  106       \fBconst struct netbuf *\fR\fIsvcaddr\fR, \fBconst rpcprog_t\fR \fIprognum\fR,
 107  107       \fBconst rpcvers_t\fR \fIversnum\fR, \fBconst uint_t\fR \fIsendsz\fR,
 108  108       \fBconst uint_t\fR \fIrecsz\fR);
 109  109  .fi
 110  110  
 111  111  .LP
 112  112  .nf
 113      -\fBstruct rpc_createerr\fR \fBrpc_createerr\fR
      113 +\fBstruct rpc_createerr\fR \fBrpc_createerr\fR;
 114  114  .fi
 115  115  
 116  116  .LP
 117  117  .nf
 118  118  \fBCLIENT *\fR\fBclnt_door_create\fR(\fBconst rpcprog_t\fR \fIprognum\fR,
 119  119       \fBconst rpcvers_t\fR \fIversnum\fR, \fBconst uint_t\fR \fIsendsz\fR);
 120  120  .fi
 121  121  
 122  122  .SH DESCRIPTION
 123  123  .sp
 124  124  .LP
 125  125  \fBRPC\fR library routines allow  \fBC\fR language programs to make procedure
 126  126  calls on other machines across the network. First a \fBCLIENT\fR handle is
 127  127  created and then the client calls a procedure to send a request to the server.
 128  128  On receipt of the request, the server calls a dispatch routine to perform the
 129  129  requested service, and then sends a reply.
 130  130  .sp
 131  131  .LP
 132  132  These routines are MT-Safe. In the case of multithreaded applications, the
 133  133  \fB-mt\fR option must be specified on the command line at compilation time.
 134      -When the \fB-mt\fR option is specified, \fBrpc_createerr()\fR becomes a macro
 135      -that enables each thread to have its own \fBrpc_createerr()\fR. See
      134 +When the \fB-mt\fR option is specified, \fBrpc_createerr\fR becomes a macro
      135 +that enables each thread to have its own \fBrpc_createerr\fR. See
 136  136  \fBthreads\fR(5).
 137  137  .SS "Routines"
 138  138  .sp
 139  139  .LP
 140  140  See \fBrpc\fR(3NSL) for the definition of the \fBCLIENT\fR data structure.
 141  141  .sp
 142  142  .ne 2
 143  143  .na
 144  144  \fB\fBclnt_control()\fR\fR
 145  145  .ad
↓ open down ↓ 365 lines elided ↑ open up ↑
 511  511  fails.
 512  512  .sp
 513  513  The address \fIsvcaddr\fR should not be \fINULL\fR and should point to the
 514  514  actual address of the remote program. \fBclnt_vc_create()\fR does not consult
 515  515  the remote \fBrpcbind\fR service for this information.
 516  516  .RE
 517  517  
 518  518  .sp
 519  519  .ne 2
 520  520  .na
 521      -\fB\fBrpc_createerr()\fR\fR
      521 +\fB\fBrpc_createerr\fR\fR
 522  522  .ad
 523  523  .sp .6
 524  524  .RS 4n
 525  525  A global variable whose value is set by any \fBRPC\fR client handle creation
 526  526  routine that fails.  It is used by the routine \fBclnt_pcreateerror()\fR to
 527  527  print the reason for the failure.
 528  528  .sp
 529  529  In multithreaded applications, \fBrpc_createerr\fR becomes a macro which
 530  530  enables each thread to have its own \fBrpc_createerr\fR.
 531  531  .RE
↓ open down ↓ 43 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX