Ignore:
File:
1 edited

Legend:

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

    rfde2982c re98b1d5  
    3939#include <fibril.h>
    4040
    41 #define errno  (*(__errno()))
     41extern int _errno;
    4242
    43 extern int *__errno(void) __attribute__((const));
     43#define errno _errno
    4444
    4545#define EMFILE        (-18)
     
    5757
    5858/** An API function is called while another blocking function is in progress. */
    59 #define EINPROGRESS  (-10036)
     59#define EINPROGRESS     (-10036)
    6060
    6161/** The socket identifier is not valid. */
    62 #define ENOTSOCK  (-10038)
     62#define ENOTSOCK        (-10038)
    6363
    6464/** The destination address required. */
    65 #define EDESTADDRREQ  (-10039)
     65#define EDESTADDRREQ    (-10039)
    6666
    6767/** Protocol is not supported.  */
    68 #define EPROTONOSUPPORT  (-10043)
     68#define EPROTONOSUPPORT (-10043)
    6969
    7070/** Socket type is not supported. */
    71 #define ESOCKTNOSUPPORT  (-10044)
     71#define ESOCKTNOSUPPORT (-10044)
    7272
    7373/** Protocol family is not supported. */
    74 #define EPFNOSUPPORT  (-10046)
     74#define EPFNOSUPPORT    (-10046)
    7575
    7676/** Address family is not supported. */
    77 #define EAFNOSUPPORT  (-10047)
     77#define EAFNOSUPPORT    (-10047)
    7878
    7979/** Address is already in use. */
    80 #define EADDRINUSE  (-10048)
     80#define EADDRINUSE      (-10048)
    8181
    8282/** The socket is not connected or bound. */
    83 #define ENOTCONN  (-10057)
     83#define ENOTCONN        (-10057)
    8484
    85 /** The requested operation was not performed. Try again later. */
    86 #define EAGAIN  (-11002)
     85/** The requested operation was not performed.
     86 *  Try again later.
     87 */
     88#define TRY_AGAIN       (-11002)
    8789
    88 /** No data. */
    89 #define NO_DATA (-11004)
     90/** No data.
     91 */
     92#define NO_DATA         (-11004)
    9093
    9194#endif
Note: See TracChangeset for help on using the changeset viewer.