#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <procfs.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/socket.h>#include <sys/errno.h>#include <unistd.h>#include <errno.h>#include <dlfcn.h>#include <sys/time.h>#include <netdb.h>#include <netinet/in.h>#include <sys/param.h>#include <time.h>#include "jni.h"#include "hprof.h"
Go to the source code of this file.
Defines | |
| #define | PATH_SEPARATOR ":" |
| #define | PATH_SEPARATOR_CHAR ':' |
Functions | |
| int | md_getpid (void) |
| void | md_sleep (unsigned seconds) |
| void | md_init (void) |
| int | md_connect (char *hostname, unsigned short port) |
| int | md_recv (int f, char *buf, int len, int option) |
| int | md_shutdown (int filedes, int option) |
| int | md_open (const char *filename) |
| int | md_open_binary (const char *filename) |
| int | md_creat (const char *filename) |
| int | md_creat_binary (const char *filename) |
| jlong | md_seek (int filedes, jlong cur) |
| void | md_close (int filedes) |
| int | md_send (int s, const char *msg, int len, int flags) |
| int | md_write (int filedes, const void *buf, int nbyte) |
| int | md_read (int filedes, void *buf, int nbyte) |
| static jlong | md_timeofday (void) |
| jlong | md_get_microsecs (void) |
| jlong | md_get_timemillis (void) |
| jlong | md_get_thread_cpu_timemillis (void) |
| void | md_get_prelude_path (char *path, int path_len, char *filename) |
| int | md_vsnprintf (char *s, int n, const char *format, va_list ap) |
| int | md_snprintf (char *s, int n, const char *format,...) |
| void | md_system_error (char *buf, int len) |
| unsigned | md_htons (unsigned short s) |
| unsigned | md_htonl (unsigned l) |
| unsigned | md_ntohs (unsigned short s) |
| unsigned | md_ntohl (unsigned l) |
| static char ** | split_path (const char *path, int *n) |
| void | md_build_library_name (char *holder, int holderlen, char *pname, char *fname) |
| void * | md_load_library (const char *name, char *err_buf, int err_buflen) |
| void | md_unload_library (void *handle) |
| void * | md_find_library_entry (void *handle, const char *name) |
| #define PATH_SEPARATOR ":" |
Definition at line 63 of file hprof_md.c.
| #define PATH_SEPARATOR_CHAR ':' |
Definition at line 64 of file hprof_md.c.
| void md_build_library_name | ( | char * | holder, | |
| int | holderlen, | |||
| char * | pname, | |||
| char * | fname | |||
| ) |
| void md_close | ( | int | filedes | ) |
| int md_connect | ( | char * | hostname, | |
| unsigned short | port | |||
| ) |
| int md_creat | ( | const char * | filename | ) |
| int md_creat_binary | ( | const char * | filename | ) |
| void* md_find_library_entry | ( | void * | handle, | |
| const char * | name | |||
| ) |
| jlong md_get_microsecs | ( | void | ) |
| void md_get_prelude_path | ( | char * | path, | |
| int | path_len, | |||
| char * | filename | |||
| ) |
| jlong md_get_thread_cpu_timemillis | ( | void | ) |
| jlong md_get_timemillis | ( | void | ) |
| int md_getpid | ( | void | ) |
| unsigned md_htonl | ( | unsigned | l | ) |
| unsigned md_htons | ( | unsigned short | s | ) |
| void md_init | ( | void | ) |
| void* md_load_library | ( | const char * | name, | |
| char * | err_buf, | |||
| int | err_buflen | |||
| ) |
| unsigned md_ntohl | ( | unsigned | l | ) |
| unsigned md_ntohs | ( | unsigned short | s | ) |
| int md_open | ( | const char * | filename | ) |
| int md_open_binary | ( | const char * | filename | ) |
| int md_read | ( | int | filedes, | |
| void * | buf, | |||
| int | nbyte | |||
| ) |
| int md_recv | ( | int | f, | |
| char * | buf, | |||
| int | len, | |||
| int | option | |||
| ) |
| jlong md_seek | ( | int | filedes, | |
| jlong | cur | |||
| ) |
| int md_send | ( | int | s, | |
| const char * | msg, | |||
| int | len, | |||
| int | flags | |||
| ) |
| int md_shutdown | ( | int | filedes, | |
| int | option | |||
| ) |
| void md_sleep | ( | unsigned | seconds | ) |
| int md_snprintf | ( | char * | s, | |
| int | n, | |||
| const char * | format, | |||
| ... | ||||
| ) |
| void md_system_error | ( | char * | buf, | |
| int | len | |||
| ) |
| static jlong md_timeofday | ( | void | ) | [static] |
| void md_unload_library | ( | void * | handle | ) |
| int md_vsnprintf | ( | char * | s, | |
| int | n, | |||
| const char * | format, | |||
| va_list | ap | |||
| ) |
| int md_write | ( | int | filedes, | |
| const void * | buf, | |||
| int | nbyte | |||
| ) |
| static char** split_path | ( | const char * | path, | |
| int * | n | |||
| ) | [static] |
1.6.1