hprof_md.c File Reference

#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"
Include dependency graph for hprof_md.c:

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 Documentation

#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.


Function Documentation

void md_build_library_name ( char *  holder,
int  holderlen,
char *  pname,
char *  fname 
)

Definition at line 429 of file hprof_md.c.

Here is the call graph for this function:

void md_close ( int  filedes  ) 

Definition at line 191 of file hprof_md.c.

int md_connect ( char *  hostname,
unsigned short  port 
)

Definition at line 112 of file hprof_md.c.

int md_creat ( const char *  filename  ) 

Definition at line 165 of file hprof_md.c.

int md_creat_binary ( const char *  filename  ) 

Definition at line 172 of file hprof_md.c.

Here is the call graph for this function:

void* md_find_library_entry ( void *  handle,
const char *  name 
)

Definition at line 495 of file hprof_md.c.

jlong md_get_microsecs ( void   ) 

Definition at line 247 of file hprof_md.c.

Here is the call graph for this function:

void md_get_prelude_path ( char *  path,
int  path_len,
char *  filename 
)

Definition at line 275 of file hprof_md.c.

Here is the call graph for this function:

jlong md_get_thread_cpu_timemillis ( void   ) 

Definition at line 265 of file hprof_md.c.

Here is the call graph for this function:

jlong md_get_timemillis ( void   ) 

Definition at line 258 of file hprof_md.c.

Here is the call graph for this function:

int md_getpid ( void   ) 

Definition at line 67 of file hprof_md.c.

unsigned md_htonl ( unsigned  l  ) 

Definition at line 356 of file hprof_md.c.

unsigned md_htons ( unsigned short  s  ) 

Definition at line 350 of file hprof_md.c.

void md_init ( void   ) 

Definition at line 85 of file hprof_md.c.

Here is the call graph for this function:

void* md_load_library ( const char *  name,
char *  err_buf,
int  err_buflen 
)

Definition at line 474 of file hprof_md.c.

unsigned md_ntohl ( unsigned  l  ) 

Definition at line 368 of file hprof_md.c.

unsigned md_ntohs ( unsigned short  s  ) 

Definition at line 362 of file hprof_md.c.

int md_open ( const char *  filename  ) 

Definition at line 153 of file hprof_md.c.

int md_open_binary ( const char *  filename  ) 

Definition at line 159 of file hprof_md.c.

Here is the call graph for this function:

int md_read ( int  filedes,
void *  buf,
int  nbyte 
)

Definition at line 221 of file hprof_md.c.

int md_recv ( int  f,
char *  buf,
int  len,
int  option 
)

Definition at line 141 of file hprof_md.c.

jlong md_seek ( int  filedes,
jlong  cur 
)

Definition at line 178 of file hprof_md.c.

int md_send ( int  s,
const char *  msg,
int  len,
int  flags 
)

Definition at line 197 of file hprof_md.c.

int md_shutdown ( int  filedes,
int  option 
)

Definition at line 147 of file hprof_md.c.

void md_sleep ( unsigned  seconds  ) 

Definition at line 79 of file hprof_md.c.

int md_snprintf ( char *  s,
int  n,
const char *  format,
  ... 
)

Definition at line 326 of file hprof_md.c.

Here is the call graph for this function:

void md_system_error ( char *  buf,
int  len 
)

Definition at line 338 of file hprof_md.c.

static jlong md_timeofday ( void   )  [static]

Definition at line 234 of file hprof_md.c.

Here is the caller graph for this function:

void md_unload_library ( void *  handle  ) 

Definition at line 488 of file hprof_md.c.

int md_vsnprintf ( char *  s,
int  n,
const char *  format,
va_list  ap 
)

Definition at line 320 of file hprof_md.c.

int md_write ( int  filedes,
const void *  buf,
int  nbyte 
)

Definition at line 209 of file hprof_md.c.

static char** split_path ( const char *  path,
int *  n 
) [static]

Definition at line 381 of file hprof_md.c.

Here is the caller graph for this function:


Generated on 19 Nov 2012 for hprof by  doxygen 1.6.1