types.h revision 1839
11839Swollman/* @(#)types.h 2.3 88/08/15 4.0 RPCSRC */ 21839Swollman/* 31839Swollman * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 41839Swollman * unrestricted use provided that this legend is included on all tape 51839Swollman * media and as a part of the software program in whole or part. Users 61839Swollman * may copy or modify Sun RPC without charge, but are not authorized 71839Swollman * to license or distribute it to anyone else except as part of a product or 81839Swollman * program developed by the user. 91839Swollman * 101839Swollman * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 111839Swollman * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR 121839Swollman * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 131839Swollman * 141839Swollman * Sun RPC is provided with no support and without any obligation on the 151839Swollman * part of Sun Microsystems, Inc. to assist in its use, correction, 161839Swollman * modification or enhancement. 171839Swollman * 181839Swollman * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 191839Swollman * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 201839Swollman * OR ANY PART THEREOF. 211839Swollman * 221839Swollman * In no event will Sun Microsystems, Inc. be liable for any lost revenue 231839Swollman * or profits or other special, indirect and consequential damages, even if 241839Swollman * Sun has been advised of the possibility of such damages. 251839Swollman * 261839Swollman * Sun Microsystems, Inc. 271839Swollman * 2550 Garcia Avenue 281839Swollman * Mountain View, California 94043 291839Swollman */ 301839Swollman/* @(#)types.h 1.18 87/07/24 SMI */ 311839Swollman 321839Swollman/* 331839Swollman * Rpc additions to <sys/types.h> 341839Swollman */ 351839Swollman#ifndef __TYPES_RPC_HEADER__ 361839Swollman#define __TYPES_RPC_HEADER__ 371839Swollman 381839Swollman#define bool_t int 391839Swollman#define enum_t int 401839Swollman#define FALSE (0) 411839Swollman#define TRUE (1) 421839Swollman#define __dontcare__ -1 431839Swollman#ifndef NULL 441839Swollman# define NULL 0 451839Swollman#endif 461839Swollman 471839Swollmanvoid *malloc(); 481839Swollman#define mem_alloc(bsize) malloc(bsize) 491839Swollman#define mem_free(ptr, bsize) free(ptr) 501839Swollman 511839Swollman#ifndef makedev /* ie, we haven't already included it */ 521839Swollman#include <sys/types.h> 531839Swollman#endif 541839Swollman#include <sys/time.h> 551839Swollman 561839Swollman#ifndef INADDR_LOOPBACK 571839Swollman#define INADDR_LOOPBACK (u_long)0x7F000001 581839Swollman#endif 591839Swollman#ifndef MAXHOSTNAMELEN 601839Swollman#define MAXHOSTNAMELEN 64 611839Swollman#endif 621839Swollman 631839Swollman#endif /* ndef __TYPES_RPC_HEADER__ */ 64