diff options
author | Peter Wemm <peter@FreeBSD.org> | 1996-12-30 13:59:41 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1996-12-30 13:59:41 +0000 |
commit | 70de0abf48ea2d832e3445406155b521792b6d13 (patch) | |
tree | e54774aa0d272e74f219465c79c216b63e03c952 /include/rpc/rpc_msg.h | |
parent | 8c675e8051700aa734f0c9693c17c0c60bb38eb3 (diff) | |
download | src-70de0abf48ea2d832e3445406155b521792b6d13.tar.gz src-70de0abf48ea2d832e3445406155b521792b6d13.zip |
First commit of a series of cleanups for the libc rpc code which has been
suffering a bad case neglect for the last few years.
- Add full prototypes, including to function pointers.
- Make the wire protocols 64-bit type safe, eg: 32 bit quantities are
int32_t, not long. The orginal rpc code was implemented when an int
could be 16 bits.
Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
Notes
Notes:
svn path=/head/; revision=21059
Diffstat (limited to 'include/rpc/rpc_msg.h')
-rw-r--r-- | include/rpc/rpc_msg.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/rpc/rpc_msg.h b/include/rpc/rpc_msg.h index 43103bd2da31..8fd342550cb4 100644 --- a/include/rpc/rpc_msg.h +++ b/include/rpc/rpc_msg.h @@ -28,7 +28,7 @@ * * from: @(#)rpc_msg.h 1.7 86/07/16 SMI * from: @(#)rpc_msg.h 2.1 88/07/29 4.0 RPCSRC - * $Id: rpc_msg.h,v 1.4 1995/05/30 04:55:25 rgrimes Exp $ + * $Id: rpc_msg.h,v 1.5 1996/01/30 23:32:24 mpp Exp $ */ /* @@ -88,8 +88,8 @@ struct accepted_reply { enum accept_stat ar_stat; union { struct { - u_long low; - u_long high; + u_int32_t low; + u_int32_t high; } AR_versions; struct { caddr_t where; @@ -108,8 +108,8 @@ struct rejected_reply { enum reject_stat rj_stat; union { struct { - u_long low; - u_long high; + u_int32_t low; + u_int32_t high; } RJ_versions; enum auth_stat RJ_why; /* why authentication did not work */ } ru; @@ -134,10 +134,10 @@ struct reply_body { * Body of an rpc request call. */ struct call_body { - u_long cb_rpcvers; /* must be equal to two */ - u_long cb_prog; - u_long cb_vers; - u_long cb_proc; + u_int32_t cb_rpcvers; /* must be equal to two */ + u_int32_t cb_prog; + u_int32_t cb_vers; + u_int32_t cb_proc; struct opaque_auth cb_cred; struct opaque_auth cb_verf; /* protocol specific - provided by client */ }; @@ -146,7 +146,7 @@ struct call_body { * The rpc message */ struct rpc_msg { - u_long rm_xid; + u_int32_t rm_xid; enum msg_type rm_direction; union { struct call_body RM_cmb; |