/ errnofun.s (emx+gcc) -- Copyright (c) 1992-1993 by Eberhard Mattes

#if defined (__MT__)

        .globl  __errno_fun

        .text

        .align  2, 0x90

__errno_fun:
        fs
        movl    12, %eax                / ptib2
        movl    0(%eax), %eax           / TID
        movl    __thread_tab(,%eax,4), %eax
/       addl    $0, %eax                / address of errno
        ret

#endif
