ekg2
GIT master
|
#include "ekg2.h"
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
Definicje | |
#define | JOGGER_KEYS_MAX 25 |
#define | JOGGER_VALUES_MAX 14 |
#define | WARN_PRINT(x) do { if (!outstarted) { outstarted++; print("jogger_warning"); } print(x, tmp); } while (0) |
Funkcje | |
void | jogger_free_headers (int real_free) |
void | jogger_localize_headers () |
static int | jogger_checkoutfile (const char *file, char **data, int *len, char **hash, const int maxlen, const int quiet) |
int | jogger_prepare (const char *name, const char **params, session_t *session, const char *target, int quiet) |
int | jogger_publish (const char *name, const char **params, session_t *session, const char *target, int quiet) |
Zmienne | |
const char * | utf_jogger_header_keys [25] |
const char * | utf_jogger_header_values [14] |
char * | jogger_header_keys [25] |
char * | jogger_header_values [14] |
#define JOGGER_KEYS_MAX 25 |
#define JOGGER_VALUES_MAX 14 |
#define WARN_PRINT | ( | x | ) | do { if (!outstarted) { outstarted++; print("jogger_warning"); } print(x, tmp); } while (0) |
|
static |
Tries to open given file (check), and reads it, if expected (checkout). It is designed to be proof to special file problems (especially named pipe ones).
file | - filename to open. |
data | - pointer to store file contents or NULL, if don't want to read it. |
len | - pointer to store filelength or NULL, if not needed. |
hash | - pointer to store filehash or NULL, if not needed. |
maxlen | - maximum filesize to accept (not counting additional NUL) or 0, if n/a. |
quiet | - if set, don't output anything to __status. |
void jogger_free_headers | ( | int | real_free | ) |
void jogger_localize_headers | ( | ) |
int jogger_prepare | ( | const char * | name, |
const char ** | params, | ||
session_t * | session, | ||
const char * | target, | ||
int | quiet | ||
) |
int jogger_publish | ( | const char * | name, |
const char ** | params, | ||
session_t * | session, | ||
const char * | target, | ||
int | quiet | ||
) |
char* jogger_header_keys[25] |
char* jogger_header_values[14] |
const char* utf_jogger_header_keys[25] |