xref: /nrf52832-nimble/rt-thread/components/dfs/filesystems/jffs2/include/port/codes.h (revision 104654410c56c573564690304ae786df310c91fc)
1 #ifndef CYGONCE_ERROR_CODES_H
2 #define CYGONCE_ERROR_CODES_H
3 /*===========================================================================
4 //
5 //      codes.h
6 //
7 //      Common error code definitions
8 //
9 //===========================================================================
10 // ####ECOSGPLCOPYRIGHTBEGIN####
11 // -------------------------------------------
12 // This file is part of eCos, the Embedded Configurable Operating System.
13 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
14 //
15 // eCos is free software; you can redistribute it and/or modify it under
16 // the terms of the GNU General Public License as published by the Free
17 // Software Foundation; either version 2 or (at your option) any later
18 // version.
19 //
20 // eCos is distributed in the hope that it will be useful, but WITHOUT
21 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
22 // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
23 // for more details.
24 //
25 // You should have received a copy of the GNU General Public License
26 // along with eCos; if not, write to the Free Software Foundation, Inc.,
27 // 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
28 //
29 // As a special exception, if other files instantiate templates or use
30 // macros or inline functions from this file, or you compile this file
31 // and link it with other works to produce a work based on this file,
32 // this file does not by itself cause the resulting work to be covered by
33 // the GNU General Public License. However the source code for this file
34 // must still be made available in accordance with section (3) of the GNU
35 // General Public License v2.
36 //
37 // This exception does not invalidate any other reasons why a work based
38 // on this file might be covered by the GNU General Public License.
39 // -------------------------------------------
40 // ####ECOSGPLCOPYRIGHTEND####
41 //===========================================================================
42 //#####DESCRIPTIONBEGIN####
43 //
44 // Author(s):    jlarmour
45 // Contributors: jlarmour
46 // Date:         2000-04-14
47 // Purpose:      To provide a common set of error codes
48 // Description:  This provides a common set of error codes that all
49 //               packages can agree on. It doesn't preclude them defining
50 //               their own error return system, but this is a preferable
51 //               system to use to help error support be as general as
52 //               possible.
53 //
54 //               We try and conform to the ANSI/POSIX error code format,
55 //               namely starting with the character 'E'
56 //
57 // Usage:        #include <cyg/error/codes.h>
58 //
59 //               Example:
60 //
61 //               err=myfun();
62 //               if (err != ENOERR)
63 //               {
64 //                 str=strerror(err);
65 //                 printf("myfun returned error: %s\n", str);
66 //               }
67 //               else ....
68 //
69 //####DESCRIPTIONEND####
70 //
71 //=========================================================================*/
72 
73 /* CONFIGURATION */
74 
75 //#include <pkgconf/error.h>      prife    // Configuration header
76 
77 #ifdef __cplusplus
78 extern "C" {
79 #endif
80 
81 /* TYPE DEFINITIONS */
82 
83 /* A type for error codes which may be useful to explain the purpose of
84  * a variable or return code. It shows that it contains an error code
85  * of the type defined below */
86 
87 typedef int Cyg_ErrNo;
88 
89 #include <rtthread.h>
90 
91 #define ENOERR  RT_EOK
92 
93 #ifdef __cplusplus
94 }   /* extern "C" */
95 #endif
96 
97 #endif /* CYGONCE_ERROR_CODES_H multiple inclusion protection */
98 
99 /* EOF codes.h */
100