| auth.h | auth.h | |||
|---|---|---|---|---|
| skipping to change at line 277 | skipping to change at line 277 | |||
| /* | /* | |||
| * System style authentication | * System style authentication | |||
| * AUTH *authunix_create(machname, uid, gid, len, aup_gids) | * AUTH *authunix_create(machname, uid, gid, len, aup_gids) | |||
| * char *machname; | * char *machname; | |||
| * int uid; | * int uid; | |||
| * int gid; | * int gid; | |||
| * int len; | * int len; | |||
| * int *aup_gids; | * int *aup_gids; | |||
| */ | */ | |||
| __BEGIN_DECLS | __BEGIN_DECLS | |||
| extern AUTH *authunix_create(char *, int, int, int, | extern AUTH *authunix_create(char *, uid_t, uid_t, int, uid_t *); | |||
| int *); | ||||
| extern AUTH *authunix_create_default(void); /* takes no parameters */ | extern AUTH *authunix_create_default(void); /* takes no parameters */ | |||
| extern AUTH *authnone_create(void); /* takes no parameters */ | extern AUTH *authnone_create(void); /* takes no parameters */ | |||
| __END_DECLS | __END_DECLS | |||
| /* | /* | |||
| * DES style authentication | * DES style authentication | |||
| * AUTH *authsecdes_create(servername, window, timehost, ckey) | * AUTH *authsecdes_create(servername, window, timehost, ckey) | |||
| * char *servername; - network name of server | * char *servername; - network name of server | |||
| * u_int window; - time to live | * u_int window; - time to live | |||
| * const char *timehost; - optional hostname to sync with | * const char *timehost; - optional hostname to sync with | |||
| * des_block *ckey; - optional conversation key to use | * des_block *ckey; - optional conversation key to use | |||
| End of changes. 1 change blocks. | ||||
| 2 lines changed or deleted | 1 lines changed or added | |||
| auth_unix.h | auth_unix.h | |||
|---|---|---|---|---|
| skipping to change at line 63 | skipping to change at line 63 | |||
| /* gids compose part of a credential; there may not be more than 16 of them */ | /* gids compose part of a credential; there may not be more than 16 of them */ | |||
| #define NGRPS 16 | #define NGRPS 16 | |||
| /* | /* | |||
| * Unix style credentials. | * Unix style credentials. | |||
| */ | */ | |||
| struct authunix_parms { | struct authunix_parms { | |||
| u_long aup_time; | u_long aup_time; | |||
| char *aup_machname; | char *aup_machname; | |||
| int aup_uid; | uid_t aup_uid; | |||
| int aup_gid; | gid_t aup_gid; | |||
| u_int aup_len; | u_int aup_len; | |||
| int *aup_gids; | gid_t *aup_gids; | |||
| }; | }; | |||
| #define authsys_parms authunix_parms | #define authsys_parms authunix_parms | |||
| __BEGIN_DECLS | __BEGIN_DECLS | |||
| extern bool_t xdr_authunix_parms(XDR *, struct authunix_parms *); | extern bool_t xdr_authunix_parms(XDR *, struct authunix_parms *); | |||
| __END_DECLS | __END_DECLS | |||
| /* | /* | |||
| * If a response verifier has flavor AUTH_SHORT, | * If a response verifier has flavor AUTH_SHORT, | |||
| End of changes. 2 change blocks. | ||||
| 3 lines changed or deleted | 3 lines changed or added | |||
| reentrant.h | reentrant.h | |||
|---|---|---|---|---|
| skipping to change at line 119 | skipping to change at line 119 | |||
| #define cond_signal(m) pthread_cond_signal(m) | #define cond_signal(m) pthread_cond_signal(m) | |||
| #define cond_broadcast(m) pthread_cond_broadcast(m) | #define cond_broadcast(m) pthread_cond_broadcast(m) | |||
| #define cond_wait(c, m) pthread_cond_wait(c, m) | #define cond_wait(c, m) pthread_cond_wait(c, m) | |||
| #define rwlock_init(l, a) pthread_rwlock_init(l, a) | #define rwlock_init(l, a) pthread_rwlock_init(l, a) | |||
| #define rwlock_rdlock(l) pthread_rwlock_rdlock(l) | #define rwlock_rdlock(l) pthread_rwlock_rdlock(l) | |||
| #define rwlock_wrlock(l) pthread_rwlock_wrlock(l) | #define rwlock_wrlock(l) pthread_rwlock_wrlock(l) | |||
| #define rwlock_unlock(l) pthread_rwlock_unlock(l) | #define rwlock_unlock(l) pthread_rwlock_unlock(l) | |||
| #define thr_keycreate(k, d) pthread_key_create(k, d) | #define thr_keycreate(k, d) pthread_key_create(k, d) | |||
| #define thr_keydelete(k) pthread_key_delete(k) | ||||
| #define thr_setspecific(k, p) pthread_setspecific(k, p) | #define thr_setspecific(k, p) pthread_setspecific(k, p) | |||
| #define thr_getspecific(k) pthread_getspecific(k) | #define thr_getspecific(k) pthread_getspecific(k) | |||
| #define thr_sigsetmask(f, n, o) pthread_sigmask(f, n, o) | #define thr_sigsetmask(f, n, o) pthread_sigmask(f, n, o) | |||
| #define thr_self() pthread_self() | #define thr_self() pthread_self() | |||
| #define thr_exit(x) pthread_exit(x) | #define thr_exit(x) pthread_exit(x) | |||
| #endif /* reentrant.h */ | #endif /* reentrant.h */ | |||
| End of changes. 1 change blocks. | ||||
| 0 lines changed or deleted | 1 lines changed or added | |||
| rpc.h | rpc.h | |||
|---|---|---|---|---|
| skipping to change at line 86 | skipping to change at line 86 | |||
| #include <rpc/rpcb_clnt.h> /* rpcbind interface functions */ | #include <rpc/rpcb_clnt.h> /* rpcbind interface functions */ | |||
| #endif | #endif | |||
| #include <rpc/rpcent.h> | #include <rpc/rpcent.h> | |||
| #ifndef UDPMSGSIZE | #ifndef UDPMSGSIZE | |||
| #define UDPMSGSIZE 8800 | #define UDPMSGSIZE 8800 | |||
| #endif | #endif | |||
| __BEGIN_DECLS | __BEGIN_DECLS | |||
| extern int get_myaddress(struct sockaddr_in *); | extern int get_myaddress(struct sockaddr_in *); | |||
| extern int bindresvport(int, struct sockaddr_in *); | extern int bindresvport(int, struct sockaddr_in *) __THROW; | |||
| extern int registerrpc(int, int, int, char *(*)(char [UDPMSGSIZE]), | extern int registerrpc(int, int, int, char *(*)(char [UDPMSGSIZE]), | |||
| xdrproc_t, xdrproc_t); | xdrproc_t, xdrproc_t); | |||
| extern int callrpc(const char *, int, int, int, xdrproc_t, void *, | extern int callrpc(const char *, int, int, int, xdrproc_t, void *, | |||
| xdrproc_t , void *); | xdrproc_t , void *); | |||
| extern int getrpcport(char *, int, int, int); | extern int getrpcport(char *, int, int, int); | |||
| char *taddr2uaddr(const struct netconfig *, const struct netbuf *); | char *taddr2uaddr(const struct netconfig *, const struct netbuf *); | |||
| struct netbuf *uaddr2taddr(const struct netconfig *, const char *); | struct netbuf *uaddr2taddr(const struct netconfig *, const char *); | |||
| struct sockaddr; | struct sockaddr; | |||
| End of changes. 1 change blocks. | ||||
| 1 lines changed or deleted | 1 lines changed or added | |||
| rpcent.h | rpcent.h | |||
|---|---|---|---|---|
| skipping to change at line 64 | skipping to change at line 64 | |||
| __BEGIN_DECLS | __BEGIN_DECLS | |||
| //extern struct rpcent *getrpcbyname_r(const char *, struct rpcent *, | //extern struct rpcent *getrpcbyname_r(const char *, struct rpcent *, | |||
| // char *, int); | // char *, int); | |||
| //extern struct rpcent *getrpcbynumber_r(int, struct rpcent *, char *, int) ; | //extern struct rpcent *getrpcbynumber_r(int, struct rpcent *, char *, int) ; | |||
| //extern struct rpcent *getrpcent_r(struct rpcent *, char *, int); | //extern struct rpcent *getrpcent_r(struct rpcent *, char *, int); | |||
| /* Old interfaces that return a pointer to a static area; MT-unsafe */ | /* Old interfaces that return a pointer to a static area; MT-unsafe */ | |||
| //extern struct rpcent *getrpcbyname(char *); | //extern struct rpcent *getrpcbyname(char *); | |||
| //extern struct rpcent *getrpcbynumber(int); | //extern struct rpcent *getrpcbynumber(int); | |||
| //extern struct rpcent *getrpcent(void); | //extern struct rpcent *getrpcent(void); | |||
| extern void setrpcent(int); | extern void setrpcent(int) __THROW; | |||
| extern void endrpcent(void); | extern void endrpcent(void) __THROW; | |||
| __END_DECLS | __END_DECLS | |||
| #endif /* !_RPC_CENT_H */ | #endif /* !_RPC_CENT_H */ | |||
| End of changes. 1 change blocks. | ||||
| 2 lines changed or deleted | 2 lines changed or added | |||
| svc.h | svc.h | |||
|---|---|---|---|---|
| skipping to change at line 134 | skipping to change at line 134 | |||
| void *xp_p1; /* private: for use by svc ops */ | void *xp_p1; /* private: for use by svc ops */ | |||
| void *xp_p2; /* private: for use by svc ops */ | void *xp_p2; /* private: for use by svc ops */ | |||
| void *xp_p3; /* private: for use by svc lib */ | void *xp_p3; /* private: for use by svc lib */ | |||
| int xp_type; /* transport type */ | int xp_type; /* transport type */ | |||
| } SVCXPRT; | } SVCXPRT; | |||
| /* | /* | |||
| * Service request | * Service request | |||
| */ | */ | |||
| struct svc_req { | struct svc_req { | |||
| /* ORDER: compatibility with legacy RPC */ | ||||
| u_int32_t rq_prog; /* service program number */ | u_int32_t rq_prog; /* service program number */ | |||
| u_int32_t rq_vers; /* service protocol version */ | u_int32_t rq_vers; /* service protocol version */ | |||
| u_int32_t rq_proc; /* the desired procedure */ | u_int32_t rq_proc; /* the desired procedure */ | |||
| struct opaque_auth rq_cred; /* raw creds from the wire */ | struct opaque_auth rq_cred; /* raw creds from the wire */ | |||
| void *rq_clntcred; /* read only cooked cred */ | void *rq_clntcred; /* read only cooked cred */ | |||
| SVCXPRT *rq_xprt; /* associated transport */ | ||||
| /* New with TI-RPC */ | ||||
| caddr_t rq_clntname; /* read only client name */ | caddr_t rq_clntname; /* read only client name */ | |||
| caddr_t rq_svcname; /* read only cooked service cred */ | caddr_t rq_svcname; /* read only cooked service cred */ | |||
| SVCXPRT *rq_xprt; /* associated transport */ | ||||
| }; | }; | |||
| /* | /* | |||
| * Approved way of getting address of caller | * Approved way of getting address of caller | |||
| */ | */ | |||
| #define svc_getrpccaller(x) (&(x)->xp_rtaddr) | #define svc_getrpccaller(x) (&(x)->xp_rtaddr) | |||
| /* | /* | |||
| * Operations defined on an SVCXPRT handle | * Operations defined on an SVCXPRT handle | |||
| * | * | |||
| End of changes. 3 change blocks. | ||||
| 1 lines changed or deleted | 4 lines changed or added | |||