Back to index

glibc  2.9
Defines | Variables
sysdep-cancel.h File Reference
#include <sysdep.h>
#include <linuxthreads/internals.h>

Go to the source code of this file.

Defines

#define PSEUDO(name, syscall_name, args)
#define DOCARGS_0   move.l %d2, -(%sp);
#define _DOCARGS_0(n)
#define UNDOCARGS_0   move.l (%sp)+, %d2;
#define DOCARGS_1   _DOCARGS_1 (4); DOCARGS_0
#define _DOCARGS_1(n)   move.l n(%sp), %d1; _DOARGS_0 (n)
#define UNDOCARGS_1   UNDOCARGS_0
#define DOCARGS_2   _DOCARGS_2 (8)
#define _DOCARGS_2(n)
#define UNDOCARGS_2   UNDOCARGS_1
#define DOCARGS_3   _DOCARGS_3 (12)
#define _DOCARGS_3(n)
#define UNDOCARGS_3   UNDOCARGS_2; move.l (%sp)+, %d3;
#define DOCARGS_4   _DOCARGS_4 (16)
#define _DOCARGS_4(n)
#define UNDOCARGS_4   UNDOCARGS_3; move.l (%sp)+, %d4;
#define DOCARGS_5   _DOCARGS_5 (20)
#define _DOCARGS_5(n)
#define UNDOCARGS_5   UNDOCARGS_4; move.l (%sp)+, %d5;
#define CENABLE   jbsr __libc_enable_asynccancel
#define CDISABLE   jbsr __libc_disable_asynccancel
#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 106 of file sysdep-cancel.h.

#define _DOCARGS_0 (   n)

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

#define _DOCARGS_1 (   n)    move.l n(%sp), %d1; _DOARGS_0 (n)

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

#define _DOCARGS_2 (   n)
Value:
move.l %d2, -(%sp); move.l n+4(%sp), %d2; \
                     _DOCARGS_1 (n)

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

#define _DOCARGS_3 (   n)
Value:
move.l %d3, -(%sp); move.l n+4(%sp), %d3; \
                     _DOCARGS_2 (n)

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

#define _DOCARGS_4 (   n)
Value:
move.l %d4, -(%sp); move.l n+4(%sp), %d4; \
                     _DOCARGS_3 (n)

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

#define _DOCARGS_5 (   n)
Value:
move.l %d5, -(%sp); move.l n+4(%sp), %d5; \
                     _DOCARGS_4 (n)

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

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

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

#define DOCARGS_0   move.l %d2, -(%sp);

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

#define DOCARGS_1   _DOCARGS_1 (4); DOCARGS_0

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

#define DOCARGS_2   _DOCARGS_2 (8)

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

#define DOCARGS_3   _DOCARGS_3 (12)

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

#define DOCARGS_4   _DOCARGS_4 (16)

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

#define DOCARGS_5   _DOCARGS_5 (20)

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

#define PSEUDO (   name,
  syscall_name,
  args 
)
Value:
.text;                                                        \
  ENTRY (name)                                                              \
    SINGLE_THREAD_P (%a0);                                           \
    jne .Lpseudo_cancel;                                             \
    DO_CALL (syscall_name, args);                                    \
    cmp.l &-4095, %d0;                                                      \
    jcc SYSCALL_ERROR_LABEL;                                                \
    rts;                                                             \
  .Lpseudo_cancel:                                                   \
    CENABLE;                                                         \
    DOCARGS_##args                                                   \
    move.l %d0, -(%sp);                                                     \
    move.l &SYS_ify (syscall_name), %d0;                             \
    trap &0;                                                         \
    move.l %d0, %d2;                                                 \
    CDISABLE;                                                        \
    addq.l &4, %sp;                                                  \
    move.l %d2, %d0;                                                 \
    UNDOCARGS_##args                                                 \
    cmp.l &-4095, %d0;                                                      \
    jcc SYSCALL_ERROR_LABEL

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

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

#define UNDOCARGS_0   move.l (%sp)+, %d2;

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

#define UNDOCARGS_1   UNDOCARGS_0

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

#define UNDOCARGS_2   UNDOCARGS_1

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

#define UNDOCARGS_3   UNDOCARGS_2; move.l (%sp)+, %d3;

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

#define UNDOCARGS_4   UNDOCARGS_3; move.l (%sp)+, %d4;

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

#define UNDOCARGS_5   UNDOCARGS_4; move.l (%sp)+, %d5;

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


Variable Documentation

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