OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [linux/] [include/] [rpc/] [pmap_clnt.h] - Diff between revs 148 and 158

Only display areas with differences | Details | Blame | View Log

Rev 148 Rev 158
/*      $NetBSD: pmap_clnt.h,v 1.9 2000/06/02 22:57:55 fvdl Exp $       */
/*      $NetBSD: pmap_clnt.h,v 1.9 2000/06/02 22:57:55 fvdl Exp $       */
 
 
/*
/*
 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
 * unrestricted use provided that this legend is included on all tape
 * unrestricted use provided that this legend is included on all tape
 * media and as a part of the software program in whole or part.  Users
 * media and as a part of the software program in whole or part.  Users
 * may copy or modify Sun RPC without charge, but are not authorized
 * may copy or modify Sun RPC without charge, but are not authorized
 * to license or distribute it to anyone else except as part of a product or
 * to license or distribute it to anyone else except as part of a product or
 * program developed by the user.
 * program developed by the user.
 *
 *
 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
 * WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
 *
 *
 * Sun RPC is provided with no support and without any obligation on the
 * Sun RPC is provided with no support and without any obligation on the
 * part of Sun Microsystems, Inc. to assist in its use, correction,
 * part of Sun Microsystems, Inc. to assist in its use, correction,
 * modification or enhancement.
 * modification or enhancement.
 *
 *
 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
 * OR ANY PART THEREOF.
 * OR ANY PART THEREOF.
 *
 *
 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
 * or profits or other special, indirect and consequential damages, even if
 * or profits or other special, indirect and consequential damages, even if
 * Sun has been advised of the possibility of such damages.
 * Sun has been advised of the possibility of such damages.
 *
 *
 * Sun Microsystems, Inc.
 * Sun Microsystems, Inc.
 * 2550 Garcia Avenue
 * 2550 Garcia Avenue
 * Mountain View, California  94043
 * Mountain View, California  94043
 *
 *
 *      from: @(#)pmap_clnt.h 1.11 88/02/08 SMI
 *      from: @(#)pmap_clnt.h 1.11 88/02/08 SMI
 *      from: @(#)pmap_clnt.h   2.1 88/07/29 4.0 RPCSRC
 *      from: @(#)pmap_clnt.h   2.1 88/07/29 4.0 RPCSRC
 * $FreeBSD: src/include/rpc/pmap_clnt.h,v 1.14 2002/04/28 15:18:45 des Exp $
 * $FreeBSD: src/include/rpc/pmap_clnt.h,v 1.14 2002/04/28 15:18:45 des Exp $
 */
 */
 
 
/*
/*
 * pmap_clnt.h
 * pmap_clnt.h
 * Supplies C routines to get to portmap services.
 * Supplies C routines to get to portmap services.
 *
 *
 * Copyright (C) 1984, Sun Microsystems, Inc.
 * Copyright (C) 1984, Sun Microsystems, Inc.
 */
 */
 
 
/*
/*
 * Usage:
 * Usage:
 *      success = pmap_set(program, version, protocol, port);
 *      success = pmap_set(program, version, protocol, port);
 *      success = pmap_unset(program, version);
 *      success = pmap_unset(program, version);
 *      port = pmap_getport(address, program, version, protocol);
 *      port = pmap_getport(address, program, version, protocol);
 *      head = pmap_getmaps(address);
 *      head = pmap_getmaps(address);
 *      clnt_stat = pmap_rmtcall(address, program, version, procedure,
 *      clnt_stat = pmap_rmtcall(address, program, version, procedure,
 *              xdrargs, argsp, xdrres, resp, tout, port_ptr)
 *              xdrargs, argsp, xdrres, resp, tout, port_ptr)
 *              (works for udp only.)
 *              (works for udp only.)
 *      clnt_stat = clnt_broadcast(program, version, procedure,
 *      clnt_stat = clnt_broadcast(program, version, procedure,
 *              xdrargs, argsp, xdrres, resp, eachresult)
 *              xdrargs, argsp, xdrres, resp, eachresult)
 *              (like pmap_rmtcall, except the call is broadcasted to all
 *              (like pmap_rmtcall, except the call is broadcasted to all
 *              locally connected nets.  For each valid response received,
 *              locally connected nets.  For each valid response received,
 *              the procedure eachresult is called.  Its form is:
 *              the procedure eachresult is called.  Its form is:
 *      done = eachresult(resp, raddr)
 *      done = eachresult(resp, raddr)
 *              bool_t done;
 *              bool_t done;
 *              caddr_t resp;
 *              caddr_t resp;
 *              struct sockaddr_in raddr;
 *              struct sockaddr_in raddr;
 *              where resp points to the results of the call and raddr is the
 *              where resp points to the results of the call and raddr is the
 *              address if the responder to the broadcast.
 *              address if the responder to the broadcast.
 */
 */
 
 
#ifndef _RPC_PMAP_CLNT_H_
#ifndef _RPC_PMAP_CLNT_H_
#define _RPC_PMAP_CLNT_H_
#define _RPC_PMAP_CLNT_H_
#include <sys/cdefs.h>
#include <sys/cdefs.h>
 
 
__BEGIN_DECLS
__BEGIN_DECLS
extern bool_t           pmap_set(u_long, u_long, int, int);
extern bool_t           pmap_set(u_long, u_long, int, int);
extern bool_t           pmap_unset(u_long, u_long);
extern bool_t           pmap_unset(u_long, u_long);
extern struct pmaplist  *pmap_getmaps(struct sockaddr_in *);
extern struct pmaplist  *pmap_getmaps(struct sockaddr_in *);
extern enum clnt_stat   pmap_rmtcall(struct sockaddr_in *,
extern enum clnt_stat   pmap_rmtcall(struct sockaddr_in *,
                                     u_long, u_long, u_long,
                                     u_long, u_long, u_long,
                                     xdrproc_t, caddr_t,
                                     xdrproc_t, caddr_t,
                                     xdrproc_t, caddr_t,
                                     xdrproc_t, caddr_t,
                                     struct timeval, u_long *);
                                     struct timeval, u_long *);
extern enum clnt_stat   clnt_broadcast(u_long, u_long, u_long,
extern enum clnt_stat   clnt_broadcast(u_long, u_long, u_long,
                                       xdrproc_t, void *,
                                       xdrproc_t, void *,
                                       xdrproc_t, void *,
                                       xdrproc_t, void *,
                                       resultproc_t);
                                       resultproc_t);
extern u_short          pmap_getport(struct sockaddr_in *,
extern u_short          pmap_getport(struct sockaddr_in *,
                                     u_long, u_long, u_int);
                                     u_long, u_long, u_int);
__END_DECLS
__END_DECLS
 
 
#endif /* !_RPC_PMAP_CLNT_H_ */
#endif /* !_RPC_PMAP_CLNT_H_ */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.