DMTCP
|
#include <stdarg.h>
#include <stdlib.h>
#include <vector>
#include <list>
#include <string>
#include <fcntl.h>
#include <signal.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <dirent.h>
#include <sys/syscall.h>
#include <linux/version.h>
#include <limits.h>
#include "dmtcp.h"
#include "shareddata.h"
#include "util.h"
#include "jassert.h"
#include "jconvert.h"
#include "jfilesystem.h"
#include "fileconnlist.h"
#include "fileconnection.h"
#include "filewrappers.h"
Go to the source code of this file.
Macros | |
#define | ptsname_r ptsname_r_always_inline |
#define | ttyname_r ttyname_r_always_inline |
#define | open open_always_inline |
#define | open64 open64_always_inline |
#define | openat openat_always_inline |
#define | openat64 openat64_always_inline |
#define | readlink readlink_always_inline |
#define | __readlink_chk _ret__readlink_chk |
#define | realpath realpath_always_inline |
Functions | |
int | ptsname_r (int fd, char *buf, size_t buflen) |
char * | ptsname (int fd) |
int | __ptsname_r_chk (int fd, char *buf, size_t buflen, size_t nreal) |
int | ttyname_r (int fd, char *buf, size_t buflen) |
char * | ttyname (int fd) |
int | __ttyname_r_chk (int fd, char *buf, size_t buflen, size_t nreal) |
int | getpt () |
int | posix_openpt (int flags) |
FILE * | tmpfile () |
int | mkstemp (char *ttemplate) |
int | mkostemp (char *ttemplate, int flags) |
int | mkstemps (char *ttemplate, int suffixlen) |
int | mkostemps (char *ttemplate, int suffixlen, int flags) |
int | open (const char *path, int flags,...) |
int | __open_2 (const char *path, int flags) |
int | open64 (const char *path, int flags,...) |
int | __open64_2 (const char *path, int flags) |
int | creat (const char *path, mode_t mode) |
int | creat64 (const char *path, mode_t mode) |
FILE * | fopen (const char *path, const char *mode) |
FILE * | fopen64 (const char *path, const char *mode) |
FILE * | freopen (const char *path, const char *mode, FILE *stream) |
int | openat (int dirfd, const char *path, int flags,...) |
int | openat_2 (int dirfd, const char *path, int flags) |
int | __openat_2 (int dirfd, const char *path, int flags) |
int | openat64 (int dirfd, const char *path, int flags,...) |
int | openat64_2 (int dirfd, const char *path, int flags) |
int | __openat64_2 (int dirfd, const char *path, int flags) |
DIR * | opendir (const char *name) |
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) |
ssize_t | __readlink_chk (const char *path, char *buf, size_t bufsiz, size_t buflen) |
int | fcntl (int fd, int cmd,...) |
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) |
#define __readlink_chk _ret__readlink_chk |
Definition at line 42 of file filewrappers.cpp.
#define open open_always_inline |
Definition at line 37 of file filewrappers.cpp.
#define open64 open64_always_inline |
Definition at line 38 of file filewrappers.cpp.
#define openat openat_always_inline |
Definition at line 39 of file filewrappers.cpp.
#define openat64 openat64_always_inline |
Definition at line 40 of file filewrappers.cpp.
#define ptsname_r ptsname_r_always_inline |
Definition at line 35 of file filewrappers.cpp.
#define readlink readlink_always_inline |
Definition at line 41 of file filewrappers.cpp.
#define realpath realpath_always_inline |
Definition at line 43 of file filewrappers.cpp.
#define ttyname_r ttyname_r_always_inline |
Definition at line 36 of file filewrappers.cpp.
int __lxstat | ( | int | vers, |
const char * | path, | ||
struct stat * | buf | ||
) |
Definition at line 621 of file filewrappers.cpp.
int __lxstat64 | ( | int | vers, |
const char * | path, | ||
struct stat64 * | buf | ||
) |
Definition at line 632 of file filewrappers.cpp.
int __open64_2 | ( | const char * | path, |
int | flags | ||
) |
Definition at line 426 of file filewrappers.cpp.
int __open_2 | ( | const char * | path, |
int | flags | ||
) |
Definition at line 400 of file filewrappers.cpp.
int __openat64_2 | ( | int | dirfd, |
const char * | path, | ||
int | flags | ||
) |
Definition at line 553 of file filewrappers.cpp.
int __openat_2 | ( | int | dirfd, |
const char * | path, | ||
int | flags | ||
) |
Definition at line 525 of file filewrappers.cpp.
int __ptsname_r_chk | ( | int | fd, |
char * | buf, | ||
size_t | buflen, | ||
size_t | nreal | ||
) |
Definition at line 227 of file filewrappers.cpp.
ssize_t __readlink_chk | ( | const char * | path, |
char * | buf, | ||
size_t | bufsiz, | ||
size_t | buflen | ||
) |
Definition at line 665 of file filewrappers.cpp.
char* __realpath | ( | const char * | path, |
char * | resolved_path | ||
) |
Definition at line 713 of file filewrappers.cpp.
char* __realpath_chk | ( | const char * | path, |
char * | resolved_path, | ||
size_t | resolved_len | ||
) |
Definition at line 718 of file filewrappers.cpp.
int __ttyname_r_chk | ( | int | fd, |
char * | buf, | ||
size_t | buflen, | ||
size_t | nreal | ||
) |
Definition at line 276 of file filewrappers.cpp.
int __xstat | ( | int | vers, |
const char * | path, | ||
struct stat * | buf | ||
) |
Definition at line 581 of file filewrappers.cpp.
int __xstat64 | ( | int | vers, |
const char * | path, | ||
struct stat64 * | buf | ||
) |
Definition at line 592 of file filewrappers.cpp.
int access | ( | const char * | path, |
int | mode | ||
) |
Definition at line 729 of file filewrappers.cpp.
char* canonicalize_file_name | ( | const char * | path) |
Definition at line 724 of file filewrappers.cpp.
int creat | ( | const char * | path, |
mode_t | mode | ||
) |
Definition at line 431 of file filewrappers.cpp.
int creat64 | ( | const char * | path, |
mode_t | mode | ||
) |
Definition at line 437 of file filewrappers.cpp.
int fcntl | ( | int | fd, |
int | cmd, | ||
... | |||
) |
Definition at line 671 of file filewrappers.cpp.
FILE* fopen | ( | const char * | path, |
const char * | mode | ||
) |
Definition at line 468 of file filewrappers.cpp.
FILE* fopen64 | ( | const char * | path, |
const char * | mode | ||
) |
Definition at line 473 of file filewrappers.cpp.
FILE* freopen | ( | const char * | path, |
const char * | mode, | ||
FILE * | stream | ||
) |
Definition at line 478 of file filewrappers.cpp.
int getpt | ( | ) |
Definition at line 281 of file filewrappers.cpp.
int mkostemp | ( | char * | ttemplate, |
int | flags | ||
) |
Definition at line 327 of file filewrappers.cpp.
int mkostemps | ( | char * | ttemplate, |
int | suffixlen, | ||
int | flags | ||
) |
Definition at line 349 of file filewrappers.cpp.
int mkstemp | ( | char * | ttemplate) |
Definition at line 316 of file filewrappers.cpp.
int mkstemps | ( | char * | ttemplate, |
int | suffixlen | ||
) |
Definition at line 338 of file filewrappers.cpp.
int open | ( | const char * | path, |
int | flags, | ||
... | |||
) |
Definition at line 387 of file filewrappers.cpp.
int open64 | ( | const char * | path, |
int | flags, | ||
... | |||
) |
Definition at line 413 of file filewrappers.cpp.
int openat | ( | int | dirfd, |
const char * | path, | ||
int | flags, | ||
... | |||
) |
Definition at line 502 of file filewrappers.cpp.
int openat64 | ( | int | dirfd, |
const char * | path, | ||
int | flags, | ||
... | |||
) |
Definition at line 530 of file filewrappers.cpp.
int openat64_2 | ( | int | dirfd, |
const char * | path, | ||
int | flags | ||
) |
Definition at line 548 of file filewrappers.cpp.
int openat_2 | ( | int | dirfd, |
const char * | path, | ||
int | flags | ||
) |
Definition at line 520 of file filewrappers.cpp.
DIR* opendir | ( | const char * | name) |
Definition at line 558 of file filewrappers.cpp.
int posix_openpt | ( | int | flags) |
Definition at line 293 of file filewrappers.cpp.
char* ptsname | ( | int | fd) |
Definition at line 213 of file filewrappers.cpp.
int ptsname_r | ( | int | fd, |
char * | buf, | ||
size_t | buflen | ||
) |
Definition at line 202 of file filewrappers.cpp.
ssize_t readlink | ( | const char * | path, |
char * | buf, | ||
size_t | bufsiz | ||
) |
Definition at line 647 of file filewrappers.cpp.
char* realpath | ( | const char * | path, |
char * | resolved_path | ||
) |
Definition at line 696 of file filewrappers.cpp.
FILE* tmpfile | ( | ) |
Definition at line 305 of file filewrappers.cpp.
char* ttyname | ( | int | fd) |
Definition at line 266 of file filewrappers.cpp.
int ttyname_r | ( | int | fd, |
char * | buf, | ||
size_t | buflen | ||
) |
Definition at line 240 of file filewrappers.cpp.