Back to index

glibc  2.9
Defines
sysdep.h File Reference
#include <sysdeps/unix/mips/mips64/n64/sysdep.h>
#include <tls.h>

Go to the source code of this file.

Defines

#define SYS_ify(syscall_name)   __NR_syscall_name
#define INLINE_SYSCALL(name, nr, args...)
#define INTERNAL_SYSCALL_DECL(err)   long err
#define INTERNAL_SYSCALL_ERROR_P(val, err)   ((long) (err))
#define INTERNAL_SYSCALL_ERRNO(val, err)   (val)
#define INTERNAL_SYSCALL(name, err, nr, args...)
#define INTERNAL_SYSCALL_NCS(number, err, nr, args...)   internal_syscall##nr (= number, , "r" (__v0), err, args)
#define internal_syscall0(ncs_init, cs_init, input, err, dummy...)
#define internal_syscall1(ncs_init, cs_init, input, err, arg1)
#define internal_syscall2(ncs_init, cs_init, input, err, arg1, arg2)
#define internal_syscall3(ncs_init, cs_init, input, err, arg1, arg2, arg3)
#define internal_syscall4(ncs_init, cs_init, input, err, arg1, arg2, arg3, arg4)
#define internal_syscall5(ncs_init, cs_init, input, err, arg1, arg2, arg3, arg4, arg5)
#define internal_syscall6(ncs_init, cs_init, input, err, arg1, arg2, arg3, arg4, arg5, arg6)
#define __SYSCALL_CLOBBERS
#define PTR_MANGLE(var)   (void) (var)
#define PTR_DEMANGLE(var)   (void) (var)

Define Documentation

Value:
"$1", "$3", "$10", "$11", "$12", "$13", \
       "$14", "$15", "$24", "$25", "memory"

Definition at line 246 of file sysdep.h.

#define INLINE_SYSCALL (   name,
  nr,
  args... 
)
Value:
({ INTERNAL_SYSCALL_DECL(err);                                 \
     long result_var = INTERNAL_SYSCALL (name, err, nr, args);        \
     if ( INTERNAL_SYSCALL_ERROR_P (result_var, err) )                \
       {                                                                \
         __set_errno (INTERNAL_SYSCALL_ERRNO (result_var, err));             \
         result_var = -1L;                                            \
       }                                                                \
     result_var; })

Definition at line 52 of file sysdep.h.

#define INTERNAL_SYSCALL (   name,
  err,
  nr,
  args... 
)
Value:
internal_syscall##nr (, "li\t$2, %2\t\t\t# " #name "\n\t",     \
                           "i" (SYS_ify (name)), err, args)

Definition at line 72 of file sysdep.h.

#define internal_syscall0 (   ncs_init,
  cs_init,
  input,
  err,
  dummy... 
)
Value:
({                                                             \
       long _sys_result;                                       \
                                                               \
       {                                                       \
       register long __v0 asm("$2") ncs_init;                         \
       register long __a3 asm("$7");                                  \
       __asm__ volatile (                                      \
       ".set\tnoreorder\n\t"                                          \
       cs_init                                                        \
       "syscall\n\t"                                                  \
       ".set reorder"                                                 \
       : "=r" (__v0), "=r" (__a3)                              \
       : input                                                        \
       : __SYSCALL_CLOBBERS);                                         \
       err = __a3;                                             \
       _sys_result = __v0;                                     \
       }                                                       \
       _sys_result;                                            \
})

Definition at line 80 of file sysdep.h.

#define internal_syscall1 (   ncs_init,
  cs_init,
  input,
  err,
  arg1 
)
Value:
({                                                             \
       long _sys_result;                                       \
                                                               \
       {                                                       \
       register long __v0 asm("$2") ncs_init;                         \
       register long __a0 asm("$4") = (long) arg1;                    \
       register long __a3 asm("$7");                                  \
       __asm__ volatile (                                      \
       ".set\tnoreorder\n\t"                                          \
       cs_init                                                        \
       "syscall\n\t"                                                  \
       ".set reorder"                                                 \
       : "=r" (__v0), "=r" (__a3)                              \
       : input, "r" (__a0)                                     \
       : __SYSCALL_CLOBBERS);                                         \
       err = __a3;                                             \
       _sys_result = __v0;                                     \
       }                                                       \
       _sys_result;                                            \
})

Definition at line 101 of file sysdep.h.

#define internal_syscall2 (   ncs_init,
  cs_init,
  input,
  err,
  arg1,
  arg2 
)
Value:
({                                                             \
       long _sys_result;                                       \
                                                               \
       {                                                       \
       register long __v0 asm("$2") ncs_init;                         \
       register long __a0 asm("$4") = (long) arg1;                    \
       register long __a1 asm("$5") = (long) arg2;                    \
       register long __a3 asm("$7");                                  \
       __asm__ volatile (                                      \
       ".set\tnoreorder\n\t"                                          \
       cs_init                                                        \
       "syscall\n\t"                                                  \
       ".set\treorder"                                         \
       : "=r" (__v0), "=r" (__a3)                              \
       : input, "r" (__a0), "r" (__a1)                                \
       : __SYSCALL_CLOBBERS);                                         \
       err = __a3;                                             \
       _sys_result = __v0;                                     \
       }                                                       \
       _sys_result;                                            \
})

Definition at line 123 of file sysdep.h.

