3.1.2 Other De.ned Data Types
The following names are used for other data types that appear frequently or have special meaning, in order to make The parameter meaning clear.
typedef INT FN; /* Function code */
typedef INT RNO; /* Rendezvous number */
typedef UINT ATR; /* Object/handler attributes */
typedef INT ER; /* Error code */
typedef INT PRI; /* Priority */
typedef INT TMO; /* Timeout */
typedef UINT RELTIM; /* Relative time */
typedef struct systim { /* System time */
W hi; /* High 32 bits */
UW lo; /* Low 32 bits */
} SYSTIM;
/*
* Common constants
*/
#define NULL 0 /* Null pointer */
#define TA_NULL 0 /* No special attributes indicated */
#define TMO_POL 0 /* Polling */
#define TMO_FEVR (-1) /* Eternal wait */
- A data type that combines two or more data types is represented by its main data type. For example, the value returned by tk_cre_tsk can be a task ID or error code, but since it is mainly a task ID, the data type is ID.

Comments