Changeset c11cb9a5 in rtems


Ignore:
Timestamp:
05/25/05 13:56:50 (19 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
12db3bda
Parents:
984d9224
Message:

More updates from FreeBSD.

Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r984d9224 rc11cb9a5  
    112005-05-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
    22
    3         * librpc/include/rpc/clnt.h, librpc/include/rpc/clnt_soc.h,
     3        * include/rpc/clnt.h, include/rpc/svc.h,
     4        librpc/include/rpc/clnt.h, librpc/include/rpc/clnt_soc.h,
    45        src/rpc/clnt_perror.c: More updates from FreeBSD.
    56
  • cpukit/librpc/include/rpc/clnt.h

    r984d9224 rc11cb9a5  
    4646 * Mountain View, California  94043
    4747 *
    48  *      from: @(#)clnt.h 1.31 88/02/08 SMI
     48 *      from: @(#)clnt.h 1.31 94/04/29 SMI
    4949 *      from: @(#)clnt.h        2.1 88/07/29 4.0 RPCSRC
    50  * $FreeBSD: src/include/rpc/clnt.h,v 1.11 1999/08/27 23:45:03 peter Exp $
     50 * $FreeBSD: src/include/rpc/clnt.h,v 1.21 2003/01/24 01:47:55 fjoe Exp $
    5151 */
    5252
     
    5454 * clnt.h - Client side remote procedure call interface.
    5555 *
    56  * Copyright (C) 1984, Sun Microsystems, Inc.
    57  */
     56 * Copyright (c) 1986-1991,1994-1999 by Sun Microsystems, Inc.
     57 * All rights reserved.
     58 */
     59
     60/*
     61 * $Id$
     62 */
    5863
    5964#ifndef _RPC_CLNT_H_
    6065#define _RPC_CLNT_H_
     66#include <rpc/clnt_stat.h>
    6167#include <sys/cdefs.h>
    6268#include <sys/un.h>
    63 
    64 /*
    65  * Rpc calls return an enum clnt_stat.  This should be looked at more,
    66  * since each implementation is required to live with this (implementation
    67  * independent) list of errors.
    68  */
    69 enum clnt_stat {
    70         RPC_SUCCESS=0,                  /* call succeeded */
    71         /*
    72          * local errors
    73          */
    74         RPC_CANTENCODEARGS=1,           /* can't encode arguments */
    75         RPC_CANTDECODERES=2,            /* can't decode results */
    76         RPC_CANTSEND=3,                 /* failure in sending call */
    77         RPC_CANTRECV=4,                 /* failure in receiving result */
    78         RPC_TIMEDOUT=5,                 /* call timed out */
    79         /*
    80          * remote errors
    81          */
    82         RPC_VERSMISMATCH=6,             /* rpc versions not compatible */
    83         RPC_AUTHERROR=7,                /* authentication error */
    84         RPC_PROGUNAVAIL=8,              /* program not available */
    85         RPC_PROGVERSMISMATCH=9,         /* program version mismatched */
    86         RPC_PROCUNAVAIL=10,             /* procedure unavailable */
    87         RPC_CANTDECODEARGS=11,          /* decode arguments error */
    88         RPC_SYSTEMERROR=12,             /* generic "other problem" */
    89 
    90         /*
    91          * callrpc & clnt_create errors
    92          */
    93         RPC_UNKNOWNHOST=13,             /* unknown host name */
    94         RPC_UNKNOWNPROTO=17,            /* unkown protocol */
    95 
    96         /*
    97          * _ create errors
    98          */
    99         RPC_PMAPFAILURE=14,             /* the pmapper failed in its call */
    100         RPC_PROGNOTREGISTERED=15,       /* remote program is not registered */
    101         /*
    102          * unspecified error
    103          */
    104         RPC_FAILED=16
    105 };
    106 
    10769
    10870/*
     
    159121} CLIENT;
    160122
     123#define RPCSMALLMSGSIZE 400     /* a more reasonable packet size */
    161124
    162125/*
     
    349312extern struct rpc_createerr rpc_createerr;
    350313
    351 
    352 #define UDPMSGSIZE      8800    /* rpc imposed limit on udp msg size */
    353 #define RPCSMALLMSGSIZE 400     /* a more reasonable packet size */
    354 
    355314/* For backward compatibility */
    356315#include <rpc/clnt_soc.h>
  • cpukit/librpc/include/rpc/svc.h

    r984d9224 rc11cb9a5  
    200200
    201201__BEGIN_DECLS
    202 extern bool_t   svc_sendreply(SVCXPRT *, xdrproc_t, char *);
     202extern bool_t   svc_sendreply(SVCXPRT *, xdrproc_t, void *);
    203203extern void     svcerr_decode(SVCXPRT *);
    204204extern void     svcerr_weakauth(SVCXPRT *);
    205205extern void     svcerr_noproc(SVCXPRT *);
    206 extern void     svcerr_progvers(SVCXPRT *, u_long, u_long);
     206extern void     svcerr_progvers(SVCXPRT *, rpcvers_t, rpcvers_t);
    207207extern void     svcerr_auth(SVCXPRT *, enum auth_stat);
    208208extern void     svcerr_noprog(SVCXPRT *);
  • cpukit/librpc/src/rpc/svc.c

    r984d9224 rc11cb9a5  
    245245        register SVCXPRT *xprt,
    246246        xdrproc_t xdr_results,
    247         caddr_t xdr_location )
     247        void *xdr_location )
    248248{
    249249        struct rpc_msg rply;
     
    356356svcerr_progvers(
    357357        register SVCXPRT *xprt,
    358         u_long low_vers,
    359         u_long high_vers )
     358        rpcvers_t low_vers,
     359        rpcvers_t high_vers )
    360360{
    361361        struct rpc_msg rply;
Note: See TracChangeset for help on using the changeset viewer.