EPICS Base  7.0.6.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 
23 /* FIXME: M_xxx values could be declared as integer variables and set
24  * at runtime from registration routines; the S_xxx definitions would
25  * still work with that change, with careful initialization.
26  */
27 
28 /* libCom */
29 #define M_asLib (501 << 16) /* Access Security */
30 #define M_bucket (502 << 16) /* Bucket Hash */
31 #define M_devLib (503 << 16) /* Hardware RegisterAccess */
32 #define M_stdlib (504 << 16) /* EPICS Standard library */
33 #define M_pool (505 << 16) /* Thread pool */
34 #define M_time (506 << 16) /* epicsTime */
35 
36 /* ioc */
37 #define M_dbAccess (511 << 16) /* Database Access Routines */
38 #define M_dbLib (512 << 16) /* Static Database Access */
39 #define M_drvSup (513 << 16) /* Driver Support */
40 #define M_devSup (514 << 16) /* Device Support */
41 #define M_recSup (515 << 16) /* Record Support */
42 
43 /* cas */
44 #define M_cas (521 << 16) /* CA server */
45 #define M_gddFuncTbl (522 << 16) /* gdd jump table */
46 #define M_casApp (523 << 16) /* CA server application */
47 
48 #endif /*INC_errMdef_H*/