CUBRID Engine  latest
cas_util.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/time.h>
#include <assert.h>
#include "cas_common.h"
#include "cas_util.h"
#include "cas_net_buf.h"
Include dependency graph for cas_util.c:

Go to the source code of this file.

Functions

char * ut_uchar2ipstr (unsigned char *ip_addr)
 
char * ut_trim (char *str)
 
void ut_tolower (char *str)
 
void ut_timeval_diff (struct timeval *start, struct timeval *end, int *res_sec, int *res_msec)
 
int ut_check_timeout (struct timeval *start_time, struct timeval *end_time, int timeout_msec, int *res_sec, int *res_msec)
 

Function Documentation

int ut_check_timeout ( struct timeval *  start_time,
struct timeval *  end_time,
int  timeout_msec,
int *  res_sec,
int *  res_msec 
)

Definition at line 119 of file cas_util.c.

References assert, NULL, and ut_timeval_diff().

Referenced by fn_end_tran(), fn_execute_array(), fn_execute_internal(), and ux_auto_commit().

Here is the caller graph for this function:

void ut_timeval_diff ( struct timeval *  start,
struct timeval *  end,
int *  res_sec,
int *  res_msec 
)

Definition at line 101 of file cas_util.c.

References assert, and NULL.

Referenced by fn_end_tran(), fn_execute_array(), fn_execute_internal(), fn_lob_new(), fn_lob_read(), fn_lob_write(), and ut_check_timeout().

Here is the caller graph for this function:

void ut_tolower ( char *  str)

Definition at line 86 of file cas_util.c.

References is_bind_with_size(), NULL, p, and strlen.

char* ut_trim ( char *  str)

Definition at line 55 of file cas_util.c.

References NULL, p, and strlen.

char* ut_uchar2ipstr ( unsigned char *  ip_addr)

Definition at line 43 of file cas_util.c.

References assert, and NULL.

Referenced by cas_log_debug(), client_monitor(), and proxy_access_log().

Here is the caller graph for this function: