DMTCP
|
#include "dmtcpworker.h"
#include "threadsync.h"
#include "protectedfds.h"
#include "constants.h"
#include "syscallwrappers.h"
#include "../jalib/jassert.h"
#include "../jalib/jconvert.h"
#include "processinfo.h"
#include <sys/syscall.h>
Go to the source code of this file.
Macros | |
#define | SYSCALL_VA_START() |
#define | SYSCALL_VA_END() va_end(ap) |
#define | SYSCALL_GET_ARG(type, arg) type arg = va_arg(ap, type) |
#define | SYSCALL_GET_ARGS_2(type1, arg1, type2, arg2) |
#define | SYSCALL_GET_ARGS_3(type1, arg1, type2, arg2, type3, arg3) |
#define | SYSCALL_GET_ARGS_4(type1, arg1, type2, arg2, type3, arg3, type4, arg4) |
#define | SYSCALL_GET_ARGS_5(type1, arg1, type2, arg2, type3, arg3, type4, arg4, type5, arg5) |
#define | SYSCALL_GET_ARGS_6(type1, arg1, type2, arg2, type3, arg3, type4, arg4, type5, arg5, type6, arg6) |
#define | SYSCALL_GET_ARGS_7(type1, arg1, type2, arg2, type3, arg3, type4, arg4, type5, arg5, type6, arg6, type7, arg7) |
Functions | |
EXTERNC int | dmtcp_is_popen_fp (FILE *fp) __attribute((weak)) |
void | exit (int status) |
int | close (int fd) |
int | fclose (FILE *fp) |
int | closedir (DIR *dir) |
int | pipe (int fds[2]) |
pid_t | wait (__WAIT_STATUS stat_loc) |
pid_t | waitpid (pid_t pid, int *stat_loc, int options) |
pid_t | wait3 (__WAIT_STATUS status, int options, struct rusage *rusage) |
pid_t | wait4 (pid_t pid, __WAIT_STATUS status, int options, struct rusage *rusage) |
int | waitid (idtype_t idtype, id_t id, siginfo_t *infop, int options) |
int | __clone (int(*fn)(void *arg), void *child_stack, int flags, void *arg, int *parent_tidptr, struct user_desc *newtls, int *child_tidptr) |
long | syscall (long sys_num,...) |
int | pthread_cond_broadcast (pthread_cond_t *cond) |
int | pthread_cond_destroy (pthread_cond_t *cond) |
int | pthread_cond_init (pthread_cond_t *cond, const pthread_condattr_t *attr) |
int | pthread_cond_signal (pthread_cond_t *cond) |
int | pthread_cond_timedwait (pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime) |
int | pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex) |
int | pthread_mutex_lock (pthread_mutex_t *mutex) |
int | pthread_mutex_unlock (pthread_mutex_t *mutex) |
#define SYSCALL_GET_ARG | ( | type, | |
arg | |||
) | type arg = va_arg(ap, type) |
Definition at line 235 of file miscwrappers.cpp.
#define SYSCALL_GET_ARGS_2 | ( | type1, | |
arg1, | |||
type2, | |||
arg2 | |||
) |
Definition at line 237 of file miscwrappers.cpp.
#define SYSCALL_GET_ARGS_3 | ( | type1, | |
arg1, | |||
type2, | |||
arg2, | |||
type3, | |||
arg3 | |||
) |
Definition at line 241 of file miscwrappers.cpp.
#define SYSCALL_GET_ARGS_4 | ( | type1, | |
arg1, | |||
type2, | |||
arg2, | |||
type3, | |||
arg3, | |||
type4, | |||
arg4 | |||
) |
Definition at line 245 of file miscwrappers.cpp.
#define SYSCALL_GET_ARGS_5 | ( | type1, | |
arg1, | |||
type2, | |||
arg2, | |||
type3, | |||
arg3, | |||
type4, | |||
arg4, | |||
type5, | |||
arg5 | |||
) |
Definition at line 249 of file miscwrappers.cpp.
#define SYSCALL_GET_ARGS_6 | ( | type1, | |
arg1, | |||
type2, | |||
arg2, | |||
type3, | |||
arg3, | |||
type4, | |||
arg4, | |||
type5, | |||
arg5, | |||
type6, | |||
arg6 | |||
) |
Definition at line 254 of file miscwrappers.cpp.
#define SYSCALL_GET_ARGS_7 | ( | type1, | |
arg1, | |||
type2, | |||
arg2, | |||
type3, | |||
arg3, | |||
type4, | |||
arg4, | |||
type5, | |||
arg5, | |||
type6, | |||
arg6, | |||
type7, | |||
arg7 | |||
) |
Definition at line 260 of file miscwrappers.cpp.
#define SYSCALL_VA_END | ( | ) | va_end(ap) |
Definition at line 232 of file miscwrappers.cpp.
#define SYSCALL_VA_START | ( | ) |
Definition at line 228 of file miscwrappers.cpp.
int __clone | ( | int(*)(void *arg) | fn, |
void * | child_stack, | ||
int | flags, | ||
void * | arg, | ||
int * | parent_tidptr, | ||
struct user_desc * | newtls, | ||
int * | child_tidptr | ||
) |
Definition at line 117 of file pid_miscwrappers.cpp.
int close | ( | int | fd) |
Definition at line 79 of file miscwrappers.cpp.
int closedir | ( | DIR * | dir) |
Definition at line 104 of file miscwrappers.cpp.
void exit | ( | int | status) |
Definition at line 67 of file miscwrappers.cpp.
int fclose | ( | FILE * | fp) |
Definition at line 89 of file miscwrappers.cpp.
int pipe | ( | int | fds[2]) |
Definition at line 125 of file miscwrappers.cpp.
int pthread_cond_broadcast | ( | pthread_cond_t * | cond) |
Definition at line 557 of file miscwrappers.cpp.
int pthread_cond_destroy | ( | pthread_cond_t * | cond) |
Definition at line 563 of file miscwrappers.cpp.
int pthread_cond_init | ( | pthread_cond_t * | cond, |
const pthread_condattr_t * | attr | ||
) |
Definition at line 569 of file miscwrappers.cpp.
int pthread_cond_signal | ( | pthread_cond_t * | cond) |
Definition at line 575 of file miscwrappers.cpp.
int pthread_cond_timedwait | ( | pthread_cond_t * | cond, |
pthread_mutex_t * | mutex, | ||
const struct timespec * | abstime | ||
) |
Definition at line 581 of file miscwrappers.cpp.
int pthread_cond_wait | ( | pthread_cond_t * | cond, |
pthread_mutex_t * | mutex | ||
) |
Definition at line 588 of file miscwrappers.cpp.
int pthread_mutex_lock | ( | pthread_mutex_t * | mutex) |
Definition at line 595 of file miscwrappers.cpp.
int pthread_mutex_unlock | ( | pthread_mutex_t * | mutex) |
Definition at line 601 of file miscwrappers.cpp.
long syscall | ( | long | sys_num, |
... | |||
) |
Definition at line 280 of file miscwrappers.cpp.
pid_t wait | ( | __WAIT_STATUS | stat_loc) |
Definition at line 169 of file miscwrappers.cpp.
pid_t wait3 | ( | __WAIT_STATUS | status, |
int | options, | ||
struct rusage * | rusage | ||
) |
Definition at line 179 of file miscwrappers.cpp.
pid_t wait4 | ( | pid_t | pid, |
__WAIT_STATUS | status, | ||
int | options, | ||
struct rusage * | rusage | ||
) |
Definition at line 185 of file miscwrappers.cpp.
int waitid | ( | idtype_t | idtype, |
id_t | id, | ||
siginfo_t * | infop, | ||
int | options | ||
) |
Definition at line 206 of file miscwrappers.cpp.
pid_t waitpid | ( | pid_t | pid, |
int * | stat_loc, | ||
int | options | ||
) |
Definition at line 174 of file miscwrappers.cpp.