home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / D / LIBC / LIBC-4.6 / LIBC-4 / libc-linux / sysdeps / linux / i386 / ____sig.S next >
Encoding:
Text File  |  1994-08-20  |  767 b   |  48 lines

  1. #ifdef __ELF__
  2. #define ____sig_restore ___sig_restore
  3. #define ____masksig_restore ___masksig_restore
  4. #define ___sigsetmask __sigsetmask
  5. #endif
  6.  
  7. .globl ____sig_restore
  8. .globl ____masksig_restore
  9.  
  10. ____sig_restore:
  11.     addl $4,%esp    # signr
  12.     popl %eax
  13.     popl %ecx
  14.     popl %edx
  15.     popfl
  16.     ret
  17.  
  18. ____masksig_restore:
  19. #if defined(__PIC__) || defined(__pic__)
  20.     pushl %ebx
  21.     call L3
  22. L3:
  23.     popl %ebx
  24.     addl $_GLOBAL_OFFSET_TABLE_+[.-L3],%ebx
  25.     addl $8,%esp        # signr
  26.     call ___sigsetmask@PLT    # old blocking
  27.     addl $8,%esp
  28.     popl %ebx
  29.     popl %eax
  30.     popl %ecx
  31.     popl %edx
  32.     popfl
  33. #else
  34.     addl $4,%esp        # signr
  35.     call ___sigsetmask    # old blocking
  36.     addl $4,%esp
  37.     popl %eax
  38.     popl %ecx
  39.     popl %edx
  40.     popfl
  41. #endif
  42.     ret
  43.  
  44. #ifdef __ELF__
  45.     .type ___masksig_restore,@function
  46.     .type ___sig_restore,@function
  47. #endif
  48.