home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / MT / ERRNOFUN.S < prev    next >
Encoding:
Text File  |  1993-01-02  |  387 b   |  16 lines

  1. / errnofun.s (emx+gcc) -- Copyright (c) 1992-1993 by Eberhard Mattes
  2.  
  3.         .globl  __errno_fun
  4.  
  5.         .text
  6.  
  7.         .align  2, 0x90
  8.  
  9. __errno_fun:
  10.         fs
  11.         movl    12, %eax                / ptib2
  12.         movl    0(%eax), %eax           / TID
  13.         movl    __thread_tab(,%eax,4), %eax
  14. /       addl    $0, %eax                / address of errno
  15.         ret
  16.