Icinga-core 1.4.0
next gen monitoring
include/shared.h File Reference
#include <time.h>

Go to the source code of this file.

Data Structures

struct  mmapfile_struct

Defines

#define ARRAY_SIZE(ary)   (sizeof(ary) / sizeof(ary[0]))

Typedefs

typedef struct mmapfile_struct mmapfile

Functions

char * my_strtok (char *buffer, char *tokens)
char * my_strsep (char **stringp, const char *delim)
mmapfilemmap_fopen (char *filename)
int mmap_fclose (mmapfile *temp_mmapfile)
char * mmap_fgets (mmapfile *temp_mmapfile)
char * mmap_fgets_multiline (mmapfile *temp_mmapfile)
void strip (char *buffer)
int hashfunc (const char *name1, const char *name2, int hashslots)
int compare_hashdata (const char *val1a, const char *val1b, const char *val2a, const char *val2b)
void get_datetime_string (time_t *raw_time, char *buffer, int buffer_length, int type)
void get_time_breakdown (unsigned long raw_time, int *days, int *hours, int *minutes, int *seconds)

Define Documentation

#define ARRAY_SIZE (   ary)    (sizeof(ary) / sizeof(ary[0]))

Definition at line 42 of file shared.h.


Typedef Documentation

typedef struct mmapfile_struct mmapfile

Function Documentation

int compare_hashdata ( const char *  val1a,
const char *  val1b,
const char *  val2a,
const char *  val2b 
)

Definition at line 378 of file shared.c.

void get_datetime_string ( time_t *  raw_time,
char *  buffer,
int  buffer_length,
int  type 
)

Definition at line 413 of file shared.c.

void get_time_breakdown ( unsigned long  raw_time,
int *  days,
int *  hours,
int *  minutes,
int *  seconds 
)

Definition at line 1830 of file icingastats.c.

int hashfunc ( const char *  name1,
const char *  name2,
int  hashslots 
)

Definition at line 358 of file shared.c.

int mmap_fclose ( mmapfile temp_mmapfile)

Definition at line 163 of file shared.c.

char* mmap_fgets ( mmapfile temp_mmapfile)

Definition at line 184 of file shared.c.

char* mmap_fgets_multiline ( mmapfile temp_mmapfile)

Definition at line 233 of file shared.c.

mmapfile* mmap_fopen ( char *  filename)

Definition at line 105 of file shared.c.

char* my_strsep ( char **  stringp,
const char *  delim 
)

Definition at line 66 of file shared.c.

char* my_strtok ( char *  buffer,
char *  tokens 
)

Definition at line 32 of file shared.c.

void strip ( char *  buffer)

Definition at line 1793 of file icingastats.c.

 All Data Structures Files Functions Variables Typedefs Defines