summaryrefslogtreecommitdiff
path: root/FreeRTOS-Plus/Source/Reliance-Edge/include/rederrno.h
blob: 9b71060ab887b24c7547bdda24f9907a8088fd89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/*             ----> DO NOT REMOVE THE FOLLOWING NOTICE <----

                   Copyright (c) 2014-2015 Datalight, Inc.
                       All Rights Reserved Worldwide.

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; use version 2 of the License.

    This program is distributed in the hope that it will be useful,
    but "AS-IS," WITHOUT ANY WARRANTY; without even the implied warranty
    of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
/*  Businesses and individuals that for commercial or other reasons cannot
    comply with the terms of the GPLv2 license may obtain a commercial license
    before incorporating Reliance Edge into proprietary software for
    distribution in any form.  Visit http://www.datalight.com/reliance-edge for
    more information.
*/
/** @file
    @brief Error values for Reliance Edge APIs
*/
#ifndef REDERRNO_H
#define REDERRNO_H


/** @brief Return type for Reliance Edge error values.
*/
typedef int32_t REDSTATUS;


/*  The errno numbers are the same as Linux.
*/

/** Operation not permitted. */
#define RED_EPERM            1

/** No such file or directory. */
#define RED_ENOENT           2

/** I/O error. */
#define RED_EIO              5

/** Bad file number. */
#define RED_EBADF            9

/** Out of memory */
#define RED_ENOMEM          12

/** Device or resource busy. */
#define RED_EBUSY           16

/** File exists. */
#define RED_EEXIST          17

/** Cross-device link. */
#define RED_EXDEV           18

/** Not a directory. */
#define RED_ENOTDIR         20

/** Is a directory. */
#define RED_EISDIR          21

/** Invalid argument. */
#define RED_EINVAL          22

/** File table overflow. */
#define RED_ENFILE          23

/** Too many open files. */
#define RED_EMFILE          24

/** File too large. */
#define RED_EFBIG           27

/** No space left on device. */
#define RED_ENOSPC          28

/** Read-only file system. */
#define RED_EROFS           30

/** Too many links. */
#define RED_EMLINK          31

/** Math result not representable. */
#define RED_ERANGE          34

/** File name too long. */
#define RED_ENAMETOOLONG    36

/** Function not implemented. */
#define RED_ENOSYS          38

/** Directory not empty. */
#define RED_ENOTEMPTY       39

/** No data available. */
#define RED_ENODATA         61

/** Too many users. */
#define RED_EUSERS          87

/** Nothing will be okay ever again. */
#define RED_EFUBAR          RED_EINVAL


#endif