Changeset 132ab5d1 in mainline for uspace/lib/c/include/errno.h


Ignore:
Timestamp:
2018-01-30T03:20:45Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/errno.h

    r8bfb163 r132ab5d1  
    3636#define LIBC_ERRNO_H_
    3737
     38#include <_bits/errno.h>
    3839#include <abi/errno.h>
    3940
    4041#define errno  (*(__errno()))
    4142
    42 extern int *__errno(void) __attribute__((const));
    43 
    44 #define EMFILE        (-18)
    45 #define ENAMETOOLONG  (-256)
    46 #define EISDIR        (-257)
    47 #define ENOTDIR       (-258)
    48 #define ENOSPC        (-259)
    49 #define ENOTEMPTY     (-261)
    50 #define EBADF         (-262)
    51 #define EDOM          (-263)
    52 #define ERANGE        (-264)
    53 #define EXDEV         (-265)
    54 #define EIO           (-266)
    55 #define EMLINK        (-267)
    56 #define ENXIO         (-268)
    57 #define ENOFS         (-269)
    58 
    59 /** Bad checksum. */
    60 #define EBADCHECKSUM  (-300)
    61 
    62 /** USB: stalled operation. */
    63 #define ESTALL (-301)
    64 
    65 /** Empty resource (no data). */
    66 #define EEMPTY (-302)
    67 
    68 /** Negative acknowledgment. */
    69 #define ENAK (-303)
    70 
    71 /** The requested operation was not performed. Try again later. */
    72 #define EAGAIN  (-11002)
     43extern errno_t *__errno(void) __attribute__((const));
    7344
    7445#endif
Note: See TracChangeset for help on using the changeset viewer.