Bug #6278

rpc_svc_reg(3nsl): Arguments for the dispatch() function should be documented

Added by Marcel Telka almost 3 years ago. Updated almost 3 years ago.

Status:NewStart date:2015-10-01
Priority:LowDue date:
Assignee:-% Done:

0%

Category:manpage - manual pages
Target version:-
Difficulty:Bite-size Tags:needs-triage

Description

The rpc_svc_reg(3nsl) man page is missing a description of the dispatch function arguments.

In addition, there are few minor typos here in the man page:

       int svc_reg(const SVCXPRT *xprt, const rpcprog_t prognum, const
       rpcvers_t versnum, const void (*dispatch)(), const struct netconfig
       *netconf);
           Associates prognum and versnum with the service dispatch procedure,
           dispatch. If netconf is NULL, the service is not registered with
           the rpcbind service.  For example, if a service has already been
           registered using some other means, such as inetd (see  inetd(1M)),
           it will not need to be registered again. If netconf is non-zero,
           then a mapping of the triple [prognum,  versnum, netconf->] to
           xprt-> xp_ltaddr is established with the local rpcbind service.

           The svc_reg() routine returns 1 if it succeeds, and 0 otherwise.

First, the "netconf->]" should be changed to "netconf]".

Second, the space before xp_ltaddr should be removed.

History

#1 Updated by Marcel Telka almost 3 years ago

  • Description updated (diff)
  • Subject changed from rpc_svc_reg(3nsl): Typos in the man page to rpc_svc_reg(3nsl): Arguments for the dispatch() function should be documented

Also available in: Atom