Project

General

Profile

Bug #4340

rpc_clnt_create(3nsl): rpc_createerr is a variable, not a function

Added by Marcel Telka over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
manpage - manual pages
Start date:
2013-11-19
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

From the rpc_clnt_create(3nsl) man page:

     struct rpc_createerr rpc_createerr

...

     These routines are MT-Safe. In  the  case  of  multithreaded
     applications,  the  -mt option must be specified on the com-
     mand line at compilation  time.   When  the  -mt  option  is
     specified, rpc_createerr() becomes a macro that enables each
     thread to have its own rpc_createerr(). See threads(5).

...

     rpc_createerr()

         A global variable whose value is set by any  RPC  client
         handle  creation  routine that fails.  It is used by the
         routine clnt_pcreateerror() to print the reason for  the
         failure.

Since rpc_createerr is a global variable, there shouldn't be parens (three times above). In addition, as a minor nit, semicolon should be placed after the rpc_createerr declaration in the man page synopsis.

History

#1

Updated by Marcel Telka over 5 years ago

  • Status changed from New to In Progress
#2

Updated by Robert Mustacchi over 5 years ago

  • Status changed from In Progress to Resolved
  • Assignee set to Shruti Sampat
  • % Done changed from 0 to 100
  • Tags deleted (needs-triage)

Resolved in 24766d6b5e8d2ed5f6aff0dad6e9ae49121d4c30.

Also available in: Atom PDF