vxTypes.h
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:3k
源码类别:
VxWorks
开发平台:
C/C++
- /* vxTypes.h - POSIX compliant (_t) types header file */
- /* Copyright 1991-1992 Wind River Systems, Inc. */
- /*
- modification history
- --------------------
- 01g,05dec01,mem Added support for 64-bit types.
- 01f,13nov92,dnw added include of vxANSI.h
- pruned some non-POSIX stuff.
- 01e,22sep92,rrr added support for c++
- 01d,08sep92,smb made some MIPS specific additions.
- 01c,07sep92,smb added __STDC__ conditional and some documentation.
- 01b,29jul92,smb added fpos_t type for stdio.h
- 01a,03jul92,smb written.
- */
- /*
- DESCRIPTION
- This file actually typedef's the system types defined in vxArch.h or
- vxTypesBase.h.
- Architecture specific values for the standard types are defined in vxArch.h
- as follows:
- #ifndef _TYPE_sometype_t
- #define _TYPE_sometype_t typedef unsigned int sometype_t
- #endif
- Defaults for each type are provided in vxTypesBase.h as follows:
- #ifndef _TYPE_sometype_t
- #define _TYPE_sometype_t typedef int sometype_t
- #endif
- When vxTypesBase.h is included following the include of vxArch.h,
- _TYPE_sometype_t will already be defined and so will not be redefined
- in vxTypesBase.h.
- Alternatively, if it not defined in vxArch.h, it will be defined in
- vxTypesBase.h. So after vxArch.h and vxTypesBase.h are included all ANSI
- and POSIX types will be defined but they will not have been typedef'ed yet.
- The typedef happens in this file, vxTypes.h
- #ifdef _TYPE_sometype_t
- _TYPE_sometype_t
- #undef _TYPE_sometype_t
- #endif
- The '#undef _TYPE_sometype_t' is necessary because a type may be defined in
- different header files. For example, ANSI says that size_t must be defined
- in time.h and stddef.h
- */
- #ifndef __INCvxTypesh
- #define __INCvxTypesh
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "types/vxANSI.h"
- #ifdef _TYPE_ssize_t
- _TYPE_ssize_t;
- #undef _TYPE_ssize_t
- #endif
- #ifdef _TYPE_time_t
- _TYPE_time_t;
- #undef _TYPE_time_t
- #endif
- #ifdef _TYPE_fpos_t
- _TYPE_fpos_t;
- #undef _TYPE_fpos_t
- #endif
- #ifdef _TYPE_int8_t
- _TYPE_int8_t;
- #undef _TYPE_int8_t
- #endif
- #ifdef _TYPE_uint8_t
- _TYPE_uint8_t;
- #undef _TYPE_uint8_t
- #endif
- #ifdef _TYPE_int16_t
- _TYPE_int16_t;
- #undef _TYPE_int16_t
- #endif
- #ifdef _TYPE_uint16_t
- _TYPE_uint16_t;
- #undef _TYPE_uint16_t
- #endif
- #ifdef _TYPE_int32_t
- _TYPE_int32_t;
- #undef _TYPE_int32_t
- #endif
- #ifdef _TYPE_uint32_t
- _TYPE_uint32_t;
- #undef _TYPE_uint32_t
- #endif
- #ifdef _TYPE_int64_t
- _TYPE_int64_t;
- #undef _TYPE_int64_t
- #endif
- #ifdef _TYPE_uint64_t
- _TYPE_uint64_t;
- #undef _TYPE_uint64_t
- #endif
- /* old Berkeley definitions */
- typedef unsigned char uchar_t;
- typedef unsigned short ushort_t;
- typedef unsigned int uint_t;
- typedef unsigned long ulong_t;
- typedef struct _quad { long val[2]; } quad;
- typedef long daddr_t;
- typedef char * caddr_t;
- typedef char * addr_t;
- typedef long swblk_t;
- /* POSIX required */
- typedef short dev_t;
- typedef unsigned short gid_t;
- typedef unsigned long ino_t;
- typedef int mode_t;
- typedef unsigned long nlink_t;
- typedef long off_t;
- typedef int pid_t;
- typedef unsigned short uid_t;
- #ifdef __cplusplus
- }
- #endif
- #endif /* __INCvxTypesh */