/usr/include/gm_file.h is in libganglia1-dev 3.6.0-7+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #ifndef FILE_H
#define FILE_H 1
#include <sys/time.h>
/* Never changes */
#ifndef BUFFSIZE
#define BUFFSIZE 65536
#endif
typedef struct {
struct timeval last_read;
float thresh;
char *name;
char *buffer;
size_t buffersize;
} timely_file;
#define SLURP_FAILURE -1
#ifdef __cplusplus
extern "C" {
#endif
int slurpfile (char *filename, char **buffer, int buflen);
float timediff (const struct timeval *thistime,
const struct timeval *lasttime);
char *update_file(timely_file *tf);
char *skip_whitespace (const char *p);
char *skip_token (const char *p);
#ifdef __cplusplus
}
#endif
#endif
|