diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-02-03 15:58:18 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-02-03 15:58:18 +0000 |
commit | 0c20a46dc0a574d752f255dded721ed2f3173206 (patch) | |
tree | fb6211dd43c052ec576c4db9b0932ebde4a17d53 /cpukit/librpc/include/rpc | |
parent | 2005-02-03 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-0c20a46dc0a574d752f255dded721ed2f3173206.tar.bz2 |
2005-02-03 Ralf Corsepius <ralf.corsepius@rtems.org>
* librpc/include/rpc/types.h: Partial update from FreeBSD.
Use stdint.h types instead of sys/types.h.
* librpc/src/rpc/bindresvport.c: Partial update from FreeBSD.
Diffstat (limited to 'cpukit/librpc/include/rpc')
-rw-r--r-- | cpukit/librpc/include/rpc/types.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/cpukit/librpc/include/rpc/types.h b/cpukit/librpc/include/rpc/types.h index b962fd3e43..997a31defd 100644 --- a/cpukit/librpc/include/rpc/types.h +++ b/cpukit/librpc/include/rpc/types.h @@ -1,3 +1,5 @@ +/* $NetBSD: types.h,v 1.13 2000/06/13 01:02:44 thorpej Exp $ */ + /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for * unrestricted use provided that this legend is included on all tape @@ -28,7 +30,7 @@ * * from: @(#)types.h 1.18 87/07/24 SMI * from: @(#)types.h 2.3 88/08/15 4.0 RPCSRC - * $FreeBSD: src/include/rpc/types.h,v 1.9 1999/08/27 23:45:06 peter Exp $ + * $FreeBSD: src/include/rpc/types.h,v 1.11 2003/12/07 21:10:06 marcel Exp $ */ /* @@ -39,8 +41,16 @@ #include <rtems/stdint.h> -#define bool_t int32_t -#define enum_t int32_t +typedef int32_t bool_t; +typedef int32_t enum_t; + +typedef uint32_t rpcprog_t; +typedef uint32_t rpcvers_t; +typedef uint32_t rpcproc_t; +typedef uint32_t rpcprot_t; +typedef uint32_t rpcport_t; +typedef int32_t rpc_inline_t; + #define __dontcare__ -1 #ifndef FALSE @@ -49,16 +59,10 @@ #ifndef TRUE # define TRUE (1) #endif -#ifndef NULL -# define NULL 0 -#endif #define mem_alloc(bsize) malloc(bsize) #define mem_free(ptr, bsize) free(ptr) -#ifndef makedev /* ie, we haven't already included it */ -#include <sys/types.h> -#endif #include <sys/time.h> #endif /* !_RPC_TYPES_H */ |