PukABI

Documentation

« back to PM2 home.
Puk-ABI-symbols.h File Reference
#include <stdarg.h>
Include dependency graph for Puk-ABI-symbols.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NOPREPROCESSING
 no pre-processing
 
#define NOPOSTPROCESSING
 no post-processing
 
#define ALWAYSREAL   1
 always use the real symbol
 
#define ALWAYSVIRTUAL   0
 always use the virtual symbol
 
#define DEFAULTTOREAL(SYM)   ((PUK_ABI_SYM_DESCNAME(SYM)).ptr_virtual == NULL)
 use virtual if available (i.e.
 
#define DEFAULTTOLIBCREAL(SYM)   (puk_abi_symbol_libcdefault(&PUK_ABI_SYM_DESCNAME(SYM), &__libc_##SYM))
 use virtual if available, real initialized on the fly from libc else
 
#define FOLLOWFD(FD)   (puk_fds_isreal(FD))
 chose virtual/real depending on the given file descriptor
 

Typedefs

typedef int puk_abi_ssize_t
 
typedef unsigned int puk_abi_size_t
 
typedef int puk_abi_intptr_t
 
typedef unsigned int puk_abi_uintptr_t
 
typedef int puk_abi_off_t
 

Functions

static int puk_abi_symbol_libcdefault (struct puk_abi_sym_s *s, void *libc_sym)
 

Macro Definition Documentation

◆ ALWAYSREAL

#define ALWAYSREAL   1

always use the real symbol

Definition at line 63 of file Puk-ABI-symbols.h.

◆ ALWAYSVIRTUAL

#define ALWAYSVIRTUAL   0

always use the virtual symbol

Definition at line 65 of file Puk-ABI-symbols.h.

◆ DEFAULTTOLIBCREAL

#define DEFAULTTOLIBCREAL (   SYM)    (puk_abi_symbol_libcdefault(&PUK_ABI_SYM_DESCNAME(SYM), &__libc_##SYM))

use virtual if available, real initialized on the fly from libc else

Definition at line 69 of file Puk-ABI-symbols.h.

◆ DEFAULTTOREAL

#define DEFAULTTOREAL (   SYM)    ((PUK_ABI_SYM_DESCNAME(SYM)).ptr_virtual == NULL)

use virtual if available (i.e.

non-NULL), real else

Definition at line 67 of file Puk-ABI-symbols.h.

◆ FOLLOWFD

#define FOLLOWFD (   FD)    (puk_fds_isreal(FD))

chose virtual/real depending on the given file descriptor

Definition at line 71 of file Puk-ABI-symbols.h.

◆ NOPOSTPROCESSING

#define NOPOSTPROCESSING

no post-processing

Definition at line 58 of file Puk-ABI-symbols.h.

◆ NOPREPROCESSING

#define NOPREPROCESSING

no pre-processing

Definition at line 57 of file Puk-ABI-symbols.h.

Typedef Documentation

◆ puk_abi_intptr_t

typedef int puk_abi_intptr_t

Definition at line 137 of file Puk-ABI-symbols.h.

◆ puk_abi_off_t

typedef int puk_abi_off_t

Definition at line 157 of file Puk-ABI-symbols.h.

◆ puk_abi_size_t

typedef unsigned int puk_abi_size_t

Definition at line 127 of file Puk-ABI-symbols.h.

◆ puk_abi_ssize_t

typedef int puk_abi_ssize_t

Definition at line 117 of file Puk-ABI-symbols.h.

◆ puk_abi_uintptr_t

typedef unsigned int puk_abi_uintptr_t

Definition at line 147 of file Puk-ABI-symbols.h.

Function Documentation

◆ puk_abi_symbol_libcdefault()

static int puk_abi_symbol_libcdefault ( struct puk_abi_sym_s s,
void *  libc_sym 
)
inlinestatic

Definition at line 44 of file Puk-ABI-symbols.h.

References NULL, puk_abi_sym_s::ptr_real, and puk_abi_sym_s::ptr_virtual.