Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Functions | Variables
ctx.c File Reference
#include "groonga_in.h"
#include <string.h>
#include "token.h"
#include "ctx_impl.h"
#include "pat.h"
#include "plugin_in.h"
#include "snip.h"
#include "output.h"
#include "normalizer_in.h"
#include "ctx_impl_mrb.h"
#include <stdio.h>
#include <stdarg.h>
#include <time.h>
Include dependency graph for ctx.c:

Go to the source code of this file.

Data Structures

struct  _grn_cache
struct  _grn_cache_entry

Macros

#define GRN_CTX_INITIALIZER(enc)
#define GRN_CTX_CLOSED(ctx)   ((ctx)->stat == GRN_CTX_FIN)
#define GRN_ADD_ALLOC_COUNT(count)
#define grn_alloc_info_add(address)
#define grn_alloc_info_change(old_address, new_address)
#define grn_alloc_info_check(address)
#define grn_alloc_info_dump(ctx)
#define grn_alloc_info_free(ctx)
#define GRN_CTX_SEGMENT_SIZE   (1<<22)
#define GRN_CTX_SEGMENT_MASK   (GRN_CTX_SEGMENT_SIZE - 1)
#define GRN_CTX_SEGMENT_WORD   (1<<31)
#define GRN_CTX_SEGMENT_VLEN   (1<<30)
#define GRN_CTX_SEGMENT_LIFO   (1<<29)
#define GRN_CTX_SEGMENT_DIRTY   (1<<28)
#define IMPL_SIZE   ((sizeof(struct _grn_ctx_impl) + (grn_pagesize - 1)) & ~(grn_pagesize - 1))
#define TBUFSIZE   GRN_TIMEVAL_STR_SIZE
#define MBUFSIZE   0x1000
#define LBUFSIZE   0x400
#define TIMESTAMP_BUFFER_SIZE   TBUFSIZE
#define INFO_BUFFER_SIZE   40
#define MESSAGE_BUFFER_SIZE   MBUFSIZE
#define INDEX_HTML   "index.html"
#define OUTPUT_TYPE   "output_type"
#define COMMAND_VERSION   "command_version"
#define EXPR_MISSING   "expr_missing"
#define OUTPUT_TYPE_LEN   (sizeof(OUTPUT_TYPE) - 1)
#define COMMAND_VERSION_LEN   (sizeof(COMMAND_VERSION) - 1)
#define HTTP_QUERY_PAIR_DELIMITER   "="
#define HTTP_QUERY_PAIRS_DELIMITERS   "&;"
#define ALIGN_SIZE   (1<<3)
#define ALIGN_MASK   (ALIGN_SIZE-1)
#define GRN_CTX_ALLOC_CLEAR   1
#define DB_P(s)   ((s) && (s)->header.type == GRN_DB)

Typedefs

typedef struct _grn_cache_entry grn_cache_entry

Functions

