Back to index

glibc  2.9
Defines
sysdep-cancel.h File Reference
#include <sysdep.h>
#include <tls.h>
#include <nptl/pthreadP.h>

Go to the source code of this file.

Defines

#define PSEUDO(name, syscall_name, args)
#define SAVE_OLDTYPE_0   movl %eax, %ecx;
#define SAVE_OLDTYPE_1   SAVE_OLDTYPE_0
#define SAVE_OLDTYPE_2   pushl %eax; cfi_adjust_cfa_offset (4);
#define SAVE_OLDTYPE_3   SAVE_OLDTYPE_2
#define SAVE_OLDTYPE_4   SAVE_OLDTYPE_2
#define SAVE_OLDTYPE_5   SAVE_OLDTYPE_2
#define SAVE_OLDTYPE_6   SAVE_OLDTYPE_2
#define PUSHCARGS_0   /* No arguments to push. */
#define DOCARGS_0   /* No arguments to frob. */
#define POPCARGS_0   /* No arguments to pop. */
#define _PUSHCARGS_0   /* No arguments to push. */
#define _POPCARGS_0   /* No arguments to pop. */
#define PUSHCARGS_1   movl %ebx, %edx; cfi_register (ebx, edx); PUSHCARGS_0
#define DOCARGS_1   _DOARGS_1 (4)
#define POPCARGS_1   POPCARGS_0; movl %edx, %ebx; cfi_restore (ebx);
#define _PUSHCARGS_1
#define _POPCARGS_1
#define PUSHCARGS_2   PUSHCARGS_1
#define DOCARGS_2   _DOARGS_2 (12)
#define POPCARGS_2   POPCARGS_1
#define _PUSHCARGS_2   _PUSHCARGS_1
#define _POPCARGS_2   _POPCARGS_1
#define PUSHCARGS_3   _PUSHCARGS_2
#define DOCARGS_3   _DOARGS_3 (20)
#define POPCARGS_3   _POPCARGS_3
#define _PUSHCARGS_3   _PUSHCARGS_2
#define _POPCARGS_3   _POPCARGS_2
#define PUSHCARGS_4   _PUSHCARGS_4
#define DOCARGS_4   _DOARGS_4 (28)
#define POPCARGS_4   _POPCARGS_4
#define _PUSHCARGS_4
#define _POPCARGS_4
#define PUSHCARGS_5   _PUSHCARGS_5
#define DOCARGS_5   _DOARGS_5 (36)
#define POPCARGS_5   _POPCARGS_5
#define _PUSHCARGS_5
#define _POPCARGS_5
#define PUSHCARGS_6   _PUSHCARGS_6
#define DOCARGS_6   _DOARGS_6 (44)
#define POPCARGS_6   _POPCARGS_6
#define _PUSHCARGS_6
#define _POPCARGS_6
#define CENABLE   call __libc_enable_asynccancel;
#define CDISABLE   call __libc_disable_asynccancel
#define POPSTATE_0
#define POPSTATE_1   POPSTATE_0
#define POPSTATE_2
#define POPSTATE_3   POPSTATE_2
#define POPSTATE_4   POPSTATE_3
#define POPSTATE_5   POPSTATE_4
#define POPSTATE_6   POPSTATE_5
#define SINGLE_THREAD_P
#define RTLD_SINGLE_THREAD_P

Define Documentation

#define _POPCARGS_0   /* No arguments to pop. */

Definition at line 67 of file sysdep-cancel.h.

#define _POPCARGS_1
Value:
_POPCARGS_0; popl %ebx; \
                     cfi_adjust_cfa_offset (-4); cfi_restore (ebx);

Definition at line 74 of file sysdep-cancel.h.

#define _POPCARGS_2   _POPCARGS_1

Definition at line 81 of file sysdep-cancel.h.

#define _POPCARGS_3   _POPCARGS_2

Definition at line 87 of file sysdep-cancel.h.

