2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. 2N/A/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ 2N/A/* All Rights Reserved */ 2N/A * Portions of this source code were derived from Berkeley 2N/A * 4.3 BSD under license from the Regents of the University of 2N/A * interface to pmap rpc service. 2N/A * Set a mapping between program, version and port. 2N/A * Calls the pmap service remotely to do the mapping. 2N/A * Remove the mapping between program, version and port. 2N/A * Calls the pmap service remotely to do the un-mapping. 2N/A * XXX: The call may still succeed even if only one of the 2N/A * calls succeeded. This was the best that could be 2N/A * done for backward compatibility. 2N/A * Find the mapped port for program, version. 2N/A * Calls the pmap service remotely to do the lookup. 2N/A * Returns 0 if no map exists. 2N/A * XXX: It talks only to the portmapper and not to the rpcbind 2N/A * service. There may be implementations out there which do not 2N/A * run portmapper as a part of rpcbind. 2N/A * Get a copy of the current port maps. 2N/A * Calls the pmap service remotely to do get the maps. 2N/A * pmapper remote-call-service interface. 2N/A * This routine is used to call the pmapper remote call service 2N/A * which will look up a service program in the port maps, and then 2N/A * remotely call that routine with the given parameters. This allows 2N/A * programs to do a lookup and call in one step.