rpctypes.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:3k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* rpctypes.h - Rpc additions to <sys/types.h> */
  2. /* Copyright 1984-2000 Wind River Systems, Inc. */
  3. /*
  4.  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  5.  * unrestricted use provided that this legend is included on all tape
  6.  * media and as a part of the software program in whole or part.  Users
  7.  * may copy or modify Sun RPC without charge, but are not authorized
  8.  * to license or distribute it to anyone else except as part of a product or
  9.  * program developed by the user.
  10.  *
  11.  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  12.  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  13.  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  14.  *
  15.  * Sun RPC is provided with no support and without any obligation on the
  16.  * part of Sun Microsystems, Inc. to assist in its use, correction,
  17.  * modification or enhancement.
  18.  *
  19.  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  20.  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  21.  * OR ANY PART THEREOF.
  22.  *
  23.  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  24.  * or profits or other special, indirect and consequential damages, even if
  25.  * Sun has been advised of the possibility of such damages.
  26.  *
  27.  * Sun Microsystems, Inc.
  28.  * 2550 Garcia Avenue
  29.  * Mountain View, California  94043
  30.  */
  31. /*      @(#)types.h 1.1 86/02/03 SMI      */
  32. /*
  33. modification history
  34. --------------------
  35. 02k,14jan00,ham  redefined mem_* to KHEAP_* for PD support.
  36. 02j,24jul96,vin  removed INADDR_LOOPBACK since it is defined netinet/in.h
  37. 02i,22sep92,rrr  added support for c++
  38. 02h,19aug92,smb  changed systime.h to sys/times.h
  39. 02g,04jul92,smb  added include vxWorks.h
  40. 02f,26may92,rrr  the tree shuffle
  41. 02e,04oct91,rrr  passed through the ansification filter
  42.   -changed includes to have absolute path from h/
  43.   -fixed #else and #endif
  44.   -changed copyright notice
  45. 02d,25oct90,dnw  added definitions of TRUE and FALSE if not already defined.
  46.  changed utime.h to systime.h.
  47. 02c,05oct90,shl  added copyright notice.
  48. 02b,29oct89,hjb  upgraded to release 4.0
  49. */
  50. #ifndef __INCrpctypesh
  51. #define __INCrpctypesh
  52. #ifdef __cplusplus
  53. extern "C" {
  54. #endif
  55. #include "vxWorks.h"
  56. #include "memPartLib.h"
  57. /*
  58.  * Rpc additions to <sys/types.h>
  59.  */
  60. #define bool_t int
  61. #define enum_t int
  62. #ifndef FALSE
  63. #define FALSE (0)
  64. #endif
  65. #ifndef TRUE
  66. #define TRUE (1)
  67. #endif
  68. #define __dontcare__ -1
  69. #define mem_alloc(bsize) KHEAP_ALLOC(bsize)
  70. #define mem_free(ptr, bsize) KHEAP_FREE(ptr)
  71. #ifndef _TYPES_ /* if types.h is not include yet, include it here */
  72. #include "sys/types.h"
  73. #endif
  74. #include "sys/times.h" /* 4.0 */
  75. #ifndef MAXHOSTNAMELEN /* 4.0 */
  76. #define MAXHOSTNAMELEN 64
  77. #endif
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81. #endif /* __INCrpctypesh */