Changeset 12db3bda in rtems for cpukit/librpc


Ignore:
Timestamp:
May 25, 2005, 3:07:19 PM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
f48dc9ac
Parents:
c11cb9a5
Message:

Misc. fixes.

Location:
cpukit/librpc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/librpc/include/rpc/rpc_com.h

    rc11cb9a5 r12db3bda  
     1/*      $NetBSD: rpc_com.h,v 1.3 2000/12/10 04:10:08 christos Exp $     */
     2/*      $FreeBSD: src/include/rpc/rpc_com.h,v 1.6 2003/01/16 07:13:51 mbr Exp $ */
     3
    14/*
    25 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
     
    3235
    3336/*
     37 * $Id$
     38 */
     39 
     40/*
    3441 * rpc_com.h, Common definitions for both the server and client side.
    3542 * All for the topmost layer of rpc
     
    4047#define _RPC_RPCCOM_H
    4148
    42 /* From: #pragma ident  "@(#)rpc_com.h  1.11    93/07/05 SMI" */
     49#include <sys/cdefs.h>
    4350
    44 #ifdef __cplusplus
    45 extern "C" {
    46 #endif
     51/* #pragma ident        "@(#)rpc_com.h  1.11    93/07/05 SMI" */
    4752
    48 /*
    49  * File descriptor to be used on xxx_create calls to get default descriptor
    50  */
    51 #define RPC_ANYSOCK     -1
    52 #define RPC_ANYFD       RPC_ANYSOCK
    5353/*
    5454 * The max size of the transport, if the size cannot be determined
     
    5858#define RPC_MAXADDRSIZE 1024
    5959
    60 #if defined(__STDC__) || defined(__cplusplus)
    61 extern u_int __rpc_get_t_size (int, long);
    62 extern u_int __rpc_get_a_size (long);
    63 extern int __rpc_dtbsize (void);
    64 extern int _rpc_dtablesize (void);
     60__BEGIN_DECLS
     61extern u_int __rpc_get_a_size(int);
     62extern u_int __rpc_get_t_size(int, long);
     63extern int __rpc_dtbsize(void);
     64extern int _rpc_dtablesize(void);
    6565extern  int  _rpc_get_default_domain(char **);
    66 #else
    67 extern u_int __rpc_get_t_size ();
    68 extern u_int __rpc_get_a_size ();
    69 extern int __rpc_dtbsize ();
    70 extern int _rpc_dtablesize ();
    71 extern  int _rpc_get_default_domain();
    72 #endif
    73 
    74 #ifdef __cplusplus
    75 }
    76 #endif
     66__END_DECLS
    7767
    7868#endif /* _RPC_RPCCOM_H */
  • cpukit/librpc/include/rpc/rpc_msg.h

    rc11cb9a5 r12db3bda  
    2929 *      from: @(#)rpc_msg.h 1.7 86/07/16 SMI
    3030 *      from: @(#)rpc_msg.h     2.1 88/07/29 4.0 RPCSRC
    31  * $FreeBSD: src/include/rpc/rpc_msg.h,v 1.12 1999/08/27 23:45:05 peter Exp $
     31 * $FreeBSD: src/include/rpc/rpc_msg.h,v 1.15 2003/01/01 18:48:42 schweikh Exp $
    3232 */
    3333
     
    3939 */
    4040
    41 #ifndef _RPC_RPCMSG_H
    42 #define _RPC_RPCMSG_H
     41/*
     42 * $Id$
     43 */
    4344
    44 #define RPC_MSG_VERSION         ((u_long) 2)
     45#ifndef _RPC_RPC_MSG_H
     46#define _RPC_RPC_MSG_H
     47
     48#define RPC_MSG_VERSION         ((u_int32_t) 2)
    4549#define RPC_SERVICE_PORT        ((u_short) 2048)
    4650
     
    166170 *      struct rpc_msg *cmsg;
    167171 */
    168 extern bool_t   xdr_callmsg     __P((XDR *, struct rpc_msg *));
     172extern bool_t   xdr_callmsg(XDR *, struct rpc_msg *);
    169173
    170174/*
     
    174178 *      struct rpc_msg *cmsg;
    175179 */
    176 extern bool_t   xdr_callhdr     __P((XDR *, struct rpc_msg *));
     180extern bool_t   xdr_callhdr(XDR *, struct rpc_msg *);
    177181
    178182/*
     
    190194 *      struct rpc_err *error;
    191195 */
    192 struct rpc_err;
    193 extern void     _seterr_reply   __P((struct rpc_msg *, struct rpc_err *));
     196extern void     _seterr_reply(struct rpc_msg *, struct rpc_err *);
    194197__END_DECLS
    195198
    196 #endif /* !_RPC_RPCMSG_H */
     199#endif /* !_RPC_RPC_MSG_H */
  • cpukit/librpc/src/rpc/svc_simple.c

    rc11cb9a5 r12db3bda  
    4444#include <stdlib.h>
    4545#include <string.h>
     46#include <inttypes.h>
    4647#include <rpc/rpc.h>
    4748#include <rpc/pmap_clnt.h>
     
    5152struct prog_lst {
    5253        char *(*p_progname)();
    53         int  p_prognum;
    54         int  p_procnum;
     54        rpcprog_t  p_prognum;
     55        rpcproc_t  p_procnum;
    5556        xdrproc_t p_inproc, p_outproc;
    5657        struct prog_lst *p_nxt;
     
    7374        if (procnum == NULLPROC) {
    7475                (void) fprintf(stderr,
    75                     "can't reassign procedure number %ld\n", NULLPROC);
     76                    "can't reassign procedure number %" PRIu32 "\n", NULLPROC);
    7677                return (-1);
    7778        }
Note: See TracChangeset for help on using the changeset viewer.