void grn_sleep (uint32_t seconds)
void grn_nanosleep (uint64_t nanoseconds)
grn_rc grn_timeval_now (grn_ctx *ctx, grn_timeval *tv)
void grn_time_now (grn_ctx *ctx, grn_obj *obj)
grn_rc grn_timeval2str (grn_ctx *ctx, grn_timeval *tv, char *buf)
grn_rc grn_str2timeval (const char *str, uint32_t str_len, grn_timeval *tv)
void grn_ctx_loader_clear (grn_ctx *ctx)
void grn_ctx_set_next_expr (grn_ctx *ctx, grn_obj *expr)
void grn_ctx_impl_err (grn_ctx *ctx)
grn_bool grn_ctx_impl_should_log (grn_ctx *ctx)
void grn_ctx_impl_set_current_error_message (grn_ctx *ctx)
grn_rc grn_ctx_init (grn_ctx *ctx, int flags)
grn_ctxgrn_ctx_open (int flags)
grn_rc grn_ctx_fin (grn_ctx *ctx)
grn_rc grn_ctx_set_finalizer (grn_ctx *ctx, grn_proc_func *finalizer)
void grn_default_logger_set_max_level (grn_log_level max_level)
grn_log_level grn_default_logger_get_max_level (void)
void grn_default_logger_set_path (const char *path)
const char * grn_default_logger_get_path (void)
void grn_logger_reopen (grn_ctx *ctx)
grn_rc grn_logger_info_set (grn_ctx *ctx, const grn_logger_info *info)
grn_rc grn_logger_set (grn_ctx *ctx, const grn_logger *logger)
void grn_logger_set_max_level (grn_ctx *ctx, grn_log_level max_level)
grn_log_level grn_logger_get_max_level (grn_ctx *ctx)
grn_bool grn_logger_pass (grn_ctx *ctx, grn_log_level level)
void grn_logger_put (grn_ctx *ctx, grn_log_level level, const char *file, int line, const char *func, const char *fmt,...)
void grn_default_query_logger_set_flags (unsigned int flags)
unsigned int grn_default_query_logger_get_flags (void)
void grn_default_query_logger_set_path (const char *path)
const char * grn_default_query_logger_get_path (void)
void grn_query_logger_reopen (grn_ctx *ctx)
grn_rc grn_query_logger_set (grn_ctx *ctx, const grn_query_logger *logger)
grn_bool grn_query_logger_pass (grn_ctx *ctx, unsigned int flag)
void grn_query_logger_put (grn_ctx *ctx, unsigned int flag, const char *mark, const char *format,...)
void grn_log_reopen (grn_ctx *ctx)
grn_rc grn_init (void)
grn_encoding grn_get_default_encoding (void)
grn_rc grn_set_default_encoding (grn_encoding encoding)
grn_command_version grn_get_default_command_version (void)
grn_rc grn_set_default_command_version (grn_command_version version)
long long int grn_get_default_match_escalation_threshold (void)
grn_rc grn_set_default_match_escalation_threshold (long long int threshold)
grn_rc grn_fin (void)
grn_rc grn_ctx_connect (grn_ctx *ctx, const char *host, int port, int flags)
grn_rc grn_ctx_close (grn_ctx *ctx)
grn_command_version grn_ctx_get_command_version (grn_ctx *ctx)
const char * grn_ctx_get_mime_type (grn_ctx *ctx)
grn_rc grn_ctx_set_command_version (grn_ctx *ctx, grn_command_version version)
long long int grn_ctx_get_match_escalation_threshold (grn_ctx *ctx)
grn_rc grn_ctx_set_match_escalation_threshold (grn_ctx *ctx, long long int threshold)
grn_content_type grn_get_ctype (grn_obj *var)
grn_objgrn_ctx_qe_exec_uri (grn_ctx *ctx, const char *path, uint32_t path_len)
grn_objgrn_ctx_qe_exec (grn_ctx *ctx, const char *str, uint32_t str_len)
grn_rc grn_ctx_sendv (grn_ctx *ctx, int argc, char **argv, int flags)
unsigned int grn_ctx_send (grn_ctx *ctx, const char *str, unsigned int str_len, int flags)
unsigned int grn_ctx_recv (grn_ctx *ctx, char **str, unsigned int *str_len, int *flags)
void grn_ctx_concat_func (grn_ctx *ctx, int flags, void *dummy)
void grn_ctx_stream_out_func (grn_ctx *ctx, int flags, void *stream)
void grn_ctx_recv_handler_set (grn_ctx *ctx, void(*func)(grn_ctx *, int, void *), void *func_arg)
grn_rc grn_ctx_info_get (grn_ctx *ctx, grn_ctx_info *info)
grn_cachegrn_cache_open (grn_ctx *ctx)
grn_rc grn_cache_close (grn_ctx *ctx, grn_cache *cache)
grn_rc grn_cache_current_set (grn_ctx *ctx, grn_cache *cache)
grn_cachegrn_cache_current_get (grn_ctx *ctx)
void grn_cache_init (void)
grn_rc grn_cache_set_max_n_entries (grn_ctx *ctx, grn_cache *cache, unsigned int n)
uint32_t grn_cache_get_max_n_entries (grn_ctx *ctx, grn_cache *cache)
void grn_cache_get_statistics (grn_ctx *ctx, grn_cache *cache, grn_cache_statistics *statistics)
grn_objgrn_cache_fetch (grn_ctx *ctx, grn_cache *cache, const char *str, uint32_t str_len)
void grn_cache_unref (grn_ctx *ctx, grn_cache *cache, const char *str, uint32_t str_len)
void grn_cache_update (grn_ctx *ctx, grn_cache *cache, const char *str, uint32_t str_len, grn_obj *value)
void grn_cache_expire (grn_cache *cache, int32_t size)
void grn_cache_fin (void)
void * grn_ctx_alloc (grn_ctx *ctx, size_t size, int flags, const char *file, int line, const char *func)
void * grn_ctx_malloc (grn_ctx *ctx, size_t size, const char *file, int line, const char *func)
void * grn_ctx_calloc (grn_ctx *ctx, size_t size, const char *file, int line, const char *func)
void * grn_ctx_realloc (grn_ctx *ctx, void *ptr, size_t size, const char *file, int line, const char *func)
char * grn_ctx_strdup (grn_ctx *ctx, const char *s, const char *file, int line, const char *func)
void grn_ctx_free (grn_ctx *ctx, void *ptr, const char *file, int line, const char *func)
grn_rc grn_ctx_use (grn_ctx *ctx, grn_obj *db)
void * grn_ctx_alloc_lifo (grn_ctx *ctx, size_t size, const char *file, int line, const char *func)
void grn_ctx_free_lifo (grn_ctx *ctx, void *ptr, const char *file, int line, const char *func)
void * grn_malloc_default (grn_ctx *ctx, size_t size, const char *file, int line, const char *func)
void * grn_calloc_default (grn_ctx *ctx, size_t size, const char *file, int line, const char *func)
void grn_free_default (grn_ctx *ctx, void *ptr, const char *file, int line, const char *func)
void * grn_realloc_default (grn_ctx *ctx, void *ptr, size_t size, const char *file, int line, const char *func)
int grn_alloc_count (void)
char * grn_strdup_default (grn_ctx *ctx, const char *s, const char *file, int line, const char *func)
void grn_ctx_log (grn_ctx *ctx, const char *fmt,...)
void grn_assert (grn_ctx *ctx, int cond, const char *file, int line, const char *func)
const char * grn_get_version (void)
const char * grn_get_package (void)
grn_rc grn_set_segv_handler (void)
grn_rc grn_set_int_handler (void)
grn_rc grn_set_term_handler (void)
void grn_ctx_output_array_open (grn_ctx *ctx, const char *name, int nelements)
void grn_ctx_output_array_close (grn_ctx *ctx)
void grn_ctx_output_map_open (grn_ctx *ctx, const char *name, int nelements)
void grn_ctx_output_map_close (grn_ctx *ctx)
void grn_ctx_output_int32 (grn_ctx *ctx, int value)
void grn_ctx_output_int64 (grn_ctx *ctx, long long int value)
void grn_ctx_output_float (grn_ctx *ctx, double value)
void grn_ctx_output_cstr (grn_ctx *ctx, const char *value)
void grn_ctx_output_str (grn_ctx *ctx, const char *value, unsigned int value_len)
void grn_ctx_output_bool (grn_ctx *ctx, grn_bool value)
void grn_ctx_output_obj (grn_ctx *ctx, grn_obj *value, grn_obj_format *format)

