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


Ignore:
Timestamp:
2011-04-21T14:14:47Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d161715
Parents:
a7dbd49
Message:

use thread/fibril-safe errno

File:
1 edited

Legend:

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

    ra7dbd49 rfde2982c  
    3939#include <fibril.h>
    4040
    41 #define errno _errno
     41#define errno  (*(__errno()))
    4242
    43 extern int _errno;
     43extern int *__errno(void) __attribute__((const));
    4444
    4545#define EMFILE        (-18)
Note: See TracChangeset for help on using the changeset viewer.