#define _POPCARGS_4
Value:
_POPCARGS_3; popl %esi; \
                     cfi_adjust_cfa_offset (-4); cfi_restore (esi);

Definition at line 94 of file sysdep-cancel.h.

#define _POPCARGS_5
Value:
_POPCARGS_4; popl %edi; \
                     cfi_adjust_cfa_offset (-4); cfi_restore (edi);

Definition at line 102 of file sysdep-cancel.h.

#define _POPCARGS_6
Value:
_POPCARGS_5; popl %ebp; \
                     cfi_adjust_cfa_offset (-4); cfi_restore (ebp);

Definition at line 110 of file sysdep-cancel.h.

#define _PUSHCARGS_0   /* No arguments to push. */

Definition at line 66 of file sysdep-cancel.h.

#define _PUSHCARGS_1
Value:
pushl %ebx; cfi_adjust_cfa_offset (4); \
                     cfi_rel_offset (ebx, 0); _PUSHCARGS_0

Definition at line 72 of file sysdep-cancel.h.

#define _PUSHCARGS_2   _PUSHCARGS_1

Definition at line 80 of file sysdep-cancel.h.

#define _PUSHCARGS_3   _PUSHCARGS_2

Definition at line 86 of file sysdep-cancel.h.

#define _PUSHCARGS_4
Value:
pushl %esi; cfi_adjust_cfa_offset (4); \
                     cfi_rel_offset (esi, 0); _PUSHCARGS_3

Definition at line 92 of file sysdep-cancel.h.

#define _PUSHCARGS_5
Value:
pushl %edi; cfi_adjust_cfa_offset (4); \
                     cfi_rel_offset (edi, 0); _PUSHCARGS_4

Definition at line 100 of file sysdep-cancel.h.

#define _PUSHCARGS_6
Value:
pushl %ebp; cfi_adjust_cfa_offset (4); \
                     cfi_rel_offset (ebp, 0); _PUSHCARGS_5

Definition at line 108 of file sysdep-cancel.h.

Definition at line 118 of file sysdep-cancel.h.

#define CENABLE   call __libc_enable_asynccancel;

Definition at line 117 of file sysdep-cancel.h.

#define DOCARGS_0   /* No arguments to frob. */

Definition at line 64 of file sysdep-cancel.h.

#define DOCARGS_1   _DOARGS_1 (4)

Definition at line 70 of file sysdep-cancel.h.

#define DOCARGS_2   _DOARGS_2 (12)

Definition at line 78 of file sysdep-cancel.h.

#define DOCARGS_3   _DOARGS_3 (20)

Definition at line 84 of file sysdep-cancel.h.

#define DOCARGS_4   _DOARGS_4 (28)

Definition at line 90 of file sysdep-cancel.h.

#define DOCARGS_5   _DOARGS_5 (36)

Definition at line 98 of file sysdep-cancel.h.

#define DOCARGS_6   _DOARGS_6 (44)

Definition at line 106 of file sysdep-cancel.h.

#define POPCARGS_0   /* No arguments to pop. */

Definition at line 65 of file sysdep-cancel.h.

#define POPCARGS_1   POPCARGS_0; movl %edx, %ebx; cfi_restore (ebx);

Definition at line 71 of file sysdep-cancel.h.

#define POPCARGS_2   POPCARGS_1

Definition at line 79 of file sysdep-cancel.h.

#define POPCARGS_3   _POPCARGS_3

Definition at line 85 of file sysdep-cancel.h.

#define POPCARGS_4   _POPCARGS_4

Definition at line 91 of file sysdep-cancel.h.

#define POPCARGS_5   _POPCARGS_5

Definition at line 99 of file sysdep-cancel.h.

#define POPCARGS_6   _POPCARGS_6

Definition at line 107 of file sysdep-cancel.h.

#define POPSTATE_0
Value:
pushl %eax; cfi_adjust_cfa_offset (4); movl %ecx, %eax; \
 CDISABLE; popl %eax; cfi_adjust_cfa_offset (-4);

