From 0c20a46dc0a574d752f255dded721ed2f3173206 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 3 Feb 2005 15:58:18 +0000 Subject: 2005-02-03 Ralf Corsepius * 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. --- cpukit/librpc/include/rpc/types.h | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'cpukit/librpc/include/rpc') 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 -#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 -#endif #include #endif /* !_RPC_TYPES_H */ -- cgit v1.2.3