#include "ldt.h"
#include "protectedfds.h"
#include "mtcp_header.h"
Go to the source code of this file.
#define ASSERT |
( |
|
condition) | |
|
Value:do { \
if (! (condition)) { \
PRINTF("Assertion failed: %s\n", #condition); \
_exit(0); \
} \
} while (0);
Definition at line 66 of file restore_libc.h.
#define ASSERT_NOT_REACHED |
( |
) | |
|
Value:do { \
PRINTF("NOT_REACHED Assertion failed.\n"); \
_exit(0); \
} while (0);
Definition at line 74 of file restore_libc.h.
#define CLEAN_FOR_64_BIT |
( |
|
args...) | |
"CLEAN_FOR_64_BIT_undefined" |
#define DPRINTF |
( |
|
args...) | |
|
#define PRINTF |
( |
|
fmt, |
|
|
|
... |
|
) |
| |
Value:do { \
\
\
char buf[256]; \
int c = snprintf(buf, sizeof(buf) - 1, "[%d] %s:%d in %s; REASON= " fmt, \
getpid(), __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__); \
if (c == sizeof(buf) - 1) buf[c] = '\n'; \
\
rc = write(PROTECTED_STDERR_FD, buf, c + 1); \
} while (0);
Definition at line 47 of file restore_libc.h.
void Thread_RestoreAllThreads |
( |
void |
) | |
|
int TLSInfo_GetPidOffset |
( |
) | |
|
void* TLSInfo_GetThreadSysinfo |
( |
) | |
|
int TLSInfo_GetTidOffset |
( |
) | |
|
int TLSInfo_HaveThreadSysinfoOffset |
( |
) | |
|
void TLSInfo_PostRestart |
( |
) | |
|
void TLSInfo_SetThreadSysinfo |
( |
void * |
sysinfo) | |
|
void TLSInfo_UpdatePid |
( |
) | |
|
void TLSInfo_VerifyPidTid |
( |
pid_t |
pid, |
|
|
pid_t |
tid |
|
) |
| |