Subversion Repositories Spectranet

[/] [trunk/] [include/] [errno.inc] - Blame information for rev 570

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 442 winston
;The MIT License
2
;
3
;Copyright (c) 2011 Dylan Smith
4
;
5
;Permission is hereby granted, free of charge, to any person obtaining a copy
6
;of this software and associated documentation files (the "Software"), to deal
7
;in the Software without restriction, including without limitation the rights
8
;to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
;copies of the Software, and to permit persons to whom the Software is
10
;furnished to do so, subject to the following conditions:
11
;
12
;The above copyright notice and this permission notice shall be included in
13
;all copies or substantial portions of the Software.
14
;
15
;THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
;IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
;FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
;AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
;LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
;OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
;THE SOFTWARE.
22
 
23
; Error number definitions.
24
SUCCESS         equ     0x00    ; Not an error, success return code
25
EPERM           equ     0x01    ; Operation not permitted
26
ENOENT          equ     0x02    ; No such file or directory
27
EIO             equ     0x03    ; IO error
28
ENXIO           equ     0x04    ; No such device or address
29
E2BIG           equ     0x05    ; Too many arguments
30
EBADF           equ     0x06    ; Bad file descriptor
31
EAGAIN          equ     0x07    ; Operation would block
32
ENOMEM          equ     0x08    ; Out of memory
33
EACCES          equ     0x09    ; Permission denied
34
EBUSY           equ     0x0A    ; Device or resource busy
35
EEXIST          equ     0x0B    ; File exists
36
ENOTDIR         equ     0x0C    ; Not a directory
37
EISDIR          equ     0x0D    ; Is a directory
38
EINVAL          equ     0x0E    ; Invalid argument
39
ENFILE          equ     0x0F    ; File table overflow
40
EMFILE          equ     0x10    ; Too many open files
41
EFBIG           equ     0x11    ; File too large
42
ENOSPC          equ     0x12    ; Filesystem full
43
ESPIPE          equ     0x13    ; Attempt to seek on a pipe
44
EROFS           equ     0x14    ; Read only filesystem
45
ENAMETOOLONG    equ     0x15    ; Filename too long
46
ENOSYS          equ     0x16    ; Not implemented
47
ENOTEMPTY       equ     0x17    ; Directory not empty
48
ELOOP           equ     0x18    ; Too many symbolic links
49
ENODATA         equ     0x19    ; No data available
50
ENOSTR          equ     0x1A    ; Out of streams
51
EPROTO          equ     0x1B    ; Protocol error
52
EBADFD          equ     0x1C    ; File descriptor bad
53
EUSERS          equ     0x1D    ; Too many users
54
ENOBUFS         equ     0x1E    ; Out of buffer space
55
EALREADY        equ     0x1F    ; Operation already running
56
ESTALE          equ     0x20    ; Stale filesystem handle
57
EOF             equ     0x21    ; End of file
58
 
59
; Non-protocol/non core FS errors
60
TTIMEOUT        equ     0x22    ; Operation timed out
61
TNOTMOUNTED     equ     0x23    ; Filesystem not mounted
62
TBADLENGTH      equ     0x24    ; Incorrect header length
63
TBADTYPE        equ     0x25    ; Invalid block type
64
TUNKTYPE        equ     0x26    ; Unknown file type
65
TMISMCHLENGTH   equ     0x27    ; Data block length mismatch
66
TBADURL         equ     0x28    ; Bad URL
67
TBADFS          equ     0x29    ; Bad FS number
68 570 winston
TMPBUSY     equ 0x2A    ; Mount point already in use
69
TUNKPROTO   equ 0x2B    ; Unknown filesystem proto
70 442 winston