Go to the source code of this file.
Macros | |
#define | _ARGS_0() |
#define | _ARGS_1(X0) a0 |
#define | _ARGS_2(X0, X1) a0, a1 |
#define | _ARGS_3(X0, X1, X2) a0, a1, a2 |
#define | _ARGS_4(X0, X1, X2, X3) a0, a1, a2, a3 |
#define | _ARGS_5(X0, X1, X2, X3, X4) a0, a1, a2, a3, a4 |
#define | _c99_count1(...) _c99_count2 (__VA_ARGS__,10,9,8,7,6,5,4,3,2,1,0) |
#define | _c99_count2(_, x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, n,...) n |
#define | ARGS(...) CAT (_ARGS_,c99_count (__VA_ARGS__)) (__VA_ARGS__) |
#define | c99_count(...) _c99_count1 (, ## __VA_ARGS__) /* If only ## worked.*/ |
#define | CAT(a,...) PRIMITIVE_CAT (a, __VA_ARGS__) |
#define | DCE(name) GCC_BUILTIN_APPLY (name,name) |
#define | DCE_EXPLICIT(name, rtype,...) |
#define | DCE_WITH_ALIAS(name) |
#define | DCE_WITH_ALIAS2(name, internal) |
#define | DCET(rtype, name) GCC_BUILTIN_APPLYT (rtype,name,name) |
#define | FULL_ARGS(...) CAT (FULL_ARGS_,c99_count (__VA_ARGS__)) (__VA_ARGS__) |
#define | FULL_ARGS_0() |
#define | FULL_ARGS_1(X0) X0 a0 |
#define | FULL_ARGS_2(X0, X1) X0 a0, X1 a1 |
#define | FULL_ARGS_3(X0, X1, X2) X0 a0, X1 a1, X2 a2 |
#define | FULL_ARGS_4(X0, X1, X2, X3) X0 a0, X1 a1, X2 a2, X3 a3 |
#define | FULL_ARGS_5(X0, X1, X2, X3, X4) X0 a0, X1 a1, X2 a2, X3 a3, X4 a4 |
#define | GCC_BUILTIN_APPLY(export_symbol, func_to_call) |
#define | GCC_BUILTIN_APPLYT(rtype, export_symbol, func_to_call) |
#define | NATIVE DCE |
#define | NATIVE_WITH_ALIAS DCE_WITH_ALIAS |
#define | NATIVE_WITH_ALIAS2 DCE_WITH_ALIAS2 |
#define | NATIVET DCET |
#define | PRIMITIVE_CAT(a,...) a ## __VA_ARGS__ |
#define | weak_alias(name, aliasname) extern __typeof (name) aliasname __attribute__ ((weak, alias (# name))) |
Functions | |
void | LIBSETUP (const struct Libc *fn) |
int | snprintf (char *s, size_t si, const char *f,...) |
char * | strpbrk (const char *s, const char *a) |
char * | strstr (const char *u, const char *d) |
int | vsnprintf (char *s, size_t si, const char *f, va_list v) |
Variables | |
struct Libc | g_libc |
#define _c99_count1 | ( | ... | ) | _c99_count2 (__VA_ARGS__,10,9,8,7,6,5,4,3,2,1,0) |
#define _c99_count2 | ( | _, | |
x0, | |||
x1, | |||
x2, | |||
x3, | |||
x4, | |||
x5, | |||
x6, | |||
x7, | |||
x8, | |||
x9, | |||
n, | |||
... | |||
) | n |
#define c99_count | ( | ... | ) | _c99_count1 (, ## __VA_ARGS__) /* If only ## worked.*/ |
#define CAT | ( | a, | |
... | |||
) | PRIMITIVE_CAT (a, __VA_ARGS__) |
#define DCE | ( | name | ) | GCC_BUILTIN_APPLY (name,name) |
#define DCE_EXPLICIT | ( | name, | |
rtype, | |||
... | |||
) |
#define DCE_WITH_ALIAS | ( | name | ) |
#define DCE_WITH_ALIAS2 | ( | name, | |
internal | |||
) |
#define DCET | ( | rtype, | |
name | |||
) | GCC_BUILTIN_APPLYT (rtype,name,name) |
#define FULL_ARGS_4 | ( | X0, | |
X1, | |||
X2, | |||
X3 | |||
) | X0 a0, X1 a1, X2 a2, X3 a3 |
#define FULL_ARGS_5 | ( | X0, | |
X1, | |||
X2, | |||
X3, | |||
X4 | |||
) | X0 a0, X1 a1, X2 a2, X3 a3, X4 a4 |
#define GCC_BUILTIN_APPLY | ( | export_symbol, | |
func_to_call | |||
) |
#define GCC_BUILTIN_APPLYT | ( | rtype, | |
export_symbol, | |||
func_to_call | |||
) |
#define NATIVE_WITH_ALIAS DCE_WITH_ALIAS |
#define NATIVE_WITH_ALIAS2 DCE_WITH_ALIAS2 |
#define weak_alias | ( | name, | |
aliasname | |||
) | extern __typeof (name) aliasname __attribute__ ((weak, alias (# name))) |
void LIBSETUP | ( | const struct Libc * | fn | ) |
Definition at line 148 of file libc.cc.
References g_libc, and setup_global_variables().
int snprintf | ( | char * | s, |
size_t | si, | ||
const char * | f, | ||
... | |||
) |
Definition at line 132 of file libc.cc.
References g_libc, and Libc::vsnprintf_fn.
Referenced by dce_getnameinfo().
char* strpbrk | ( | const char * | s, |
const char * | a | ||
) |
Definition at line 122 of file libc.cc.
References g_libc.
Referenced by dce_strpbrk().
char* strstr | ( | const char * | u, |
const char * | d | ||
) |
Definition at line 127 of file libc.cc.
References g_libc, and Libc::strstr_fn.
Referenced by dce_strstr().
int vsnprintf | ( | char * | s, |
size_t | si, | ||
const char * | f, | ||
va_list | v | ||
) |
Definition at line 141 of file libc.cc.
References g_libc, and Libc::vsnprintf_fn.
Referenced by dce___snprintf_chk(), dce___vsnprintf_chk(), and dce_vsnprintf().
struct Libc g_libc |
Definition at line 4 of file libc.cc.
Referenced by LIBSETUP(), snprintf(), strpbrk(), strstr(), and vsnprintf().