Definition at line 125 of file sysdep-cancel.h.

#define POPSTATE_1   POPSTATE_0

Definition at line 128 of file sysdep-cancel.h.

#define POPSTATE_2
Value:
xchgl (%esp), %eax; CDISABLE; popl %eax; \
                     cfi_adjust_cfa_offset (-4);

Definition at line 129 of file sysdep-cancel.h.

#define POPSTATE_3   POPSTATE_2

Definition at line 131 of file sysdep-cancel.h.

#define POPSTATE_4   POPSTATE_3

Definition at line 132 of file sysdep-cancel.h.

#define POPSTATE_5   POPSTATE_4

Definition at line 133 of file sysdep-cancel.h.

#define POPSTATE_6   POPSTATE_5

Definition at line 134 of file sysdep-cancel.h.

#define PSEUDO (   name,
  syscall_name,
  args 
)
Value:
.text;                                                        \
  ENTRY (name)                                                              \
    cmpl $0, %gs:MULTIPLE_THREADS_OFFSET;                            \
    jne L(pseudo_cancel);                                            \
  .type __##syscall_name##_nocancel,@function;                              \
  .globl __##syscall_name##_nocancel;                                       \
  __##syscall_name##_nocancel:                                              \
    DO_CALL (syscall_name, args);                                    \
    cmpl $-4095, %eax;                                                      \
    jae SYSCALL_ERROR_LABEL;                                                \
    ret;                                                             \
  .size __##syscall_name##_nocancel,.-__##syscall_name##_nocancel;          \
  L(pseudo_cancel):                                                  \
    CENABLE                                                          \
    SAVE_OLDTYPE_##args                                                     \
    PUSHCARGS_##args                                                 \
    DOCARGS_##args                                                   \
    movl $SYS_ify (syscall_name), %eax;                                     \
    ENTER_KERNEL;                                                    \
    POPCARGS_##args;                                                 \
    POPSTATE_##args                                                  \
    cmpl $-4095, %eax;                                                      \
    jae SYSCALL_ERROR_LABEL;                                                \
  L(pseudo_end):

Definition at line 29 of file sysdep-cancel.h.

#define PUSHCARGS_0   /* No arguments to push. */

Definition at line 63 of file sysdep-cancel.h.

#define PUSHCARGS_1   movl %ebx, %edx; cfi_register (ebx, edx); PUSHCARGS_0

Definition at line 69 of file sysdep-cancel.h.

#define PUSHCARGS_2   PUSHCARGS_1

Definition at line 77 of file sysdep-cancel.h.

#define PUSHCARGS_3   _PUSHCARGS_2

Definition at line 83 of file sysdep-cancel.h.

#define PUSHCARGS_4   _PUSHCARGS_4

Definition at line 89 of file sysdep-cancel.h.

#define PUSHCARGS_5   _PUSHCARGS_5

Definition at line 97 of file sysdep-cancel.h.

#define PUSHCARGS_6   _PUSHCARGS_6

Definition at line 105 of file sysdep-cancel.h.

Value:
__builtin_expect (THREAD_GETMEM (THREAD_SELF, \
                               header.multiple_threads) == 0, 1)

Definition at line 152 of file sysdep-cancel.h.

#define SAVE_OLDTYPE_0   movl %eax, %ecx;

Definition at line 55 of file sysdep-cancel.h.

Definition at line 56 of file sysdep-cancel.h.

#define SAVE_OLDTYPE_2   pushl %eax; cfi_adjust_cfa_offset (4);

Definition at line 57 of file sysdep-cancel.h.

Definition at line 58 of file sysdep-cancel.h.

Definition at line 59 of file sysdep-cancel.h.

Definition at line 60 of file sysdep-cancel.h.

Definition at line 61 of file sysdep-cancel.h.

#define SINGLE_THREAD_P
Value:
__builtin_expect (THREAD_GETMEM (THREAD_SELF, \
                               header.multiple_threads) == 0, 1)

Definition at line 137 of file sysdep-cancel.h.