Rev 2366 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2366 | Rev 2435 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | /* |
|
- | 2 | * Copyright (c) 1987,1997, Prentice Hall |
|
- | 3 | * All rights reserved. |
|
- | 4 | * |
|
- | 5 | * Redistribution and use of the MINIX operating system in source and |
|
- | 6 | * binary forms, with or without modification, are permitted provided |
|
- | 7 | * that the following conditions are met: |
|
- | 8 | ||
- | 9 | * - Redistributions of source code must retain the above copyright |
|
- | 10 | * notice, this list of conditions and the following disclaimer. |
|
- | 11 | ||
- | 12 | * - Redistributions in binary form must reproduce the above |
|
- | 13 | * copyright notice, this list of conditions and the following |
|
- | 14 | * disclaimer in the documentation and/or other materials provided |
|
- | 15 | * with the distribution. |
|
- | 16 | ||
- | 17 | * - Neither the name of Prentice Hall nor the names of the software |
|
- | 18 | * authors or contributors may be used to endorse or promote |
|
- | 19 | * products derived from this software without specific prior |
|
- | 20 | * written permission. |
|
- | 21 | ||
- | 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS, AUTHORS, AND |
|
- | 23 | * CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, |
|
- | 24 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
- | 25 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
|
- | 26 | * IN NO EVENT SHALL PRENTICE HALL OR ANY AUTHORS OR CONTRIBUTORS BE |
|
- | 27 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
|
- | 28 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
|
- | 29 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
|
- | 30 | * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
|
- | 31 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |
|
- | 32 | * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
|
- | 33 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
- | 34 | */ |
|
- | 35 | ||
- | 36 | /** @addtogroup FileSystemImpl |
|
- | 37 | * @{ |
|
- | 38 | */ |
|
- | 39 | ||
- | 40 | /** |
|
- | 41 | * @file errno.h |
|
1 | /* Error codes */ |
42 | * @brief Error codes |
- | 43 | */ |
|
2 | 44 | ||
3 | 45 | ||
4 | #ifndef _ERRNO_H |
46 | #ifndef _ERRNO_H |
5 | #define _ERRNO_H |
47 | #define _ERRNO_H |
6 | 48 | ||
7 | /* 256-512 are user error codes */ |
49 | /* 256-512 are user error codes */ |
8 | #define FS_ERROR_BASE -256 /* Base for FS error codes */ |
50 | #define FS_ERROR_BASE -256 /**< Base for FS error codes */ |
9 | #define FS_ENOENT (FS_ERROR_BASE-1) /* no such file or directory */ |
51 | #define FS_ENOENT (FS_ERROR_BASE-1) /**< no such file or directory */ |
10 | #define FS_EIO (FS_ERROR_BASE-2) /* input/output error */ |
52 | #define FS_EIO (FS_ERROR_BASE-2) /**< input/output error */ |
11 | #define FS_EBADF (FS_ERROR_BASE-3) /* bad file descriptor */ |
53 | #define FS_EBADF (FS_ERROR_BASE-3) /**< bad file descriptor */ |
12 | #define FS_ENOTDIR (FS_ERROR_BASE-4) /* not a directory */ |
54 | #define FS_ENOTDIR (FS_ERROR_BASE-4) /**< not a directory */ |
13 | #define FS_EINVAL (FS_ERROR_BASE-5) /* invalid argument */ |
55 | #define FS_EINVAL (FS_ERROR_BASE-5) /**< invalid argument */ |
14 | #define FS_ENFILE (FS_ERROR_BASE-6) /* too many open files in system */ |
56 | #define FS_ENFILE (FS_ERROR_BASE-6) /**< too many open files in system */ |
15 | #define FS_EMFILE (FS_ERROR_BASE-7) /* too many open files */ |
57 | #define FS_EMFILE (FS_ERROR_BASE-7) /**< too many open files */ |
16 | #define FS_EFBIG (FS_ERROR_BASE-8) /* file too large */ |
58 | #define FS_EFBIG (FS_ERROR_BASE-8) /**< file too large */ |
17 | #define FS_ENAMETOOLONG (FS_ERROR_BASE-9) /* file name too long */ |
59 | #define FS_ENAMETOOLONG (FS_ERROR_BASE-9) /**< file name too long */ |
18 | #define FS_ENOTEMPTY (FS_ERROR_BASE-10) /* directory not empty */ |
60 | #define FS_ENOTEMPTY (FS_ERROR_BASE-10) /**< directory not empty */ |
19 | #define FS_EBADCALL (FS_ERROR_BASE-11) /* out of range of filesystem's call */ |
61 | #define FS_EBADCALL (FS_ERROR_BASE-11) /**< out of range of filesystem's call */ |
20 | #define FS_EGENERIC (FS_ERROR_BASE-12) /* other error */ |
62 | #define FS_EGENERIC (FS_ERROR_BASE-12) /**< other error */ |
21 | #define FS_ECONNECT (FS_ERROR_BASE-13) /* new consument initiating connection error */ |
63 | #define FS_ECONNECT (FS_ERROR_BASE-13) /**< new consument initiating connection error */ |
22 | #define FS_ENOTCONNECT (FS_ERROR_BASE-14) /* disconnected consument tried to call some function */ |
64 | #define FS_ENOTCONNECT (FS_ERROR_BASE-14) /**< disconnected consument tried to call some function */ |
23 | 65 | ||
24 | #endif /* _ERRNO_H */ |
66 | #endif /* _ERRNO_H */ |
- | 67 | ||
- | 68 | /** |
|
- | 69 | * } |
|
- | 70 | */ |
|
- | 71 |