Variables

grn_ctx grn_gctx = GRN_CTX_INITIALIZER(GRN_ENC_DEFAULT)
int grn_pagesize
grn_critical_section grn_glock
uint32_t grn_gtick
grn_timeval grn_starttime

Macro Definition Documentation

#define ALIGN_MASK   (ALIGN_SIZE-1)

Definition at line 2230 of file ctx.c.

#define ALIGN_SIZE   (1<<3)

Definition at line 2229 of file ctx.c.

#define COMMAND_VERSION   "command_version"

Definition at line 1630 of file ctx.c.

#define COMMAND_VERSION_LEN   (sizeof(COMMAND_VERSION) - 1)

Definition at line 1633 of file ctx.c.

#define DB_P (   s)    ((s) && (s)->header.type == GRN_DB)

Definition at line 2418 of file ctx.c.

#define EXPR_MISSING   "expr_missing"

Definition at line 1631 of file ctx.c.

#define GRN_ADD_ALLOC_COUNT (   count)
Value:
do { \
alloc_count += count; \
} while (0)

Definition at line 48 of file ctx.c.

#define grn_alloc_info_add (   address)

Definition at line 344 of file ctx.c.

#define grn_alloc_info_change (   old_address,
  new_address 
)

Definition at line 345 of file ctx.c.

#define grn_alloc_info_check (   address)

Definition at line 346 of file ctx.c.

#define grn_alloc_info_dump (   ctx)

Definition at line 347 of file ctx.c.

#define grn_alloc_info_free (   ctx)

Definition at line 348 of file ctx.c.

