Back to index

glibc  2.9
Defines
setxid.h File Reference
#include <pthreadP.h>
#include <sysdep.h>

Go to the source code of this file.

Defines

#define __SETXID_1(cmd, arg1)   cmd.id[0] = arg1
#define __SETXID_2(cmd, arg1, arg2)   __SETXID_1 (cmd, arg1); cmd.id[1] = arg2
#define __SETXID_3(cmd, arg1, arg2, arg3)   __SETXID_2 (cmd, arg1, arg2); cmd.id[2] = arg3
#define INLINE_SETXID_SYSCALL(name, nr, args...)

Define Documentation

#define __SETXID_1 (   cmd,
  arg1 
)    cmd.id[0] = arg1

Definition at line 22 of file setxid.h.

#define __SETXID_2 (   cmd,
  arg1,
  arg2 
)    __SETXID_1 (cmd, arg1); cmd.id[1] = arg2

Definition at line 24 of file setxid.h.

#define __SETXID_3 (   cmd,
  arg1,
  arg2,
  arg3 
)    __SETXID_2 (cmd, arg1, arg2); cmd.id[2] = arg3

Definition at line 26 of file setxid.h.

#define INLINE_SETXID_SYSCALL (   name,
  nr,
  args... 
)
Value:
({                                                             \
    extern __typeof (__nptl_setxid) __nptl_setxid __attribute__((weak));\
    int __result;                                              \
    if (__builtin_expect (__nptl_setxid   != NULL, 0))                \
      {                                                               \
       struct xid_command __cmd;                               \
       __cmd.syscall_no = __NR_##name;                                \
       __SETXID_##nr (__cmd, args);                                   \
       __result =__nptl_setxid (&__cmd);                       \
      }                                                               \
    else                                                       \
      __result = INLINE_SYSCALL (name, nr, args);                     \
    __result;                                                  \
   })

Definition at line 48 of file setxid.h.