The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
Functions
file.c File Reference
#include <freeradius-devel/util/iovec.h>
#include <sys/stat.h>
#include "file.h"
+ Include dependency graph for file.c:

Go to the source code of this file.

Functions

static void _batch_write (rlm_linelog_file_t *file)
 
static void _batching_cleanup_timer (UNUSED fr_timer_list_t *tl, UNUSED fr_time_t now, void *uctx)
 
static void _batching_handle_signal (NDEBUG_UNUSED request_t *request, NDEBUG_UNUSED fr_signal_t action, rlm_linelog_file_entry_t *entry)
 
static void _batching_handle_timeout (UNUSED fr_timer_list_t *tl, UNUSED fr_time_t now, void *uctx)
 
static int _file_free (rlm_linelog_file_t *file)
 
static void batching_mark_entries_failed (rlm_linelog_file_t *file, rlm_linelog_file_entry_t *start_entry, int error)
 
void file_batching_mod_handle_signal (module_ctx_t const *mctx, request_t *request, fr_signal_t action)
 
unlang_action_t file_batching_mod_resume (UNUSED unlang_result_t *p_result, module_ctx_t const *mctx, request_t *request)
 
void file_batching_xlat_handle_signal (xlat_ctx_t const *xctx, request_t *request, fr_signal_t action)
 
xlat_action_t file_batching_xlat_resume (TALLOC_CTX *ctx, fr_dcursor_t *out, xlat_ctx_t const *xctx, request_t *request, UNUSED fr_value_box_list_t *in)
 
linelog_buffer_action_t file_enqueue_write (rlm_linelog_file_entry_t **entry_p, module_ctx_t const *mctx, linelog_call_env_t const *call_env, request_t *request, struct iovec *vector_p, size_t vector_len)
 
void file_thread_init (rlm_linelog_thread_t *thread, fr_timer_list_t *tl)
 
static int8_t filename_cmp (void const *one, void const *two)
 
static uint32_t filename_hash (void const *data)
 

Function Documentation

◆ _batch_write()

static void _batch_write ( rlm_linelog_file_t file)
static

Definition at line 124 of file file.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _batching_cleanup_timer()

static void _batching_cleanup_timer ( UNUSED fr_timer_list_t tl,
UNUSED fr_time_t  now,
void *  uctx 
)
static

Definition at line 104 of file file.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _batching_handle_signal()

static void _batching_handle_signal ( NDEBUG_UNUSED request_t request,
NDEBUG_UNUSED fr_signal_t  action,
rlm_linelog_file_entry_t entry 
)
inlinestatic

Definition at line 78 of file file.c.

+ Here is the caller graph for this function:

◆ _batching_handle_timeout()

static void _batching_handle_timeout ( UNUSED fr_timer_list_t tl,
UNUSED fr_time_t  now,
void *  uctx 
)
static

Definition at line 265 of file file.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _file_free()

static int _file_free ( rlm_linelog_file_t file)
static

Definition at line 97 of file file.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ batching_mark_entries_failed()

static void batching_mark_entries_failed ( rlm_linelog_file_t file,
rlm_linelog_file_entry_t start_entry,
int  error 
)
inlinestatic

Definition at line 110 of file file.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ file_batching_mod_handle_signal()

void file_batching_mod_handle_signal ( module_ctx_t const *  mctx,
request_t request,
fr_signal_t  action 
)

Definition at line 87 of file file.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ file_batching_mod_resume()

unlang_action_t file_batching_mod_resume ( UNUSED unlang_result_t p_result,
module_ctx_t const *  mctx,
request_t request 
)

Definition at line 46 of file file.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ file_batching_xlat_handle_signal()

void file_batching_xlat_handle_signal ( xlat_ctx_t const *  xctx,
request_t request,
fr_signal_t  action 
)

Definition at line 92 of file file.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ file_batching_xlat_resume()

xlat_action_t file_batching_xlat_resume ( TALLOC_CTX *  ctx,
fr_dcursor_t out,
xlat_ctx_t const *  xctx,
request_t request,
UNUSED fr_value_box_list_t *  in 
)

Definition at line 58 of file file.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ file_enqueue_write()

linelog_buffer_action_t file_enqueue_write ( rlm_linelog_file_entry_t **  entry_p,
module_ctx_t const *  mctx,
linelog_call_env_t const *  call_env,
request_t request,
struct iovec *  vector_p,
size_t  vector_len 
)

Definition at line 270 of file file.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ file_thread_init()

void file_thread_init ( rlm_linelog_thread_t thread,
fr_timer_list_t tl 
)

Definition at line 358 of file file.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ filename_cmp()

static int8_t filename_cmp ( void const *  one,
void const *  two 
)
static

Definition at line 38 of file file.c.

+ Here is the caller graph for this function:

◆ filename_hash()

static uint32_t filename_hash ( void const *  data)
static

Definition at line 31 of file file.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: