File porting.c
FileList > base > porting.c
Go to the source code of this file
#include "config.h"
#include <stdio.h>
#include <assert.h>
#include <errno.h>
#include <signal.h>
#include <ctype.h>
#include <time.h>
#include <unistd.h>
#include <curses.h>
#include "porting.h"
#include <stdarg.h>
#include <sys/types.h>
#include <string.h>
#include "memory_wrapper.hpp"
Public Functions
| Type |
Name |
| int |
asprintf (char ** ptr, const char * format, ...)
|
| char * |
basename (const char * path)
|
| int |
basename_r (const char * path, char * pathbuf, size_t buflen)
|
| int |
cub_dirname_r (const char * path, char * pathbuf, size_t buflen)
|
| char * |
cub_strdup (const char * str, __FILE__, __LINE__)
|
| char * |
dirname (const char * path)
|
| char * |
getuserid (char * string, int size)
|
| int |
itona (int i, char * s, size_t n)
|
| int |
msleep (const long msec)
|
| int |
os_rename_file (const char * src_path, const char * dest_path)
|
| void |
os_send_signal (const int sig_no)
|
| SIGNAL_HANDLER_FUNCTION |
os_set_signal_handler (const int sig_no, SIGNAL_HANDLER_FUNCTION sig_handler)
|
| int |
parse_bigint (INT64 * ret_p, const char * str_p, int base)
|
| int |
parse_int (int * ret_p, const char * str_p, int base)
|
| void |
port_close_memstream (FILE * fp, char ** ptr, size_t * sizeloc)
|
| FILE * |
port_open_memstream (char ** ptr, size_t * sizeloc)
|
| int |
str_to_double (double * ret_p, char ** end_p, const char * str_p)
|
| int |
str_to_float (float * ret_p, char ** end_p, const char * str_p)
|
| int |
str_to_int32 (int * ret_p, char ** end_p, const char * str_p, int base)
|
| int |
str_to_int64 (INT64 * ret_p, char ** end_p, const char * str_p, int base)
|
| int |
str_to_uint32 (unsigned int * ret_p, char ** end_p, const char * str_p, int base)
|
| int |
str_to_uint64 (UINT64 * ret_p, char ** end_p, const char * str_p, int base)
|
| char * |
stristr (const char * s, const char * find)
|
| size_t |
strlcpy (char * dst, const char * src, size_t siz)
|
| int |
timeval_add_msec (struct timeval * added_time, const struct timeval * start_time, int msec)
|
| INT64 |
timeval_diff_in_msec (const struct timeval * end_time, const struct timeval * start_time)
|
| int |
timeval_to_timespec (struct timespec * to, const struct timeval * from)
|
| int |
utona (unsigned int u, char * s, size_t n)
|
| int |
vasprintf (char ** ptr, const char * format, va_list ap)
|
Public Functions Documentation
function asprintf
int asprintf (
char ** ptr,
const char * format,
...
)
function basename
char * basename (
const char * path
)
function basename_r
int basename_r (
const char * path,
char * pathbuf,
size_t buflen
)
function cub_dirname_r
int cub_dirname_r (
const char * path,
char * pathbuf,
size_t buflen
)
function cub_strdup
char * cub_strdup (
const char * str,
__FILE__,
__LINE__
)
function dirname
char * dirname (
const char * path
)
function getuserid
char * getuserid (
char * string,
int size
)
function itona
int itona (
int i,
char * s,
size_t n
)
function msleep
int msleep (
const long msec
)
function os_rename_file
int os_rename_file (
const char * src_path,
const char * dest_path
)
function os_send_signal
void os_send_signal (
const int sig_no
)
function os_set_signal_handler
SIGNAL_HANDLER_FUNCTION os_set_signal_handler (
const int sig_no,
SIGNAL_HANDLER_FUNCTION sig_handler
)
function parse_bigint
int parse_bigint (
INT64 * ret_p,
const char * str_p,
int base
)
function parse_int
int parse_int (
int * ret_p,
const char * str_p,
int base
)
function port_close_memstream
void port_close_memstream (
FILE * fp,
char ** ptr,
size_t * sizeloc
)
function port_open_memstream
FILE * port_open_memstream (
char ** ptr,
size_t * sizeloc
)
function str_to_double
int str_to_double (
double * ret_p,
char ** end_p,
const char * str_p
)
function str_to_float
int str_to_float (
float * ret_p,
char ** end_p,
const char * str_p
)
function str_to_int32
int str_to_int32 (
int * ret_p,
char ** end_p,
const char * str_p,
int base
)
function str_to_int64
int str_to_int64 (
INT64 * ret_p,
char ** end_p,
const char * str_p,
int base
)
function str_to_uint32
int str_to_uint32 (
unsigned int * ret_p,
char ** end_p,
const char * str_p,
int base
)
function str_to_uint64
int str_to_uint64 (
UINT64 * ret_p,
char ** end_p,
const char * str_p,
int base
)
function stristr
char * stristr (
const char * s,
const char * find
)
function strlcpy
size_t strlcpy (
char * dst,
const char * src,
size_t siz
)
function timeval_add_msec
int timeval_add_msec (
struct timeval * added_time,
const struct timeval * start_time,
int msec
)
function timeval_diff_in_msec
INT64 timeval_diff_in_msec (
const struct timeval * end_time,
const struct timeval * start_time
)
function timeval_to_timespec
int timeval_to_timespec (
struct timespec * to,
const struct timeval * from
)
function utona
int utona (
unsigned int u,
char * s,
size_t n
)
function vasprintf
int vasprintf (
char ** ptr,
const char * format,
va_list ap
)
The documentation for this class was generated from the following file cubrid/src/base/porting.c