Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 3529fbf0 in mainline for abi/include/abi/errno.h


Ignore:
Timestamp:
2017-12-19T15:18:40Z (4 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master
Children:
74a2a2d
Parents:
bdb8ba9
Message:

Ensure that errno.h constants aren't missing textual descriptions.

File:
1 edited

Legend:

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

    rbdb8ba9 r3529fbf0  
    1 /*
    2  * Copyright (c) 2005 Martin Decky
    3  * All rights reserved.
    4  *
    5  * Redistribution and use in source and binary forms, with or without
    6  * modification, are permitted provided that the following conditions
    7  * are met:
    8  *
    9  * - Redistributions of source code must retain the above copyright
    10  *   notice, this list of conditions and the following disclaimer.
    11  * - Redistributions in binary form must reproduce the above copyright
    12  *   notice, this list of conditions and the following disclaimer in the
    13  *   documentation and/or other materials provided with the distribution.
    14  * - The name of the author may not be used to endorse or promote products
    15  *   derived from this software without specific prior written permission.
    16  *
    17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
    18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    19  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    20  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
    21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
    22  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    27  */
    28 
    29 /** @addtogroup generic
    30  * @{
    31  */
    32 /** @file
    33  */
    34 
    35 #ifndef ABI_ERRNO_H_
    36 #define ABI_ERRNO_H_
    37 
    38 /**
    39  * Values in the range [-1, -255] are kernel error codes,
    40  * values in the range [-256, -512] are user error codes.
    41  */
    42 
    43 typedef enum {
    44         EOK           =  0,   /* No error */
    45         ENOENT        = -1,   /* No such entry */
    46         ENOMEM        = -2,   /* Not enough memory */
    47         ELIMIT        = -3,   /* Limit exceeded */
    48         EREFUSED      = -4,   /* Connection refused */
    49         EFORWARD      = -5,   /* Forward error */
    50         EPERM         = -6,   /* Permission denied */
    51 
    52 /*
    53  * Answerbox closed connection, call
    54  * sys_ipc_hangup() to close the connection.
    55  * Used by answerbox to close the connection.
    56  */
    57         EHANGUP       = -7,
    58 
    59 /*
    60  * The other party encountered an error when
    61  * receiving the call.
    62  */
    63         EPARTY        = -8,
    64 
    65         EEXIST        = -9,   /* Entry already exists */
    66         EBADMEM       = -10,  /* Bad memory pointer */
    67         ENOTSUP       = -11,  /* Not supported */
    68         EADDRNOTAVAIL = -12,  /* Address not available. */
    69         ETIMEOUT      = -13,  /* Timeout expired */
    70         EINVAL        = -14,  /* Invalid value */
    71         EBUSY         = -15,  /* Resource is busy */
    72         EOVERFLOW     = -16,  /* The result does not fit its size. */
    73         EINTR         = -17,  /* Operation was interrupted. */
    74 
    75         EMFILE        = -18,
    76         ENAMETOOLONG  = -256,
    77         EISDIR        = -257,
    78         ENOTDIR       = -258,
    79         ENOSPC        = -259,
    80         ENOTEMPTY     = -261,
    81         EBADF         = -262,
    82         EDOM          = -263,
    83         ERANGE        = -264,
    84         EXDEV         = -265,
    85         EIO           = -266,
    86         EMLINK        = -267,
    87         ENXIO         = -268,
    88         ENOFS         = -269,
    89 
    90 /** Bad checksum. */
    91         EBADCHECKSUM  = -300,
    92 
    93 /** USB: stalled operation. */
    94         ESTALL        = -301,
    95 
    96 /** Empty resource (no data). */
    97         EEMPTY        = -302,
    98 
    99 /** Negative acknowledgment. */
    100         ENAK          = -303,
    101 
    102 /** The requested operation was not performed. Try again later. */
    103         EAGAIN        = -11002,
    104 } errno_t;
    105 
    106 
    107 #endif
    108 
    109 /** @}
    110  */
     1/* Generated file. Edit errno.in instead. */
     2#define EOK                   0
     3#define ENOENT               -1
     4#define ENOMEM               -2
     5#define ELIMIT               -3
     6#define EREFUSED             -4
     7#define EFORWARD             -5
     8#define EPERM                -6
     9#define EHANGUP              -7
     10#define EPARTY               -8
     11#define EEXIST               -9
     12#define EBADMEM             -10
     13#define ENOTSUP             -11
     14#define EADDRNOTAVAIL       -12
     15#define ETIMEOUT            -13
     16#define EINVAL              -14
     17#define EBUSY               -15
     18#define EOVERFLOW           -16
     19#define EINTR               -17
     20#define EMFILE              -18
     21#define ENAMETOOLONG       -256
     22#define EISDIR             -257
     23#define ENOTDIR            -258
     24#define ENOSPC             -259
     25#define ENOTEMPTY          -261
     26#define EBADF              -262
     27#define EDOM               -263
     28#define ERANGE             -264
     29#define EXDEV              -265
     30#define EIO                -266
     31#define EMLINK             -267
     32#define ENXIO              -268
     33#define ENOFS              -269
     34#define EBADCHECKSUM       -300
     35#define ESTALL             -301
     36#define EEMPTY             -302
     37#define ENAK               -303
     38#define EAGAIN           -11002
Note: See TracChangeset for help on using the changeset viewer.