DMTCP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
execwrappers.cpp File Reference
#include <sys/syscall.h>
#include "constants.h"
#include "uniquepid.h"
#include "dmtcpworker.h"
#include "processinfo.h"
#include "syscallwrappers.h"
#include "syslogwrappers.h"
#include "util.h"
#include "coordinatorapi.h"
#include "mtcpinterface.h"
#include "shareddata.h"
#include "threadsync.h"
#include "../jalib/jconvert.h"
#include "../jalib/jassert.h"
#include "../jalib/jfilesystem.h"

Go to the source code of this file.

Macros

#define INITIAL_ARGV_MAX   32
 
#define ourImportantEnvsCnt   ((sizeof(ourImportantEnvs))/(sizeof(const char*)))
 

Functions

LIB_PRIVATE void pthread_atfork_prepare ()
 
LIB_PRIVATE void pthread_atfork_parent ()
 
LIB_PRIVATE void pthread_atfork_child ()
 
pid_t fork ()
 
pid_t vfork ()
 
int execve (const char *filename, char *const argv[], char *const envp[])
 
int execv (const char *path, char *const argv[])
 
int execvp (const char *filename, char *const argv[])
 
int execvpe (const char *filename, char *const argv[], char *const envp[])
 
int fexecve (int fd, char *const argv[], char *const envp[])
 
int execl (const char *path, const char *arg,...)
 
int execlp (const char *file, const char *arg,...)
 
int execle (const char *path, const char *arg,...)
 
int do_system (const char *line)
 
int system (const char *line)
 

Macro Definition Documentation

#define INITIAL_ARGV_MAX   32

Definition at line 46 of file execwrappers.cpp.

#define ourImportantEnvsCnt   ((sizeof(ourImportantEnvs))/(sizeof(const char*)))

Definition at line 431 of file execwrappers.cpp.

Function Documentation

int do_system ( const char *  line)
int execl ( const char *  path,
const char *  arg,
  ... 
)

Definition at line 610 of file execwrappers.cpp.

int execle ( const char *  path,
const char *  arg,
  ... 
)

Definition at line 700 of file execwrappers.cpp.

int execlp ( const char *  file,
const char *  arg,
  ... 
)

Definition at line 655 of file execwrappers.cpp.

int execv ( const char *  path,
char *const  argv[] 
)

Definition at line 531 of file execwrappers.cpp.

int execve ( const char *  filename,
char *const  argv[],
char *const  envp[] 
)

Definition at line 499 of file execwrappers.cpp.

int execvp ( const char *  filename,
char *const  argv[] 
)

Definition at line 543 of file execwrappers.cpp.

int execvpe ( const char *  filename,
char *const  argv[],
char *const  envp[] 
)

Definition at line 569 of file execwrappers.cpp.

int fexecve ( int  fd,
char *const  argv[],
char *const  envp[] 
)

Definition at line 600 of file execwrappers.cpp.

pid_t fork ( )

Definition at line 162 of file execwrappers.cpp.

LIB_PRIVATE void pthread_atfork_child ( )

Definition at line 138 of file execwrappers.cpp.

LIB_PRIVATE void pthread_atfork_parent ( )

Definition at line 133 of file execwrappers.cpp.

LIB_PRIVATE void pthread_atfork_prepare ( )

Definition at line 106 of file execwrappers.cpp.

int system ( const char *  line)

Definition at line 748 of file execwrappers.cpp.

pid_t vfork ( )

Definition at line 218 of file execwrappers.cpp.