1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* 23 * Copyright 1989 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27#pragma ident "%Z%%M% %I% %E% SMI" 28 29/* 30 * Rpc additions to <sys/types.h> 31 */ 32 33#ifndef __rpc_types_h 34#define __rpc_types_h 35 36#define bool_t int 37#define enum_t int 38#define __dontcare__ -1 39 40#ifndef FALSE 41# define FALSE (0) 42#endif 43 44#ifndef TRUE 45# define TRUE (1) 46#endif 47 48#ifndef NULL 49# define NULL 0 50#endif 51 52#ifndef KERNEL 53#include <malloc.h> 54#define mem_alloc(bsize) malloc(bsize) 55#define mem_free(ptr, bsize) free(ptr) 56#else 57extern char *kmem_alloc(); 58#define mem_alloc(bsize) kmem_alloc((u_int)bsize) 59#define mem_free(ptr, bsize) kmem_free((caddr_t)(ptr), (u_int)(bsize)) 60#endif 61 62#include <sys/types.h> 63#include <sys/time.h> 64 65#endif /* !__rpc_types_h */ 66