EPICS Base  7.0.8.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
errMdef.h
1 /*************************************************************************\
2 * Copyright (c) 2014 UChicago Argonne LLC, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * SPDX-License-Identifier: EPICS
7 * EPICS BASE is distributed subject to a Software License Agreement found
8 * in file LICENSE that is included with this distribution.
9 \*************************************************************************/
10 /* Error Handling definitions */
11 /*
12  * Author: Marty Kraimer
13  * Date: 6-1-90
14  */
15 
16 #ifndef INC_errMdef_H
17 #define INC_errMdef_H
18 
19 #define RTN_SUCCESS(STATUS) ((STATUS)==0)
20 
21 /* Module numbers start above 500 for compatibility with vxWorks errnoLib */
22 #define MIN_MODULE_NUM 501
23 
24 /* FIXME: M_xxx values could be declared as integer variables and set
25  * at runtime from registration routines; the S_xxx definitions would
26  * still work with that change, with careful initialization.
27  */
28 
29 /* libCom */
30 #define M_asLib (501 << 16) /* Access Security */
31 #define M_bucket (502 << 16) /* Bucket Hash */
32 #define M_devLib (503 << 16) /* Hardware RegisterAccess */
33 #define M_stdlib (504 << 16) /* EPICS Standard library */
34 #define M_pool (505 << 16) /* Thread pool */
35 #define M_time (506 << 16) /* epicsTime */
36 #define M_err (507 << 16) /* Error */
37 
38 /* ioc */
39 #define M_dbAccess (511 << 16) /* Database Access Routines */
40 #define M_dbLib (512 << 16) /* Static Database Access */
41 #define M_drvSup (513 << 16) /* Driver Support */
42 #define M_devSup (514 << 16) /* Device Support */
43 #define M_recSup (515 << 16) /* Record Support */
44 
45 /* cas */
46 #define M_cas (521 << 16) /* CA server */
47 #define M_gddFuncTbl (522 << 16) /* gdd jump table */
48 #define M_casApp (523 << 16) /* CA server application */
49 
50 #endif /*INC_errMdef_H*/