plibsys
perrortypes.h
Go to the documentation of this file.
1 /*
2  * The MIT License
3  *
4  * Copyright (C) 2016 Alexander Saprykin <saprykin.spb@gmail.com>
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining
7  * a copy of this software and associated documentation files (the
8  * 'Software'), to deal in the Software without restriction, including
9  * without limitation the rights to use, copy, modify, merge, publish,
10  * distribute, sublicense, and/or sell copies of the Software, and to
11  * permit persons to whom the Software is furnished to do so, subject to
12  * the following conditions:
13  *
14  * The above copyright notice and this permission notice shall be
15  * included in all copies or substantial portions of the Software.
16  *
17  * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
18  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24  */
25 
40 #if !defined (PLIBSYS_H_INSIDE) && !defined (PLIBSYS_COMPILATION)
41 # error "Header files shouldn't be included directly, consider using <plibsys.h> instead."
42 #endif
43 
44 #ifndef PLIBSYS_HEADER_PERRORTYPES_H
45 #define PLIBSYS_HEADER_PERRORTYPES_H
46 
47 #include <pmacros.h>
48 
50 
52 typedef enum PErrorDomain_ {
56 } PErrorDomain;
57 
59 typedef enum PErrorIO_ {
83 } PErrorIO;
84 
86 typedef enum PErrorIPC_ {
102 } PErrorIPC;
103 
105 
106 #endif /* PLIBSYS_HEADER_PERRORTYPES_H */
Operating system hasn&#39;t enough resources.
Definition: perrortypes.h:61
No error.
Definition: perrortypes.h:60
#define P_END_DECLS
Closes .h file declarations to be exported as C functions, should be always used after P_BEGIN_DECLS...
Definition: pmacros.h:299
Invalid argument (parameter) specified.
Definition: perrortypes.h:97
Connection required first.
Definition: perrortypes.h:73
General error.
Definition: perrortypes.h:101
Operation is not implemented (for example when using some filesystems).
Definition: perrortypes.h:98
Connection refused.
Definition: perrortypes.h:72
Component of the path prefix is not a directory.
Definition: perrortypes.h:76
enum PErrorIPC_ PErrorIPC
Enum with IPC errors.
Access denied.
Definition: perrortypes.h:63
Invalid argument specified.
Definition: perrortypes.h:67
Trying to open directory for writing.
Definition: perrortypes.h:75
Specified name is too long.
Definition: perrortypes.h:77
No more data left.
Definition: perrortypes.h:80
Operation in progress.
Definition: perrortypes.h:65
Operation timed out.
Definition: perrortypes.h:69
Operation cannot be completed immediatly.
Definition: perrortypes.h:70
Object doesn&#39;t exist or was removed before, and no proper create flags were specified.
Definition: perrortypes.h:91
PErrorIO_
Enum with IO errors.
Definition: perrortypes.h:59
PErrorDomain_
Enum with error domains.
Definition: perrortypes.h:52
User quota exceeded.
Definition: perrortypes.h:74
Miscellaneous macros.
Resource isn&#39;t available.
Definition: perrortypes.h:62
Already connected.
Definition: perrortypes.h:64
Operation aborted.
Definition: perrortypes.h:66
Not enough system resources or memory to perform operation.
Definition: perrortypes.h:93
Object name is too long.
Definition: perrortypes.h:96
Operation not supported.
Definition: perrortypes.h:68
Object already exists and no proper open flags were specified.
Definition: perrortypes.h:89
Operation is not implemented.
Definition: perrortypes.h:81
Interprocess communication domain.
Definition: perrortypes.h:55
Not enough rights to access object or its key.
Definition: perrortypes.h:88
No error.
Definition: perrortypes.h:87
General error.
Definition: perrortypes.h:82
Semaphore value overflow.
Definition: perrortypes.h:95
P_BEGIN_DECLS enum PErrorDomain_ PErrorDomain
Enum with error domains.
Input/output domain.
Definition: perrortypes.h:54
No domain was specified.
Definition: perrortypes.h:53
Specified entry doesn&#39;t exist.
Definition: perrortypes.h:79
PErrorIPC_
Enum with IPC errors.
Definition: perrortypes.h:86
Specified entry already exists.
Definition: perrortypes.h:78
enum PErrorIO_ PErrorIO
Enum with IO errors.
Deadlock detected.
Definition: perrortypes.h:100
Address is already under usage.
Definition: perrortypes.h:71
#define P_BEGIN_DECLS
Starts .h file declarations to be exported as C functions.
Definition: pmacros.h:298