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


Ignore:
Timestamp:
2011-06-01T08:43:42Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d6c1f1
Parents:
9e2e715 (diff), e51a514 (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:

Huuuuuge merge from development - all the work actually :)

File:
1 edited

Legend:

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

    r9e2e715 reb522e8  
    3939#include <fibril.h>
    4040
    41 extern int _errno;
     41#define errno  (*(__errno()))
    4242
    43 #define errno _errno
     43extern int *__errno(void) __attribute__((const));
    4444
    4545#define EMFILE        (-18)
     
    5656#define EMLINK        (-266)
    5757
     58/** Bad checksum. */
     59#define EBADCHECKSUM  (-300)
     60
     61/** USB: stalled operation. */
     62#define ESTALL (-301)
     63
     64/** Empty resource (no data). */
     65#define EEMPTY (-302)
     66
     67/** Negative acknowledgment. */
     68#define ENAK (-303)
     69
    5870/** An API function is called while another blocking function is in progress. */
    59 #define EINPROGRESS     (-10036)
     71#define EINPROGRESS  (-10036)
    6072
    6173/** The socket identifier is not valid. */
    62 #define ENOTSOCK        (-10038)
     74#define ENOTSOCK  (-10038)
    6375
    6476/** The destination address required. */
    65 #define EDESTADDRREQ    (-10039)
     77#define EDESTADDRREQ  (-10039)
    6678
    6779/** Protocol is not supported.  */
    68 #define EPROTONOSUPPORT (-10043)
     80#define EPROTONOSUPPORT  (-10043)
    6981
    7082/** Socket type is not supported. */
    71 #define ESOCKTNOSUPPORT (-10044)
     83#define ESOCKTNOSUPPORT  (-10044)
    7284
    7385/** Protocol family is not supported. */
    74 #define EPFNOSUPPORT    (-10046)
     86#define EPFNOSUPPORT  (-10046)
    7587
    7688/** Address family is not supported. */
    77 #define EAFNOSUPPORT    (-10047)
     89#define EAFNOSUPPORT  (-10047)
    7890
    7991/** Address is already in use. */
    80 #define EADDRINUSE      (-10048)
     92#define EADDRINUSE  (-10048)
    8193
    8294/** The socket is not connected or bound. */
    83 #define ENOTCONN        (-10057)
     95#define ENOTCONN  (-10057)
    8496
    85 /** The requested operation was not performed.
    86  *  Try again later.
    87  */
    88 #define TRY_AGAIN       (-11002)
     97/** The requested operation was not performed. Try again later. */
     98#define EAGAIN  (-11002)
    8999
    90 /** No data.
    91  */
    92 #define NO_DATA         (-11004)
     100/** No data. */
     101#define NO_DATA (-11004)
    93102
    94103#endif
Note: See TracChangeset for help on using the changeset viewer.