#define internal_syscall3 (   ncs_init,
  cs_init,
  input,
  err,
  arg1,
  arg2,
  arg3 
)
Value:
({                                                             \
       long _sys_result;                                       \
                                                               \
       {                                                       \
       register long __v0 asm("$2") ncs_init;                         \
       register long __a0 asm("$4") = (long) arg1;                    \
       register long __a1 asm("$5") = (long) arg2;                    \
       register long __a2 asm("$6") = (long) arg3;                    \
       register long __a3 asm("$7");                                  \
       __asm__ volatile (                                      \
       ".set\tnoreorder\n\t"                                          \
       cs_init                                                        \
       "syscall\n\t"                                                  \
       ".set\treorder"                                         \
       : "=r" (__v0), "=r" (__a3)                              \
       : input, "r" (__a0), "r" (__a1), "r" (__a2)                    \
       : __SYSCALL_CLOBBERS);                                         \
       err = __a3;                                             \
       _sys_result = __v0;                                     \
       }                                                       \
       _sys_result;                                            \
})

Definition at line 146 of file sysdep.h.

#define internal_syscall4 (   ncs_init,
  cs_init,
  input,
  err,
  arg1,
  arg2,
  arg3,
  arg4 
)
Value:
({                                                             \
       long _sys_result;                                       \
                                                               \
       {                                                       \
       register long __v0 asm("$2") ncs_init;                         \
       register long __a0 asm("$4") = (long) arg1;                    \
       register long __a1 asm("$5") = (long) arg2;                    \
       register long __a2 asm("$6") = (long) arg3;                    \
       register long __a3 asm("$7") = (long) arg4;                    \
       __asm__ volatile (                                      \
       ".set\tnoreorder\n\t"                                          \
       cs_init                                                        \
       "syscall\n\t"                                                  \
       ".set\treorder"                                         \
       : "=r" (__v0), "+r" (__a3)                              \
       : input, "r" (__a0), "r" (__a1), "r" (__a2)                    \
       : __SYSCALL_CLOBBERS);                                         \
       err = __a3;                                             \
       _sys_result = __v0;                                     \
       }                                                       \
       _sys_result;                                            \
})

Definition at line 170 of file sysdep.h.

#define internal_syscall5 (   ncs_init,
  cs_init,
  input,
  err,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5 
)
Value:
({                                                             \
       long _sys_result;                                       \
                                                               \
       {                                                       \
       register long __v0 asm("$2") ncs_init;                         \
       register long __a0 asm("$4") = (long) arg1;                    \
       register long __a1 asm("$5") = (long) arg2;                    \
       register long __a2 asm("$6") = (long) arg3;                    \
       register long __a3 asm("$7") = (long) arg4;                    \
       register long __a4 asm("$8") = (long) arg5;                    \
       __asm__ volatile (                                      \
       ".set\tnoreorder\n\t"                                          \
       cs_init                                                        \
       "syscall\n\t"                                                  \
       ".set\treorder"                                         \
       : "=r" (__v0), "+r" (__a3)                              \
       : input, "r" (__a0), "r" (__a1), "r" (__a2), "r" (__a4)        \
       : __SYSCALL_CLOBBERS);                                         \
       err = __a3;                                             \
       _sys_result = __v0;                                     \
       }                                                       \
       _sys_result;                                            \
})

Definition at line 194 of file sysdep.h.

#define internal_syscall6 (   ncs_init,
  cs_init,
  input,
  err,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6 
)
Value:
({                                                             \
       long _sys_result;                                       \
                                                               \
       {                                                       \
       register long __v0 asm("$2") ncs_init;                         \
       register long __a0 asm("$4") = (long) arg1;                    \
       register long __a1 asm("$5") = (long) arg2;                    \
       register long __a2 asm("$6") = (long) arg3;                    \
       register long __a3 asm("$7") = (long) arg4;                    \
       register long __a4 asm("$8") = (long) arg5;                    \
       register long __a5 asm("$9") = (long) arg6;                    \
       __asm__ volatile (                                      \
       ".set\tnoreorder\n\t"                                          \
       cs_init                                                        \
       "syscall\n\t"                                                  \
       ".set\treorder"                                         \
       : "=r" (__v0), "+r" (__a3)                              \
       : input, "r" (__a0), "r" (__a1), "r" (__a2), "r" (__a4),       \
         "r" (__a5)                                            \
       : __SYSCALL_CLOBBERS);                                         \
       err = __a3;                                             \
       _sys_result = __v0;                                     \
       }                                                       \
       _sys_result;                                            \
})

Definition at line 219 of file sysdep.h.

#define INTERNAL_SYSCALL_DECL (   err)    long err

Definition at line 63 of file sysdep.h.

#define INTERNAL_SYSCALL_ERRNO (   val,
  err 
)    (val)

Definition at line 69 of file sysdep.h.

#define INTERNAL_SYSCALL_ERROR_P (   val,
  err 
)    ((long) (err))

Definition at line 66 of file sysdep.h.

#define INTERNAL_SYSCALL_NCS (   number,
  err,
  nr,
  args... 
)    internal_syscall##nr (= number, , "r" (__v0), err, args)

Definition at line 77 of file sysdep.h.

#define PTR_DEMANGLE (   var)    (void) (var)

Definition at line 252 of file sysdep.h.

#define PTR_MANGLE (   var)    (void) (var)

Definition at line 251 of file sysdep.h.

#define SYS_ify (   syscall_name)    __NR_syscall_name

Definition at line 36 of file sysdep.h.