Back to index

glibc  2.9
Defines | Variables
sysdep-cancel.h File Reference
#include <sysdep.h>
#include <tls.h>
#include <pt-machine.h>
#include <linuxthreads/internals.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 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 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 __local_multiple_threads   __libc_multiple_threads
#define SINGLE_THREAD_P   __builtin_expect (__local_multiple_threads == 0, 1)

Variables

int __local_multiple_threads attribute_hidden

Define Documentation

#define __local_multiple_threads   __libc_multiple_threads

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

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

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

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

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

#define _POPCARGS_2   _POPCARGS_1

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

#define _POPCARGS_3   _POPCARGS_2

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

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

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

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

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

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

Definition at line 62 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 68 of file sysdep-cancel.h.

#define _PUSHCARGS_2   _PUSHCARGS_1

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

#define _PUSHCARGS_3   _PUSHCARGS_2

Definition at line 82 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 88 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 96 of file sysdep-cancel.h.

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

#define CENABLE   call __libc_enable_asynccancel;

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

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

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

#define DOCARGS_1   _DOARGS_1 (4)

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

#define DOCARGS_2   _DOARGS_2 (12)

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

#define DOCARGS_3   _DOARGS_3 (20)

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

#define DOCARGS_4   _DOARGS_4 (28)

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

#define DOCARGS_5   _DOARGS_5 (36)

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

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

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

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

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

#define POPCARGS_2   POPCARGS_1

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

#define POPCARGS_3   _POPCARGS_3

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

#define POPCARGS_4   _POPCARGS_4

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

#define POPCARGS_5   _POPCARGS_5

Definition at line 95 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 124 of file sysdep-cancel.h.

#define POPSTATE_1   POPSTATE_0

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

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

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

#define POPSTATE_3   POPSTATE_2

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

#define POPSTATE_4   POPSTATE_3

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

#define POPSTATE_5   POPSTATE_4

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

#define PSEUDO (   name,
  syscall_name,
  args 
)
Value:
.text;                                                        \
  ENTRY (name)                                                              \
    SINGLE_THREAD_P;                                                 \
    jne L(pseudo_cancel);                                            \
    DO_CALL (syscall_name, args);                                    \
    cmpl $-4095, %eax;                                                      \
    jae SYSCALL_ERROR_LABEL;                                                \
    ret;                                                             \
  L(pseudo_cancel):                                                  \
    CENABLE                                                          \
    SAVE_OLDTYPE_##args                                                     \
    PUSHCARGS_##args                                                 \
    DOCARGS_##args                                                   \
    movl $SYS_ify (syscall_name), %eax;                                     \
    int $0x80                                                        \
    POPCARGS_##args;                                                 \
    POPSTATE_##args                                                  \
    cmpl $-4095, %eax;                                                      \
    jae SYSCALL_ERROR_LABEL;                                                \
  L(pseudo_end):

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

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

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

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

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

#define PUSHCARGS_2   PUSHCARGS_1

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

#define PUSHCARGS_3   _PUSHCARGS_2

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

#define PUSHCARGS_4   _PUSHCARGS_4

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

#define PUSHCARGS_5   _PUSHCARGS_5

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

#define SAVE_OLDTYPE_0   movl %eax, %ecx;

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

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

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

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

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

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

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

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


Variable Documentation

Definition at line 25 of file init-first.c.