sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
* errno is not a global variable, because that would make using it
|
sl@0
|
16 |
* non-reentrant. Instead, its address is returned by the function __errno.
|
sl@0
|
17 |
*
|
sl@0
|
18 |
*
|
sl@0
|
19 |
*/
|
sl@0
|
20 |
|
sl@0
|
21 |
|
sl@0
|
22 |
|
sl@0
|
23 |
/**
|
sl@0
|
24 |
@file
|
sl@0
|
25 |
@publishedAll
|
sl@0
|
26 |
@released
|
sl@0
|
27 |
*/
|
sl@0
|
28 |
|
sl@0
|
29 |
#ifndef _SYS_ERRNO_H_
|
sl@0
|
30 |
#define _SYS_ERRNO_H_
|
sl@0
|
31 |
|
sl@0
|
32 |
#ifdef __cplusplus
|
sl@0
|
33 |
extern "C" {
|
sl@0
|
34 |
#endif
|
sl@0
|
35 |
|
sl@0
|
36 |
#include <_ansi.h>
|
sl@0
|
37 |
|
sl@0
|
38 |
#ifndef _REENT_ONLY
|
sl@0
|
39 |
|
sl@0
|
40 |
IMPORT_C int *__errno(void);
|
sl@0
|
41 |
#define errno (*__errno())
|
sl@0
|
42 |
#endif
|
sl@0
|
43 |
|
sl@0
|
44 |
#define EPERM 1 /* Not super-user */
|
sl@0
|
45 |
#define ENOENT 2 /* No such file or directory */
|
sl@0
|
46 |
#define ESRCH 3 /* No such process */
|
sl@0
|
47 |
#define EINTR 4 /* Interrupted system call */
|
sl@0
|
48 |
#define EIO 5 /* I/O error */
|
sl@0
|
49 |
#define ENXIO 6 /* No such device or address */
|
sl@0
|
50 |
#define E2BIG 7 /* Arg list too long */
|
sl@0
|
51 |
#define ENOEXEC 8 /* Exec format error */
|
sl@0
|
52 |
#define EBADF 9 /* Bad file number */
|
sl@0
|
53 |
#define ECHILD 10 /* No children */
|
sl@0
|
54 |
#define EAGAIN 11 /* No more processes */
|
sl@0
|
55 |
#define ENOMEM 12 /* Not enough core */
|
sl@0
|
56 |
#define EACCES 13 /* Permission denied */
|
sl@0
|
57 |
#define EFAULT 14 /* Bad address */
|
sl@0
|
58 |
#define ENOTBLK 15 /* Block device required */
|
sl@0
|
59 |
#define EBUSY 16 /* Mount device busy */
|
sl@0
|
60 |
#define EEXIST 17 /* File exists */
|
sl@0
|
61 |
#define EXDEV 18 /* Cross-device link */
|
sl@0
|
62 |
#define ENODEV 19 /* No such device */
|
sl@0
|
63 |
#define ENOTDIR 20 /* Not a directory */
|
sl@0
|
64 |
#define EISDIR 21 /* Is a directory */
|
sl@0
|
65 |
#define EINVAL 22 /* Invalid argument */
|
sl@0
|
66 |
#define ENFILE 23 /* Too many open files in system */
|
sl@0
|
67 |
#define EMFILE 24 /* Too many open files */
|
sl@0
|
68 |
#define ENOTTY 25 /* Not a typewriter */
|
sl@0
|
69 |
#define ETXTBSY 26 /* Text file busy */
|
sl@0
|
70 |
#define EFBIG 27 /* File too large */
|
sl@0
|
71 |
#define ENOSPC 28 /* No space left on device */
|
sl@0
|
72 |
#define ESPIPE 29 /* Illegal seek */
|
sl@0
|
73 |
#define EROFS 30 /* Read only file system */
|
sl@0
|
74 |
#define EMLINK 31 /* Too many links */
|
sl@0
|
75 |
#define EPIPE 32 /* Broken pipe */
|
sl@0
|
76 |
#define EDOM 33 /* Math arg out of domain of func */
|
sl@0
|
77 |
#define ERANGE 34 /* Math result not representable */
|
sl@0
|
78 |
#define ENOMSG 35 /* No message of desired type */
|
sl@0
|
79 |
#define EIDRM 36 /* Identifier removed */
|
sl@0
|
80 |
#define ECHRNG 37 /* Channel number out of range */
|
sl@0
|
81 |
#define EL2NSYNC 38 /* Level 2 not synchronized */
|
sl@0
|
82 |
#define EL3HLT 39 /* Level 3 halted */
|
sl@0
|
83 |
#define EL3RST 40 /* Level 3 reset */
|
sl@0
|
84 |
#define ELNRNG 41 /* Link number out of range */
|
sl@0
|
85 |
#define EUNATCH 42 /* Protocol driver not attached */
|
sl@0
|
86 |
#define ENOCSI 43 /* No CSI structure available */
|
sl@0
|
87 |
#define EL2HLT 44 /* Level 2 halted */
|
sl@0
|
88 |
#define EDEADLK 45 /* Deadlock condition */
|
sl@0
|
89 |
#define ENOLCK 46 /* No record locks available */
|
sl@0
|
90 |
/* 47 */
|
sl@0
|
91 |
/* 48 */
|
sl@0
|
92 |
/* 49 */
|
sl@0
|
93 |
#define ENOTSOCK 50 /* Not a socket */
|
sl@0
|
94 |
#define EADDRNOTAVAIL 51 /* remote address not available */
|
sl@0
|
95 |
#define EAFNOSUPPORT 52 /* address not supported by protocol */
|
sl@0
|
96 |
#define EISCONN 53 /* socket is already connected */
|
sl@0
|
97 |
#define ECONNREFUSED 54 /* remote server refused connection */
|
sl@0
|
98 |
#define EADDRINUSE 55 /* address is already in use */
|
sl@0
|
99 |
#define ETIMEDOUT 56 /* connection timed out */
|
sl@0
|
100 |
/* 57 */
|
sl@0
|
101 |
/* 58 */
|
sl@0
|
102 |
/* 59 */
|
sl@0
|
103 |
#define ENOSTR 60 /* Device not a stream */
|
sl@0
|
104 |
#define ENODATA 61 /* No data (for no delay io) */
|
sl@0
|
105 |
#define ETIME 62 /* Timer expired */
|
sl@0
|
106 |
#define ENOSR 63 /* Out of streams resources */
|
sl@0
|
107 |
#define ENONET 64 /* Machine is not on the network */
|
sl@0
|
108 |
#define ENOPKG 65 /* Package not installed */
|
sl@0
|
109 |
#define EREMOTE 66 /* The object is remote */
|
sl@0
|
110 |
#define ENOLINK 67 /* The link has been severed */
|
sl@0
|
111 |
#define EADV 68 /* Advertise error */
|
sl@0
|
112 |
#define ESRMNT 69 /* Srmount error */
|
sl@0
|
113 |
#define ECOMM 70 /* Communication error on send */
|
sl@0
|
114 |
#define EPROTO 71 /* Protocol error */
|
sl@0
|
115 |
/* 72 */
|
sl@0
|
116 |
/* 73 */
|
sl@0
|
117 |
#define EMULTIHOP 74 /* Multihop attempted */
|
sl@0
|
118 |
#define ELBIN 75 /* Inode is remote (not really error) */
|
sl@0
|
119 |
#define EDOTDOT 76 /* Cross mount point (not really error) */
|
sl@0
|
120 |
#define EBADMSG 77 /* Trying to read unreadable message */
|
sl@0
|
121 |
/* 78 */
|
sl@0
|
122 |
/* 79 */
|
sl@0
|
123 |
#define ENOTUNIQ 80 /* Given log. name not unique */
|
sl@0
|
124 |
#define EBADFD 81 /* f.d. invalid for this operation */
|
sl@0
|
125 |
#define EREMCHG 82 /* Remote address changed */
|
sl@0
|
126 |
#define ELIBACC 83 /* Can't access a needed shared lib */
|
sl@0
|
127 |
#define ELIBBAD 84 /* Accessing a corrupted shared lib */
|
sl@0
|
128 |
#define ELIBSCN 85 /* .lib section in a.out corrupted */
|
sl@0
|
129 |
#define ELIBMAX 86 /* Attempting to link in too many libs */
|
sl@0
|
130 |
#define ELIBEXEC 87 /* Attempting to exec a shared library */
|
sl@0
|
131 |
#define ENOSYS 88 /* Function not implemented */
|
sl@0
|
132 |
#define ENMFILE 89 /* No more files */
|
sl@0
|
133 |
#define ENOTEMPTY 90 /* Directory not empty */
|
sl@0
|
134 |
#define ENAMETOOLONG 91 /* File or path name too long */
|
sl@0
|
135 |
|
sl@0
|
136 |
#define EILSEQ 92 /*invalid wide-character encoding*/
|
sl@0
|
137 |
|
sl@0
|
138 |
#define __ELASTERROR 2000 /* Users can add values starting here */
|
sl@0
|
139 |
#ifdef __cplusplus
|
sl@0
|
140 |
}
|
sl@0
|
141 |
#endif
|
sl@0
|
142 |
#endif /* _SYS_ERRNO_H */
|