pmap_unset()

Format

#include <rpc.h>
#include <pmap_pro.h>
#include <pmap_cln.h>
 
bool_t
pmap_unset(prognum, versnum)
u_long prognum;
u_long versnum;

Parameters

prognum
Specifies the local program number.
versnum
Specifies the version number of the local program.

Usage

The pmap_unset() call removes the mappings associated with prognum and versnum on the local machine. All ports for each transport protocol currently mapping the prognum and versnum are removed from the portmap service.

Requirement: When your application registers with rpcbind rather than with portmapper, the following requirements apply:
  • Your registration request must originate from an IP address on the local host.
  • If you have defined the SAF profile EZB.RPCBIND.sysname.rpcbindname.REGISTRY in the SERVAUTH class, your application user ID must be granted at least READ access to permit this library call.

Return codes

The value 1 indicates success; the value 0 indicates an error.

Context

  • getrpcport()
  • pmap_getmaps()
  • pmap_getport()
  • pmap_rmtcall()
  • pmap_set()