DMTCP
|
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/sysmacros.h>
#include <limits.h>
#include "mtcp_util.h"
#include "../membarrier.h"
Go to the source code of this file.
Functions | |
unsigned long | mtcp_strtol (char *str) |
size_t | mtcp_strlen (const char *s) |
void | mtcp_strncpy (char *dest, const char *src, size_t n) |
void | mtcp_strcpy (char *dest, const char *src) |
void | mtcp_strncat (char *dest, const char *src, size_t n) |
int | mtcp_strncmp (const char *s1, const char *s2, size_t n) |
int | mtcp_strcmp (const char *s1, const char *s2) |
const void * | mtcp_strstr (const char *string, const char *substring) |
char * | mtcp_strchr (const char *s, int c) |
int | mtcp_strstartswith (const char *s1, const char *s2) |
int | mtcp_strendswith (const char *s1, const char *s2) |
void * | mtcp_memset (void *s, int c, size_t n) |
void * | mtcp_memcpy (void *dstpp, const void *srcpp, size_t len) |
ssize_t | mtcp_read_all (int fd, void *buf, size_t count) |
void | mtcp_mkdir (const char *dir) |
int | mtcp_readfile (int fd, void *buf, size_t size) |
void | mtcp_skipfile (int fd, size_t size) |
ssize_t | mtcp_write_all (int fd, const void *buf, size_t count) |
char | mtcp_readchar (int fd) |
char | mtcp_readdec (int fd, VA *value) |
char | mtcp_readhex (int fd, VA *value) |
int | mtcp_readmapsline (int mapsfd, Area *area) |
void | mtcp_get_memory_region_of_this_library (VA *startaddr, VA *endaddr) |
void | mtcp_printf (char const *format,...) |
void mtcp_get_memory_region_of_this_library | ( | VA * | startaddr, |
VA * | endaddr | ||
) |
Definition at line 506 of file mtcp_util.ic.
void* mtcp_memcpy | ( | void * | dstpp, |
const void * | srcpp, | ||
size_t | len | ||
) |
Definition at line 187 of file mtcp_util.ic.
void* mtcp_memset | ( | void * | s, |
int | c, | ||
size_t | n | ||
) |
Definition at line 178 of file mtcp_util.ic.
void mtcp_mkdir | ( | const char * | dir) |
Definition at line 220 of file mtcp_util.ic.
void mtcp_printf | ( | char const * | format, |
... | |||
) |
Definition at line 631 of file mtcp_util.ic.
ssize_t mtcp_read_all | ( | int | fd, |
void * | buf, | ||
size_t | count | ||
) |
Definition at line 198 of file mtcp_util.ic.
char mtcp_readchar | ( | int | fd) |
Definition at line 341 of file mtcp_util.ic.
char mtcp_readdec | ( | int | fd, |
VA * | value | ||
) |
Definition at line 355 of file mtcp_util.ic.
int mtcp_readfile | ( | int | fd, |
void * | buf, | ||
size_t | size | ||
) |
Definition at line 246 of file mtcp_util.ic.
char mtcp_readhex | ( | int | fd, |
VA * | value | ||
) |
Definition at line 372 of file mtcp_util.ic.
int mtcp_readmapsline | ( | int | mapsfd, |
Area * | area | ||
) |
Definition at line 408 of file mtcp_util.ic.
void mtcp_skipfile | ( | int | fd, |
size_t | size | ||
) |
Definition at line 300 of file mtcp_util.ic.
char* mtcp_strchr | ( | const char * | s, |
int | c | ||
) |
Definition at line 150 of file mtcp_util.ic.
int mtcp_strcmp | ( | const char * | s1, |
const char * | s2 | ||
) |
Definition at line 118 of file mtcp_util.ic.
void mtcp_strcpy | ( | char * | dest, |
const char * | src | ||
) |
Definition at line 90 of file mtcp_util.ic.
int mtcp_strendswith | ( | const char * | s1, |
const char * | s2 | ||
) |
Definition at line 165 of file mtcp_util.ic.
size_t mtcp_strlen | ( | const char * | s) |
Definition at line 68 of file mtcp_util.ic.
void mtcp_strncat | ( | char * | dest, |
const char * | src, | ||
size_t | n | ||
) |
Definition at line 97 of file mtcp_util.ic.
int mtcp_strncmp | ( | const char * | s1, |
const char * | s2, | ||
size_t | n | ||
) |
Definition at line 103 of file mtcp_util.ic.
void mtcp_strncpy | ( | char * | dest, |
const char * | src, | ||
size_t | n | ||
) |
Definition at line 77 of file mtcp_util.ic.
int mtcp_strstartswith | ( | const char * | s1, |
const char * | s2 | ||
) |
Definition at line 157 of file mtcp_util.ic.
const void* mtcp_strstr | ( | const char * | string, |
const char * | substring | ||
) |
Definition at line 134 of file mtcp_util.ic.
unsigned long mtcp_strtol | ( | char * | str) |
Definition at line 37 of file mtcp_util.ic.
ssize_t mtcp_write_all | ( | int | fd, |
const void * | buf, | ||
size_t | count | ||
) |
Definition at line 318 of file mtcp_util.ic.