home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / bsd / rpc / types.h < prev    next >
Text File  |  1991-06-21  |  790b  |  50 lines

  1. /*    @(#)types.h    1.5 88/05/02 4.0NFSSRC SMI    */
  2.  
  3. /* 
  4.  * Copyright (c) 1988 by Sun Microsystems, Inc.
  5.  *      @(#)types.h 1.20 88/02/08 SMI      
  6.  */
  7.  
  8.  
  9. /*
  10.  * Rpc additions to <sys/types.h>
  11.  */
  12. #ifndef __TYPES_RPC_HEADER__
  13. #define __TYPES_RPC_HEADER__
  14.  
  15. #define    bool_t    int
  16. #define    enum_t    int
  17. #define __dontcare__    -1
  18.  
  19. #ifndef FALSE
  20. #    define    FALSE    (0)
  21. #endif
  22.  
  23. #ifndef TRUE
  24. #    define    TRUE    (1)
  25. #endif
  26.  
  27. #ifndef NULL
  28. #ifdef __STRICT_BSD__
  29. #    define NULL 0
  30. #else
  31. #    define NULL ((void *)0)
  32. #endif __STRICT_BSD__
  33. #endif  NULL
  34.  
  35. #ifdef __STRICT_BSD__
  36. extern char *malloc();
  37. #else
  38. #include <stdlib.h>
  39. #endif __STRICT_BSD__
  40. #define mem_alloc(bsize)    malloc(bsize)
  41. #define mem_free(ptr, bsize)    free(ptr)
  42.  
  43. #include <sys/types.h>
  44.  
  45. #ifndef _TIME_
  46. #include <sys/time.h>
  47. #endif
  48.  
  49. #endif /* ndeW)$TYPES_RPC_HEADER__ */
  50.