Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
util.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdarg.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/queue.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "util.h"
Include dependency graph for util.c:

Go to the source code of this file.

Macros

#define DEFAULT_FREQUENCY_THRESHOLD   100
#define DEFAULT_CONDITIONAL_PROBABILITY_THRESHOLD   0.2

Functions

int print_error (const char *format,...)
int daemonize (void)
void parse_keyval (grn_ctx *ctx, struct evkeyvalq *get_args, const char **query, const char **types, const char **client_id, const char **target_name, const char **learn_target_name, const char **callback, uint64_t *millisec, int *frequency_threshold, double *conditional_probability_threshold, int *limit, grn_obj *pass_through_parameters)

Macro Definition Documentation

#define DEFAULT_CONDITIONAL_PROBABILITY_THRESHOLD   0.2

Definition at line 32 of file util.c.

#define DEFAULT_FREQUENCY_THRESHOLD   100

Definition at line 31 of file util.c.

Function Documentation

int daemonize ( void  )

Definition at line 50 of file util.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void parse_keyval ( grn_ctx ctx,
struct evkeyvalq *  get_args,
const char **  query,
const char **  types,
const char **  client_id,
const char **  target_name,
const char **  learn_target_name,
const char **  callback,
uint64_t *  millisec,
int *  frequency_threshold,
double *  conditional_probability_threshold,
int *  limit,
grn_obj pass_through_parameters 
)

Definition at line 98 of file util.c.

Here is the call graph for this function:

int print_error ( const char *  format,
  ... 
)

Definition at line 35 of file util.c.

Here is the caller graph for this function: