Changeset fd6a994 in rtems


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

More updates from FreeBSD.

Location:
cpukit/librpc
Files:
3 edited

Legend:

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

    rb3da5b1 rfd6a994  
    1 /*
     1/*      $NetBSD: clnt.h,v 1.14 2000/06/02 22:57:55 fvdl Exp $   */
     2
     3/*
     4 * The contents of this file are subject to the Sun Standards
     5 * License Version 1.0 the (the "License";) You may not use
     6 * this file except in compliance with the License.  You may
     7 * obtain a copy of the License at lib/libc/rpc/LICENSE
     8 *
     9 * Software distributed under the License is distributed on
     10 * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
     11 * express or implied.  See the License for the specific
     12 * language governing rights and limitations under the License.
     13 *
     14 * The Original Code is Copyright 1998 by Sun Microsystems, Inc
     15 *
     16 * The Initial Developer of the Original Code is:  Sun
     17 * Microsystems, Inc.
     18 *
     19 * All Rights Reserved.
     20 *
    221 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
    322 * unrestricted use provided that this legend is included on all tape
     
    96115                enum auth_stat RE_why;  /* why the auth error occurred */
    97116                struct {
    98                         u_int32_t low;  /* lowest verion supported */
    99                         u_int32_t high; /* highest verion supported */
     117                        rpcvers_t low;  /* lowest version supported */
     118                        rpcvers_t high; /* highest version supported */
    100119                } RE_vers;
    101120                struct {                /* maybe meaningful if RPC_FAILED */
     
    120139        struct clnt_ops {
    121140                /* call remote procedure */
    122                 enum clnt_stat  (*cl_call) __P((struct __rpc_client *,
    123                                         u_long, xdrproc_t, caddr_t, xdrproc_t,
    124                                         caddr_t, struct timeval));
     141                enum clnt_stat  (*cl_call)(struct __rpc_client *,
     142                                    rpcproc_t, xdrproc_t, void *, xdrproc_t,
     143                                        void *, struct timeval);
    125144                /* abort a call */
    126                 void            (*cl_abort) __P((struct __rpc_client *));
     145                void            (*cl_abort)(struct __rpc_client *);
    127146                /* get specific error code */
    128                 void            (*cl_geterr) __P((struct __rpc_client *,
    129                                         struct rpc_err *));
     147                void            (*cl_geterr)(struct __rpc_client *,
     148                                        struct rpc_err *);
    130149                /* frees results */
    131                 bool_t          (*cl_freeres) __P((struct __rpc_client *,
    132                                         xdrproc_t, caddr_t));
     150                bool_t          (*cl_freeres)(struct __rpc_client *,
     151                                        xdrproc_t, caddr_t);
    133152                /* destroy this structure */
    134                 void            (*cl_destroy) __P((struct __rpc_client *));
     153                void            (*cl_destroy)(struct __rpc_client *);
    135154                /* the ioctl() of rpc */
    136                 bool_t          (*cl_control) __P((struct __rpc_client *, u_int,
    137                                         void *));
     155                bool_t          (*cl_control)(struct __rpc_client *, u_int,
     156                                        void *);
    138157        } *cl_ops;
    139158        caddr_t                 cl_private;     /* private stuff */
     
    229248
    230249/*
    231  * udp only control operations
     250 * Connectionless only control operations
    232251 */
    233252#define CLSET_RETRY_TIMEOUT 4   /* set retry timeout (timeval) */
     
    271290 * creation failure occurs.
    272291 */
    273 
    274 /*
    275  * Memory based rpc (for speed check and testing)
    276  * CLIENT *
    277  * clntraw_create(prog, vers)
    278  *      u_long prog;
    279  *      u_long vers;
    280  */
    281 __BEGIN_DECLS
    282 extern CLIENT *clntraw_create   __P((u_long, u_long));
    283 __END_DECLS
    284 
    285292
    286293/*
     
    295302 */
    296303__BEGIN_DECLS
    297 extern CLIENT *clnt_create      __P((char *, u_long, u_long, char *));
    298 __END_DECLS
    299 
    300 
    301 /*
    302  * TCP based rpc
    303  * CLIENT *
    304  * clnttcp_create(raddr, prog, vers, sockp, sendsz, recvsz)
    305  *      struct sockaddr_in *raddr;
    306  *      u_long prog;
    307  *      u_long version;
    308  *      register int *sockp;
    309  *      u_int sendsz;
    310  *      u_int recvsz;
     304extern CLIENT *clnt_create(char *, u_long, u_long, char *);
     305__END_DECLS
     306
     307
     308/*
     309 * Added for compatibility to old rpc 4.0. Obsoleted by clnt_vc_create().
     310 */
     311extern CLIENT *clntunix_create(struct sockaddr_un *,
     312                               u_long, u_long, int *, u_int, u_int);
     313__END_DECLS
     314
     315
     316/*
     317 * Print why creation failed
    311318 */
    312319__BEGIN_DECLS
    313 extern CLIENT *clnttcp_create   __P((struct sockaddr_in *,
    314                                      u_long,
    315                                      u_long,
    316                                      int *,
    317                                      u_int,
    318                                      u_int));
    319 __END_DECLS
    320 
    321 
    322 /*
    323  * UDP based rpc.
    324  * CLIENT *
    325  * clntudp_create(raddr, program, version, wait, sockp)
    326  *      struct sockaddr_in *raddr;
    327  *      u_long program;
    328  *      u_long version;
    329  *      struct timeval wait;
    330  *      int *sockp;
    331  *
    332  * Same as above, but you specify max packet sizes.
    333  * CLIENT *
    334  * clntudp_bufcreate(raddr, program, version, wait, sockp, sendsz, recvsz)
    335  *      struct sockaddr_in *raddr;
    336  *      u_long program;
    337  *      u_long version;
    338  *      struct timeval wait;
    339  *      int *sockp;
    340  *      u_int sendsz;
    341  *      u_int recvsz;
    342  */
    343 __BEGIN_DECLS
    344 extern CLIENT *clntudp_create   __P((struct sockaddr_in *,
    345                                      u_long,
    346                                      u_long,
    347                                      struct timeval,
    348                                      int *));
    349 extern CLIENT *clntudp_bufcreate __P((struct sockaddr_in *,
    350                                      u_long,
    351                                      u_long,
    352                                      struct timeval,
    353                                      int *,
    354                                      u_int,
    355                                      u_int));
    356 __END_DECLS
    357 
    358 
    359 /*
    360  * AF_UNIX based rpc
    361  * CLIENT *
    362  * clntunix_create(raddr, prog, vers, sockp, sendsz, recvsz)
    363  *      struct sockaddr_un *raddr;
    364  *      u_long prog;
    365  *      u_long version;
    366  *      register int *sockp;
    367  *      u_int sendsz;
    368  *      u_int recvsz;
    369  */
    370 __BEGIN_DECLS
    371 extern CLIENT *clntunix_create  __P((struct sockaddr_un *,
    372                                      u_long,
    373                                      u_long,
    374                                      int *,
    375                                      u_int,
    376                                      u_int));
    377 __END_DECLS
    378 
    379 
    380 /*
    381  * Print why creation failed
    382  */
    383 __BEGIN_DECLS
    384 extern void clnt_pcreateerror(char *);                  /* stderr */
    385 extern char *clnt_spcreateerror(char *);                /* string */
     320extern void clnt_pcreateerror(const char *);                    /* stderr */
     321extern char *clnt_spcreateerror(const char *);          /* string */
    386322__END_DECLS
    387323
     
    398334 */
    399335__BEGIN_DECLS
    400 extern void clnt_perror(CLIENT *, char *);              /* stderr */
    401 extern char *clnt_sperror(CLIENT *, char *);            /* string */
     336extern void clnt_perror(CLIENT *, const char *);                /* stderr */
     337extern char *clnt_sperror(CLIENT *, const char *);              /* string */
    402338__END_DECLS
    403339
  • cpukit/librpc/include/rpc/clnt_soc.h

    rb3da5b1 rfd6a994  
    104104__END_DECLS
    105105
    106 
    107 /*
    108  * AF_UNIX based rpc
    109  * CLIENT *
    110  * clntunix_create(raddr, prog, vers, sockp, sendsz, recvsz)
    111  *      struct sockaddr_un *raddr;
    112  *      u_long prog;
    113  *      u_long version;
    114  *      register int *sockp;
    115  *      u_int sendsz;
    116  *      u_int recvsz;
    117  */
    118 __BEGIN_DECLS
    119 extern CLIENT *clntunix_create(struct sockaddr_un *, u_long, u_long,
    120                                      int *, u_int, u_int);
    121 __END_DECLS
    122 
    123106#endif /* _RPC_CLNT_SOC_H */
  • cpukit/librpc/src/rpc/clnt_perror.c

    rb3da5b1 rfd6a994  
    6868clnt_sperror(rpch, s)
    6969        CLIENT *rpch;
    70         char *s;
     70        const char *s;
    7171{
    7272        struct rpc_err e;
     
    143143clnt_perror(rpch, s)
    144144        CLIENT *rpch;
    145         char *s;
     145        const char *s;
    146146{
    147147        (void) fprintf(stderr,"%s\n",clnt_sperror(rpch,s));
     
    196196char *
    197197clnt_spcreateerror(s)
    198         char *s;
     198        const char *s;
    199199{
    200200        char *str = _buf();
     
    226226void
    227227clnt_pcreateerror(s)
    228         char *s;
     228        const char *s;
    229229{
    230230        (void) fprintf(stderr,"%s\n",clnt_spcreateerror(s));
Note: See TracChangeset for help on using the changeset viewer.