DMTCP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions | Variables
pid_filewrappers.cpp File Reference
#include <stdio.h>
#include <stdarg.h>
#include <sys/ioctl.h>
#include <string.h>
#include "jassert.h"
#include "jfilesystem.h"
#include "jconvert.h"
#include "pidwrappers.h"
#include "util.h"
#include "virtualpidtable.h"
#include "dmtcp.h"
#include "pid.h"
#include <unistd.h>

Go to the source code of this file.

Macros

#define open   open_always_inline
 
#define open64   open64_always_inline
 
#define readlink   readlink_always_inline
 
#define realpath   realpath_always_inline
 
#define PROC_PREFIX   "/proc/"
 

Functions

int open (const char *path, int flags,...)
 
int open64 (const char *path, int flags,...)
 
FILE * fopen (const char *path, const char *mode)
 
FILE * fopen64 (const char *path, const char *mode)
 
int fclose (FILE *fp)
 
int __xstat (int vers, const char *path, struct stat *buf)
 
int __xstat64 (int vers, const char *path, struct stat64 *buf)
 
int __lxstat (int vers, const char *path, struct stat *buf)
 
int __lxstat64 (int vers, const char *path, struct stat64 *buf)
 
ssize_t readlink (const char *path, char *buf, size_t bufsiz)
 
char * realpath (const char *path, char *resolved_path)
 
char * __realpath (const char *path, char *resolved_path)
 
char * __realpath_chk (const char *path, char *resolved_path, size_t resolved_len)
 
char * canonicalize_file_name (const char *path)
 
int access (const char *path, int mode)
 
int ioctl (int d, unsigned long int request,...)
 

Variables

int send_sigwinch = 0
 

Macro Definition Documentation

#define open   open_always_inline

Definition at line 35 of file pid_filewrappers.cpp.

#define open64   open64_always_inline

Definition at line 36 of file pid_filewrappers.cpp.

#define PROC_PREFIX   "/proc/"

Definition at line 59 of file pid_filewrappers.cpp.

#define readlink   readlink_always_inline

Definition at line 37 of file pid_filewrappers.cpp.

#define realpath   realpath_always_inline

Definition at line 38 of file pid_filewrappers.cpp.

Function Documentation

int __lxstat ( int  vers,
const char *  path,
struct stat *  buf 
)

Definition at line 187 of file pid_filewrappers.cpp.

int __lxstat64 ( int  vers,
const char *  path,
struct stat64 *  buf 
)

Definition at line 196 of file pid_filewrappers.cpp.

char* __realpath ( const char *  path,
char *  resolved_path 
)

Definition at line 238 of file pid_filewrappers.cpp.

char* __realpath_chk ( const char *  path,
char *  resolved_path,
size_t  resolved_len 
)

Definition at line 243 of file pid_filewrappers.cpp.

int __xstat ( int  vers,
const char *  path,
struct stat *  buf 
)

Definition at line 155 of file pid_filewrappers.cpp.

int __xstat64 ( int  vers,
const char *  path,
struct stat64 *  buf 
)

Definition at line 164 of file pid_filewrappers.cpp.

int access ( const char *  path,
int  mode 
)

Definition at line 255 of file pid_filewrappers.cpp.

char* canonicalize_file_name ( const char *  path)

Definition at line 249 of file pid_filewrappers.cpp.

int fclose ( FILE *  fp)

Definition at line 147 of file pid_filewrappers.cpp.

FILE* fopen ( const char *  path,
const char *  mode 
)

Definition at line 131 of file pid_filewrappers.cpp.

FILE* fopen64 ( const char *  path,
const char *  mode 
)

Definition at line 139 of file pid_filewrappers.cpp.

int ioctl ( int  d,
unsigned long int  request,
  ... 
)

Definition at line 270 of file pid_filewrappers.cpp.

int open ( const char *  path,
int  flags,
  ... 
)

Definition at line 98 of file pid_filewrappers.cpp.

int open64 ( const char *  path,
int  flags,
  ... 
)

Definition at line 115 of file pid_filewrappers.cpp.

ssize_t readlink ( const char *  path,
char *  buf,
size_t  bufsiz 
)

Definition at line 205 of file pid_filewrappers.cpp.

char* realpath ( const char *  path,
char *  resolved_path 
)

Definition at line 224 of file pid_filewrappers.cpp.

Variable Documentation

int send_sigwinch = 0

Definition at line 266 of file pid_filewrappers.cpp.