#define GRN_CTX_ALLOC_CLEAR   1

Definition at line 2231 of file ctx.c.

#define GRN_CTX_CLOSED (   ctx)    ((ctx)->stat == GRN_CTX_FIN)

Definition at line 40 of file ctx.c.

#define GRN_CTX_INITIALIZER (   enc)
Value:
{ GRN_SUCCESS, 0, enc, 0, GRN_LOG_NOTICE,\
GRN_CTX_FIN, 0, 0, 0, 0, {0}, NULL, NULL, NULL, NULL, NULL }

Definition at line 36 of file ctx.c.

#define GRN_CTX_SEGMENT_DIRTY   (1<<28)

Definition at line 364 of file ctx.c.

#define GRN_CTX_SEGMENT_LIFO   (1<<29)

Definition at line 363 of file ctx.c.

#define GRN_CTX_SEGMENT_MASK   (GRN_CTX_SEGMENT_SIZE - 1)

Definition at line 359 of file ctx.c.

#define GRN_CTX_SEGMENT_SIZE   (1<<22)

Definition at line 358 of file ctx.c.

#define GRN_CTX_SEGMENT_VLEN   (1<<30)

Definition at line 362 of file ctx.c.

#define GRN_CTX_SEGMENT_WORD   (1<<31)

Definition at line 361 of file ctx.c.

#define HTTP_QUERY_PAIR_DELIMITER   "="

Definition at line 1635 of file ctx.c.

#define HTTP_QUERY_PAIRS_DELIMITERS   "&;"

Definition at line 1636 of file ctx.c.

#define IMPL_SIZE   ((sizeof(struct _grn_ctx_impl) + (grn_pagesize - 1)) & ~(grn_pagesize - 1))

Definition at line 418 of file ctx.c.

#define INDEX_HTML   "index.html"

Definition at line 1628 of file ctx.c.

#define INFO_BUFFER_SIZE   40

Definition at line 1118 of file ctx.c.

#define LBUFSIZE   0x400

Definition at line 920 of file ctx.c.

#define MBUFSIZE   0x1000

Definition at line 919 of file ctx.c.

#define MESSAGE_BUFFER_SIZE   MBUFSIZE

Definition at line 1119 of file ctx.c.

#define OUTPUT_TYPE   "output_type"

Definition at line 1629 of file ctx.c.

#define OUTPUT_TYPE_LEN   (sizeof(OUTPUT_TYPE) - 1)

Definition at line 1632 of file ctx.c.

#define TBUFSIZE   GRN_TIMEVAL_STR_SIZE

Definition at line 918 of file ctx.c.

#define TIMESTAMP_BUFFER_SIZE   TBUFSIZE

Definition at line 1116 of file ctx.c.

Typedef Documentation

Definition at line 1987 of file ctx.c.

Function Documentation

int grn_alloc_count ( void  )

Definition at line 2724 of file ctx.c.

