Changeset b3da5b1 in rtems for cpukit/librpc


Ignore:
Timestamp:
May 25, 2005, 12:25:50 PM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
fd6a994
Parents:
d7610229
Message:

2005-05-25 Ralf Corsepius <ralf.corsepius@…>

  • librpc/include/rpc/svc.h: Partial update from FreeBSD.
File:
1 edited

Legend:

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

    rd7610229 rb3da5b1  
    110110        struct opaque_auth rq_cred;     /* raw creds from the wire */
    111111        caddr_t         rq_clntcred;    /* read only cooked cred */
    112         SVCXPRT *rq_xprt;               /* associated transport */
     112        SVCXPRT         *rq_xprt;       /* associated transport */
    113113};
    114114
    115 
    116 /*
    117  *  Approved way of getting address of caller
    118  */
    119 #define svc_getcaller(x) (&(x)->xp_raddr)
    120115
    121116/*
     
    157152        (*(xprt)->xp_ops->xp_destroy)(xprt)
    158153
    159 
    160 /*
    161  * Service registration
    162  *
    163  * svc_register(xprt, prog, vers, dispatch, protocol)
    164  *      SVCXPRT *xprt;
    165  *      u_long prog;
    166  *      u_long vers;
    167  *      void (*dispatch)();
    168  *      int protocol;        (like TCP or UDP, zero means do not register)
    169  */
    170 __BEGIN_DECLS
    171 extern bool_t   svc_register (SVCXPRT *, u_long, u_long,
    172                         void (*) (struct svc_req *, SVCXPRT *), int);
    173 __END_DECLS
    174 
    175 /*
    176  * Service un-registration
    177  *
    178  * svc_unregister(prog, vers)
    179  *      u_long prog;
    180  *      u_long vers;
    181  */
    182 __BEGIN_DECLS
    183 extern void     svc_unregister (u_long, u_long);
    184 __END_DECLS
    185 
    186154/*
    187155 * Transport registration.
     
    203171extern void     xprt_unregister(SVCXPRT *);
    204172__END_DECLS
    205 
    206 
    207173
    208174
     
    290256 */
    291257
    292 /*
    293  * Memory based rpc for testing and timing.
    294  */
    295 __BEGIN_DECLS
    296 extern SVCXPRT *svcraw_create (void);
    297 __END_DECLS
    298 
    299 
    300 /*
    301  * Udp based rpc.
    302  */
    303 __BEGIN_DECLS
    304 extern SVCXPRT *svcudp_create (int);
    305 extern SVCXPRT *svcudp_bufcreate (int, u_int, u_int);
    306 __END_DECLS
    307 
    308 
    309 /*
    310  * Tcp based rpc.
    311  */
    312 __BEGIN_DECLS
    313 extern SVCXPRT *svctcp_create (int, u_int, u_int);
    314 extern SVCXPRT *svcfd_create (int, u_int, u_int);
    315 __END_DECLS
    316 
    317 /*
    318  * AF_UNIX socket based rpc.
    319  */
    320 __BEGIN_DECLS
    321 extern SVCXPRT *svcunix_create (int, u_int, u_int, char *);
    322 extern SVCXPRT *svcunixfd_create (int, u_int, u_int);
    323 __END_DECLS
     258__BEGIN_DECLS
     259/*
     260 * Transport independent svc_create routine.
     261 */
     262
     263/*
     264 * Connectionless and connectionful create routines
     265 */
     266
     267extern SVCXPRT *svc_vc_create(const int, const u_int, const u_int);
     268/*
     269 *      const int fd;                           -- open connection end point
     270 *      const u_int sendsize;                   -- max send size
     271 *      const u_int recvsize;                   -- max recv size
     272 */
     273
     274/*
     275 * Added for compatibility to old rpc 4.0. Obsoleted by svc_vc_create().
     276 */
     277extern SVCXPRT *svcunix_create(int, u_int, u_int, char *);
     278
     279/*
     280 * Added for compatibility to old rpc 4.0. Obsoleted by svc_fd_create().
     281 */
     282extern SVCXPRT *svcunixfd_create(int, u_int, u_int);
     283__END_DECLS
     284
     285
     286/* for backward compatibility */
     287#include <rpc/svc_soc.h>
    324288
    325289#endif /* !_RPC_SVC_H */
Note: See TracChangeset for help on using the changeset viewer.