00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef HPROF_MD_H
00038 #define HPROF_MD_H
00039
00040 void md_init(void);
00041 int md_getpid(void);
00042 void md_sleep(unsigned seconds);
00043 int md_connect(char *hostname, unsigned short port);
00044 int md_recv(int f, char *buf, int len, int option);
00045 int md_shutdown(int filedes, int option);
00046 int md_open(const char *filename);
00047 int md_open_binary(const char *filename);
00048 int md_creat(const char *filename);
00049 int md_creat_binary(const char *filename);
00050 jlong md_seek(int filedes, jlong cur);
00051 void md_close(int filedes);
00052 int md_send(int s, const char *msg, int len, int flags);
00053 int md_write(int filedes, const void *buf, int nbyte);
00054 int md_read(int filedes, void *buf, int nbyte);
00055 jlong md_get_microsecs(void);
00056 jlong md_get_timemillis(void);
00057 jlong md_get_thread_cpu_timemillis(void);
00058 void md_get_prelude_path(char *path, int path_len, char *filename);
00059 int md_snprintf(char *s, int n, const char *format, ...);
00060 int md_vsnprintf(char *s, int n, const char *format, va_list ap);
00061 void md_system_error(char *buf, int len);
00062
00063 unsigned md_htons(unsigned short s);
00064 unsigned md_htonl(unsigned l);
00065 unsigned md_ntohs(unsigned short s);
00066 unsigned md_ntohl(unsigned l);
00067
00068 void md_build_library_name(char *holder, int holderlen, char *pname, char *fname);
00069 void * md_load_library(const char *name, char *err_buf, int err_buflen);
00070 void md_unload_library(void *handle);
00071 void * md_find_library_entry(void *handle, const char *name);
00072
00073 #endif