void grn_assert ( grn_ctx ctx,
int  cond,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2819 of file ctx.c.

grn_rc grn_cache_close ( grn_ctx ctx,
grn_cache cache 
)

Definition at line 2037 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_cache* grn_cache_current_get ( grn_ctx ctx)

Definition at line 2064 of file ctx.c.

Here is the caller graph for this function:

grn_rc grn_cache_current_set ( grn_ctx ctx,
grn_cache cache 
)

Definition at line 2057 of file ctx.c.

Here is the caller graph for this function:

void grn_cache_expire ( grn_cache cache,
int32_t  size 
)

Definition at line 2210 of file ctx.c.

grn_obj* grn_cache_fetch ( grn_ctx ctx,
grn_cache cache,
const char *  str,
uint32_t  str_len 
)

Definition at line 2119 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_cache_fin ( void  )

Definition at line 2221 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

uint32_t grn_cache_get_max_n_entries ( grn_ctx ctx,
grn_cache cache 
)

Definition at line 2087 of file ctx.c.

void grn_cache_get_statistics ( grn_ctx ctx,
grn_cache cache,
grn_cache_statistics statistics 
)

Definition at line 2096 of file ctx.c.

void grn_cache_init ( void  )

Definition at line 2070 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_cache* grn_cache_open ( grn_ctx ctx)

Definition at line 2012 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_cache_set_max_n_entries ( grn_ctx ctx,
grn_cache cache,
unsigned int  n 
)

Definition at line 2077 of file ctx.c.

Here is the caller graph for this function:

void grn_cache_unref ( grn_ctx ctx,
grn_cache cache,
const char *  str,
uint32_t  str_len 
)

Definition at line 2151 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_cache_update ( grn_ctx ctx,
grn_cache cache,
const char *  str,
uint32_t  str_len,
grn_obj value 
)

Definition at line 2164 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* grn_calloc_default ( grn_ctx ctx,
size_t  size,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2658 of file ctx.c.

void* grn_ctx_alloc ( grn_ctx ctx,
size_t  size,
int  flags,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2234 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* grn_ctx_alloc_lifo ( grn_ctx ctx,
size_t  size,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2443 of file ctx.c.

Here is the call graph for this function:

void* grn_ctx_calloc ( grn_ctx ctx,
size_t  size,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2318 of file ctx.c.

Here is the call graph for this function:

grn_rc grn_ctx_close ( grn_ctx ctx)

Definition at line 1427 of file ctx.c.

Here is the call graph for this function:

void grn_ctx_concat_func ( grn_ctx ctx,
int  flags,
void *  dummy 
)

Definition at line 1935 of file ctx.c.

Here is the call graph for this function:

grn_rc grn_ctx_connect ( grn_ctx ctx,
const char *  host,
int  port,
int  flags 
)

Definition at line 1411 of file ctx.c.

Here is the call graph for this function:

grn_rc grn_ctx_fin ( grn_ctx ctx)

Definition at line 624 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_ctx_free ( grn_ctx ctx,
void *  ptr,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2358 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_ctx_free_lifo ( grn_ctx ctx,
void *  ptr,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2498 of file ctx.c.

Here is the call graph for this function:

grn_command_version grn_ctx_get_command_version ( grn_ctx ctx)

Definition at line 1437 of file ctx.c.

Here is the caller graph for this function:

long long int grn_ctx_get_match_escalation_threshold ( grn_ctx ctx)

Definition at line 1475 of file ctx.c.

Here is the caller graph for this function:

const char* grn_ctx_get_mime_type ( grn_ctx ctx)

Definition at line 1447 of file ctx.c.

void grn_ctx_impl_err ( grn_ctx ctx)

Definition at line 525 of file ctx.c.

Here is the caller graph for this function:

void grn_ctx_impl_set_current_error_message ( grn_ctx ctx)

Definition at line 561 of file ctx.c.

grn_bool grn_ctx_impl_should_log ( grn_ctx ctx)

Definition at line 546 of file ctx.c.

grn_rc grn_ctx_info_get ( grn_ctx ctx,
grn_ctx_info info 
)

Definition at line 1969 of file ctx.c.

grn_rc grn_ctx_init ( grn_ctx ctx,
int  flags 
)

Definition at line 572 of file ctx.c.

Here is the caller graph for this function:

void grn_ctx_loader_clear ( grn_ctx ctx)

Definition at line 401 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_ctx_log ( grn_ctx ctx,
const char *  fmt,
  ... 
)

Definition at line 2810 of file ctx.c.

void* grn_ctx_malloc ( grn_ctx ctx,
size_t  size,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2311 of file ctx.c.

Here is the call graph for this function:

grn_ctx* grn_ctx_open ( int  flags)

Definition at line 609 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_ctx_output_array_close ( grn_ctx ctx)

Definition at line 2961 of file ctx.c.

Here is the call graph for this function:

void grn_ctx_output_array_open ( grn_ctx ctx,
const char *  name,
int  nelements 
)

Definition at line 2954 of file ctx.c.

Here is the call graph for this function:

void grn_ctx_output_bool ( grn_ctx ctx,
grn_bool  value 
)

Definition at line 3011 of file ctx.c.

Here is the call graph for this function:

void grn_ctx_output_cstr ( grn_ctx ctx,
const char *  value 
)

Definition at line 2998 of file ctx.c.

Here is the call graph for this function:

void grn_ctx_output_float ( grn_ctx ctx,
double  value 
)

Definition at line 2992 of file ctx.c.

Here is the call graph for this function:

void grn_ctx_output_int32 ( grn_ctx ctx,
int  value 
)

Definition at line 2980 of file ctx.c.

Here is the call graph for this function:

void grn_ctx_output_int64 ( grn_ctx ctx,
long long int  value 
)

Definition at line 2986 of file ctx.c.

Here is the call graph for this function:

void grn_ctx_output_map_close ( grn_ctx ctx)

Definition at line 2974 of file ctx.c.

Here is the call graph for this function:

void grn_ctx_output_map_open ( grn_ctx ctx,
const char *  name,
int  nelements 
)

Definition at line 2967 of file ctx.c.

Here is the call graph for this function:

void grn_ctx_output_obj ( grn_ctx ctx,
grn_obj value,
grn_obj_format format 
)

Definition at line 3017 of file ctx.c.

Here is the call graph for this function:

void grn_ctx_output_str ( grn_ctx ctx,
const char *  value,
unsigned int  value_len 
)

Definition at line 3004 of file ctx.c.

Here is the call graph for this function:

grn_obj* grn_ctx_qe_exec ( grn_ctx ctx,
const char *  str,
uint32_t  str_len 
)

Definition at line 1700 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_obj* grn_ctx_qe_exec_uri ( grn_ctx ctx,
const char *  path,
uint32_t  path_len 
)

Definition at line 1646 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* grn_ctx_realloc ( grn_ctx ctx,
void *  ptr,
size_t  size,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2325 of file ctx.c.

Here is the call graph for this function:

unsigned int grn_ctx_recv ( grn_ctx ctx,
char **  str,
unsigned int *  str_len,
int *  flags 
)

Definition at line 1875 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_ctx_recv_handler_set ( grn_ctx ctx,
void(*)(grn_ctx *, int, void *)  func,
void *  func_arg 
)

Definition at line 1960 of file ctx.c.

unsigned int grn_ctx_send ( grn_ctx ctx,
const char *  str,
unsigned int  str_len,
int  flags 
)

Definition at line 1805 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_ctx_sendv ( grn_ctx ctx,
int  argc,
char **  argv,
int  flags 
)

Definition at line 1769 of file ctx.c.

Here is the call graph for this function:

grn_rc grn_ctx_set_command_version ( grn_ctx ctx,
grn_command_version  version 
)

Definition at line 1457 of file ctx.c.

Here is the caller graph for this function:

grn_rc grn_ctx_set_finalizer ( grn_ctx ctx,
grn_proc_func finalizer 
)

Definition at line 719 of file ctx.c.

grn_rc grn_ctx_set_match_escalation_threshold ( grn_ctx ctx,
long long int  threshold 
)

Definition at line 1485 of file ctx.c.

Here is the caller graph for this function:

void grn_ctx_set_next_expr ( grn_ctx ctx,
grn_obj expr 
)

Definition at line 519 of file ctx.c.

char* grn_ctx_strdup ( grn_ctx ctx,
const char *  s,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2345 of file ctx.c.

Here is the call graph for this function:

void grn_ctx_stream_out_func ( grn_ctx ctx,
int  flags,
void *  stream 
)

Definition at line 1944 of file ctx.c.

grn_rc grn_ctx_use ( grn_ctx ctx,
grn_obj db 
)

Definition at line 2421 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_log_level grn_default_logger_get_max_level ( void  )

Definition at line 813 of file ctx.c.

const char* grn_default_logger_get_path ( void  )

Definition at line 833 of file ctx.c.

void grn_default_logger_set_max_level ( grn_log_level  max_level)

Definition at line 804 of file ctx.c.

Here is the caller graph for this function:

void grn_default_logger_set_path ( const char *  path)

Definition at line 819 of file ctx.c.

Here is the caller graph for this function:

unsigned int grn_default_query_logger_get_flags ( void  )

Definition at line 1057 of file ctx.c.

const char* grn_default_query_logger_get_path ( void  )

Definition at line 1077 of file ctx.c.

void grn_default_query_logger_set_flags ( unsigned int  flags)

Definition at line 1048 of file ctx.c.

void grn_default_query_logger_set_path ( const char *  path)

Definition at line 1063 of file ctx.c.

Here is the caller graph for this function:

grn_rc grn_fin ( void  )

Definition at line 1383 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_free_default ( grn_ctx ctx,
void *  ptr,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2681 of file ctx.c.

grn_content_type grn_get_ctype ( grn_obj var)

Definition at line 1492 of file ctx.c.

grn_command_version grn_get_default_command_version ( void  )

Definition at line 1357 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_encoding grn_get_default_encoding ( void  )

Definition at line 1331 of file ctx.c.

Here is the caller graph for this function:

long long int grn_get_default_match_escalation_threshold ( void  )

Definition at line 1369 of file ctx.c.

Here is the call graph for this function:

const char* grn_get_package ( void  )

Definition at line 2833 of file ctx.c.

const char* grn_get_version ( void  )

Definition at line 2827 of file ctx.c.

Here is the caller graph for this function:

grn_rc grn_init ( void  )

Definition at line 1233 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_log_reopen ( grn_ctx ctx)

Definition at line 1186 of file ctx.c.

Here is the call graph for this function:

grn_log_level grn_logger_get_max_level ( grn_ctx ctx)

Definition at line 907 of file ctx.c.

grn_rc grn_logger_info_set ( grn_ctx ctx,
const grn_logger_info info 
)

Definition at line 866 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_bool grn_logger_pass ( grn_ctx ctx,
grn_log_level  level 
)

Definition at line 913 of file ctx.c.

void grn_logger_put ( grn_ctx ctx,
grn_log_level  level,
const char *  file,
int  line,
const char *  func,
const char *  fmt,
  ... 
)

Definition at line 923 of file ctx.c.

Here is the call graph for this function:

void grn_logger_reopen ( grn_ctx ctx)

Definition at line 839 of file ctx.c.

Here is the caller graph for this function:

grn_rc grn_logger_set ( grn_ctx ctx,
const grn_logger logger 
)

Definition at line 889 of file ctx.c.

Here is the caller graph for this function:

void grn_logger_set_max_level ( grn_ctx ctx,
grn_log_level  max_level 
)

Definition at line 901 of file ctx.c.

void* grn_malloc_default ( grn_ctx ctx,
size_t  size,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2636 of file ctx.c.

void grn_nanosleep ( uint64_t  nanoseconds)

Definition at line 73 of file ctx.c.

Here is the caller graph for this function:

grn_bool grn_query_logger_pass ( grn_ctx ctx,
unsigned int  flag 
)

Definition at line 1111 of file ctx.c.

void grn_query_logger_put ( grn_ctx ctx,
unsigned int  flag,
const char *  mark,
const char *  format,
  ... 
)

Definition at line 1122 of file ctx.c.

Here is the call graph for this function:

void grn_query_logger_reopen ( grn_ctx ctx)

Definition at line 1083 of file ctx.c.

Here is the caller graph for this function:

grn_rc grn_query_logger_set ( grn_ctx ctx,
const grn_query_logger logger 
)

Definition at line 1099 of file ctx.c.

void* grn_realloc_default ( grn_ctx ctx,
void *  ptr,
size_t  size,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2696 of file ctx.c.

grn_rc grn_set_default_command_version ( grn_command_version  version)

Definition at line 1363 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_set_default_encoding ( grn_encoding  encoding)

Definition at line 1337 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_set_default_match_escalation_threshold ( long long int  threshold)

Definition at line 1375 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_set_int_handler ( void  )

Definition at line 2914 of file ctx.c.

Here is the caller graph for this function:

grn_rc grn_set_segv_handler ( void  )

Definition at line 2876 of file ctx.c.

Here is the caller graph for this function:

grn_rc grn_set_term_handler ( void  )

Definition at line 2934 of file ctx.c.

Here is the caller graph for this function:

void grn_sleep ( uint32_t  seconds)

Definition at line 63 of file ctx.c.

grn_rc grn_str2timeval ( const char *  str,
uint32_t  str_len,
grn_timeval tv 
)

Definition at line 152 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* grn_strdup_default ( grn_ctx ctx,
const char *  s,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2730 of file ctx.c.

void grn_time_now ( grn_ctx ctx,
grn_obj obj 
)

Definition at line 122 of file ctx.c.

Here is the call graph for this function:

grn_rc grn_timeval2str ( grn_ctx ctx,
grn_timeval tv,
char *  buf 
)

Definition at line 131 of file ctx.c.

Here is the caller graph for this function:

grn_rc grn_timeval_now ( grn_ctx ctx,
grn_timeval tv 
)

Definition at line 88 of file ctx.c.

Here is the caller graph for this function:

Variable Documentation

Definition at line 53 of file ctx.c.

grn_critical_section grn_glock

Definition at line 55 of file ctx.c.

uint32_t grn_gtick

Definition at line 56 of file ctx.c.

int grn_pagesize

Definition at line 54 of file ctx.c.

grn_timeval grn_starttime

Definition at line 730 of file ctx.c.