1 /* vxWorks.h - VxWorks standard definitions header */
3 /* Copyright 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1992 Free Software Foundation, Inc.
5 This code was donated by Wind River Systems, Inc. */
10 01z,05oct90,shl added copyright notice.
11 made #endif ANSI style.
12 01y,28sep90,del added I960 defines.
13 01x,29may90,del moved types to vxTypes.h
14 01w,09apr90,jcf added timeout definitions.
15 01v,24jan90,gae moved network configuration flags here from makefile's.
16 01u,01sep88,mcl definition of INSTR dependent on processor family; added SPARC.
17 +gae added MC680X0 and defined CPU_FAMILY.
18 01t,08apr89,dnw added ifdef to prevent inclusion of vxWorks.h more than once.
19 01s,22jun88,dnw moved READ, WRITE, and UPDATE back here from ioLib.h.
20 01r,22apr88,gae oops! forgot some #endif's in 01q.
21 01q,12apr88,gae removed QUICK & WAIT; added STD_{IN,OUT,ERR}.
22 fixed #define's of FALSE, TRUE, etc.
23 moved READ, WRITE, and UPDATE to ioLib.h.
24 01p,04dec87,dnw added undefine of MC68000 to get around Green Hills bug that
26 01o,12nov87,ecs added type ULONG.
27 01n,08feb86,dnw added types INSTR, UINT, USHORT.
28 01m,14oct85,rdc added BUS types.
29 01l,16jul85,jlf added conditional for NULL and EOF.
30 01k,24jun85,rdc installed condtional compile so we can include in
31 assembly language files. See instructions below.
32 Added System type macro and CPU type macro.
33 01j,13jun85,dnw cleaned-up, removed more obsolete stuff to wrs.h
34 01i,11sep84,jlf changed name from wrs.h to vxWorks.h. removed GLOBAL.
35 01h,03jun84,dnw removed IGNORE declaration.
36 01g,09apr84,jlf added MEMBER_SIZE macro.
37 01f,14dec83,dnw added MSB, LSB macros
38 01e,17nov83,jlf added STATUS type, for routines which return a status.
39 01d,13jul83,dnw added NELEMENTS macro
40 01c,14May83,dnw added OFFSET macro
41 01b,17Feb83,dnw added stuff from Whitesmiths std.h
42 01a,15Feb83,dnw written
48 #if !defined(EOF) || (EOF!=(-1))
52 #if !defined(FALSE) || (FALSE!=0)
56 #if !defined(TRUE) || (TRUE!=1)
61 #define NONE (-1) /* for times when NULL won't do */
62 #define EOS '\0' /* C string terminator */
65 /* return status values */
73 #define WAIT_FOREVER (-1)
75 /* low-level I/O input, output, error fd's */
81 /* modes - must match O_RDONLY/O_WRONLY/O_RDWR in ioLib.h! */
89 #define V7 1 /* ATT version 7 */
90 #define SYS_V 2 /* ATT System 5 */
91 #define BSD_4_2 3 /* Berkeley BSD 4.2 */
95 /* The Green Hills compiler pre-defines "MC68000"!! */
116 #if CPU==MC68000 || CPU==MC68010 || CPU==MC68020 || CPU==MC68030
117 #define CPU_FAMILY MC680X0
118 #endif /* CPU==MC68000 || CPU==MC68010 || CPU==MC68020 || CPU==MC68030 */
121 #define CPU_FAMILY SPARC
122 #endif /* CPU==SPARC */
125 #define CPU_FAMILY I960
126 #endif /* CPU==I960KB */
129 #define CPU_FAMILY I960
130 #endif /* CPU==I960CA */
137 /* network configuration parameters */
139 #define INET /* include internet protocols */
140 #define BSD 43 /* BSD 4.3 -like OS */
141 #define BSDDEBUG /* turn on debug */
142 #define GATEWAY /* tables to be initialized for gateway routing */
146 #define MSB(x) (((x) >> 8) & 0xff) /* most signif byte of 2-byte integer */
147 #define LSB(x) ((x) & 0xff) /* least signif byte of 2-byte integer*/
149 #define OFFSET(structure, member) /* byte offset of member in structure*/\
150 ((int) &(((structure *) 0) -> member))
152 #define MEMBER_SIZE(structure, member) /* size of a member of a structure */\
153 (sizeof (((structure *) 0) -> member))
155 #define NELEMENTS(array) /* number of elements in an array */ \
156 (sizeof (array) / sizeof ((array) [0]))
158 #define FOREVER for (;;)
160 /* storage class specifier definitions */
162 #define FAST register
163 #define IMPORT extern
167 /* include typedefs - must come after CPU_FAMILY definitions above */
171 #endif /* INCvxWorksh */
This page took 0.031949 seconds and 4 git commands to generate.