Changeset 0d0b319 in mainline for abi/include/abi/errno.in


Ignore:
Timestamp:
2018-01-04T20:03:02Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3c7702c0
Parents:
10de842
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 19:18:29)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:03:02)
Message:

Flip error constants to positive values, and update libposix for the change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abi/include/abi/errno.in

    r10de842 r0d0b319  
    11__errno_entry(EOK            ,      0, "No error")
    2 __errno_entry(ENOENT         ,     -1, "No such entry")
    3 __errno_entry(ENOMEM         ,     -2, "Not enough memory")
    4 __errno_entry(ELIMIT         ,     -3, "Limit exceeded")
    5 __errno_entry(EREFUSED       ,     -4, "Connection refused")
    6 __errno_entry(EFORWARD       ,     -5, "Forwarding error")
    7 __errno_entry(EPERM          ,     -6, "Permission denied")
    8 __errno_entry(EHANGUP        ,     -7, "Answerbox closed connection")
    9 __errno_entry(EPARTY         ,     -8, "Other party encountered an error")
    10 __errno_entry(EEXIST         ,     -9, "Entry already exists")
    11 __errno_entry(EBADMEM        ,    -10, "Bad memory pointer")
    12 __errno_entry(ENOTSUP        ,    -11, "Operation not supported")
    13 __errno_entry(EADDRNOTAVAIL  ,    -12, "Address not available")
    14 __errno_entry(ETIMEOUT       ,    -13, "Timeout expired")
    15 __errno_entry(EINVAL         ,    -14, "Invalid value")
    16 __errno_entry(EBUSY          ,    -15, "Resource is busy")
    17 __errno_entry(EOVERFLOW      ,    -16, "Result does not fit its size")
    18 __errno_entry(EINTR          ,    -17, "Operation interrupted")
    19 __errno_entry(EMFILE         ,    -18, "Too many open files")
    20 __errno_entry(ENAMETOOLONG   ,   -256, "Name is too long")
    21 __errno_entry(EISDIR         ,   -257, "Entry is a directory")
    22 __errno_entry(ENOTDIR        ,   -258, "Entry is not a directory")
    23 __errno_entry(ENOSPC         ,   -259, "No space left")
    24 __errno_entry(ENOTEMPTY      ,   -261, "Directory is not empty")
    25 __errno_entry(EBADF          ,   -262, "Bad object handle")
    26 __errno_entry(EDOM           ,   -263, "Domain error")
    27 __errno_entry(ERANGE         ,   -264, "Value out of range")
    28 __errno_entry(EXDEV          ,   -265, "Prohibited cross-device link")
    29 __errno_entry(EIO            ,   -266, "Input/output error")
    30 __errno_entry(EMLINK         ,   -267, "Too many links")
    31 __errno_entry(ENXIO          ,   -268, "Device or address does not exist")
    32 __errno_entry(ENOFS          ,   -269, "No such file system type")
    33 __errno_entry(EBADCHECKSUM   ,   -300, "Bad checksum")
    34 __errno_entry(ESTALL         ,   -301, "USB: Operation stalled")
    35 __errno_entry(EEMPTY         ,   -302, "Resource is empty")
    36 __errno_entry(ENAK           ,   -303, "Negative acknowledgement")
    37 __errno_entry(EAGAIN         , -11002, "Operation could not proceed, try again")
     2__errno_entry(ENOENT         ,      1, "No such entry")
     3__errno_entry(ENOMEM         ,      2, "Not enough memory")
     4__errno_entry(ELIMIT         ,      3, "Limit exceeded")
     5__errno_entry(EREFUSED       ,      4, "Connection refused")
     6__errno_entry(EFORWARD       ,      5, "Forwarding error")
     7__errno_entry(EPERM          ,      6, "Permission denied")
     8__errno_entry(EHANGUP        ,      7, "Answerbox closed connection")
     9__errno_entry(EPARTY         ,      8, "Other party encountered an error")
     10__errno_entry(EEXIST         ,      9, "Entry already exists")
     11__errno_entry(EBADMEM        ,     10, "Bad memory pointer")
     12__errno_entry(ENOTSUP        ,     11, "Operation not supported")
     13__errno_entry(EADDRNOTAVAIL  ,     12, "Address not available")
     14__errno_entry(ETIMEOUT       ,     13, "Timeout expired")
     15__errno_entry(EINVAL         ,     14, "Invalid value")
     16__errno_entry(EBUSY          ,     15, "Resource is busy")
     17__errno_entry(EOVERFLOW      ,     16, "Result does not fit its size")
     18__errno_entry(EINTR          ,     17, "Operation interrupted")
     19__errno_entry(EMFILE         ,     18, "Too many open files")
     20__errno_entry(ENAMETOOLONG   ,     19, "Name is too long")
     21__errno_entry(EISDIR         ,     20, "Entry is a directory")
     22__errno_entry(ENOTDIR        ,     21, "Entry is not a directory")
     23__errno_entry(ENOSPC         ,     22, "No space left")
     24__errno_entry(ENOTEMPTY      ,     23, "Directory is not empty")
     25__errno_entry(EBADF          ,     24, "Bad object handle")
     26__errno_entry(EDOM           ,     25, "Mathematics argument out of domain of function")
     27__errno_entry(ERANGE         ,     26, "Value out of range")
     28__errno_entry(EXDEV          ,     27, "Prohibited cross-device link")
     29__errno_entry(EIO            ,     28, "Input/output error")
     30__errno_entry(EMLINK         ,     29, "Too many links")
     31__errno_entry(ENXIO          ,     30, "Device or address does not exist")
     32__errno_entry(ENOFS          ,     31, "No such file system type")
     33__errno_entry(EBADCHECKSUM   ,     32, "Bad checksum")
     34__errno_entry(ESTALL         ,     33, "USB: Operation stalled")
     35__errno_entry(EEMPTY         ,     34, "Resource is empty")
     36__errno_entry(ENAK           ,     35, "Negative acknowledgement")
     37__errno_entry(EAGAIN         ,     36, "Operation could not proceed, try again")
    3838
    39 __errno_entry(HTTP_EMULTIPLE_HEADERS , -20001, "HTTP: Multiple headers")  // libhttp error codes. Defining them here is a temporary hack.
    40 __errno_entry(HTTP_EMISSING_HEADER   , -20002, "HTTP: Missing header")
    41 __errno_entry(HTTP_EPARSE            , -20003, "HTTP: Parse error")
     39/* libhttp error codes. Defining them here is a temporary hack. */
    4240
    43 __errno_entry(EXT4_ERR_BAD_DX_DIR    , -75000, "EXT4: Filesystem corrupted")  // libext4
     41__errno_entry(HTTP_EMULTIPLE_HEADERS ,  50, "HTTP: Multiple headers")
     42__errno_entry(HTTP_EMISSING_HEADER   ,  51, "HTTP: Missing header")
     43__errno_entry(HTTP_EPARSE            ,  52, "HTTP: Parse error")
     44
     45/* libext4 error codes. Same as above. */
     46
     47__errno_entry(EXT4_ERR_BAD_DX_DIR    ,  60, "EXT4: Filesystem corrupted")
     48
     49
     50/* POSIX error codes + whatever nonstandard names crop up in third-party
     51 * software. These are not used in HelenOS code, but are defined here in
     52 * order to avoid nasty hacks in libposix.
     53 *
     54 * If you decide to use one of these in native HelenOS code,
     55 * move it up to the first group.
     56 */
     57
     58__errno_entry(E2BIG            ,  101, "Argument list too long")
     59__errno_entry(EACCES           ,  102, "Permission denied")
     60__errno_entry(EADDRINUSE       ,  103, "Address in use")
     61__errno_entry(EAFNOSUPPORT     ,  105, "Address family not supported")
     62__errno_entry(EALREADY         ,  107, "Connection already in progress")
     63__errno_entry(EBADMSG          ,  109, "Bad message")
     64__errno_entry(ECANCELED        ,  111, "Operation canceled")
     65__errno_entry(ECHILD           ,  112, "No child processes")
     66__errno_entry(ECONNABORTED     ,  113, "Connection aborted")
     67__errno_entry(ECONNREFUSED     ,  114, "Connection refused")
     68__errno_entry(ECONNRESET       ,  115, "Connection reset")
     69__errno_entry(EDEADLK          ,  116, "Resource deadlock would occur")
     70__errno_entry(EDESTADDRREQ     ,  117, "Destination address required")
     71__errno_entry(EDQUOT           ,  119, "Reserved")
     72__errno_entry(EFAULT           ,  121, "Bad address")
     73__errno_entry(EFBIG            ,  122, "File too large")
     74__errno_entry(EHOSTUNREACH     ,  123, "Host is unreachable")
     75__errno_entry(EIDRM            ,  124, "Identifier removed")
     76__errno_entry(EILSEQ           ,  125, "Illegal byte sequence")
     77__errno_entry(EINPROGRESS      ,  126, "Operation in progress")
     78__errno_entry(EISCONN          ,  130, "Socket is connected")
     79__errno_entry(ELOOP            ,  132, "Too many levels of symbolic links")
     80__errno_entry(EMSGSIZE         ,  135, "Message too large")
     81__errno_entry(EMULTIHOP        ,  136, "Reserved")
     82__errno_entry(ENETDOWN         ,  138, "Network is down")
     83__errno_entry(ENETRESET        ,  139, "Connection aborted by network")
     84__errno_entry(ENETUNREACH      ,  140, "Network unreachable")
     85__errno_entry(ENFILE           ,  141, "Too many files open in system")
     86__errno_entry(ENOBUFS          ,  142, "No buffer space available")
     87__errno_entry(ENODATA          ,  143, "No message is available on the STREAM head read queue")
     88__errno_entry(ENODEV           ,  144, "No such device")
     89__errno_entry(ENOEXEC          ,  146, "Executable file format error")
     90__errno_entry(ENOLCK           ,  147, "No locks available")
     91__errno_entry(ENOLINK          ,  148, "Reserved")
     92__errno_entry(ENOMSG           ,  150, "No message of the desired type")
     93__errno_entry(ENOPROTOOPT      ,  151, "Protocol not available")
     94__errno_entry(ENOSR            ,  153, "No STREAM resources.")
     95__errno_entry(ENOSTR           ,  154, "Not a STREAM")
     96__errno_entry(ENOSYS           ,  155, "Function not supported")
     97__errno_entry(ENOTCONN         ,  156, "The socket is not connected")
     98__errno_entry(ENOTRECOVERABLE  ,  159, "State not recoverable")
     99__errno_entry(ENOTSOCK         ,  160, "Not a socket")
     100__errno_entry(ENOTTY           ,  162, "Inappropriate I/O control operation")
     101__errno_entry(EOPNOTSUPP       ,  164, "Operation not supported")
     102__errno_entry(EOWNERDEAD       ,  166, "Previous owned died")
     103__errno_entry(EPIPE            ,  168, "Broken pipe")
     104__errno_entry(EPROTO           ,  169, "Protocol error")
     105__errno_entry(EPROTONOSUPPORT  ,  170, "Protocol not supported")
     106__errno_entry(EPROTOTYPE       ,  171, "Protocol wrong type for socket")
     107__errno_entry(EROFS            ,  173, "Read-only file system")
     108__errno_entry(ESPIPE           ,  174, "Invalid seek")
     109__errno_entry(ESRCH            ,  175, "No such process")
     110__errno_entry(ESTALE           ,  176, "Reserved")
     111__errno_entry(ETIME            ,  177, "Stream ioctl() timeout")
     112__errno_entry(ETIMEDOUT        ,  178, "Connection timed out")
     113__errno_entry(ETXTBSY          ,  179, "Text file busy")
     114__errno_entry(EWOULDBLOCK      ,  180, "Operation would block")
Note: See TracChangeset for help on using the changeset viewer.