Back to index

glibc  2.9
Defines
forward.c File Reference
#include <dlfcn.h>
#include "internals.h"
#include <stdlib.h>
#include <shlib-compat.h>

Go to the source code of this file.

Defines

#define FORWARD2(name, rettype, decl, params, defaction)
#define FORWARD(name, decl, params, defretval)   FORWARD2 (name, int, decl, params, return defretval)

Define Documentation

#define FORWARD (   name,
  decl,
  params,
  defretval 
)    FORWARD2 (name, int, decl, params, return defretval)

Definition at line 41 of file forward.c.

#define FORWARD2 (   name,
  rettype,
  decl,
  params,
  defaction 
)
Value:
rettype                                                                     \
name decl                                                            \
{                                                                    \
  if (__libc_pthread_functions.ptr_##name == NULL)                          \
    defaction;                                                              \
                                                                     \
  return __libc_pthread_functions.ptr_##name params;                        \
}

Definition at line 31 of file forward.c.