t_stub.c

This file contains really simple implementations for rsync global functions, so that module test harnesses can run standalone. [詳細]

ソースコードを見る。


関数

void rprintf (UNUSED(enum logcode code), const char *format,...)
void rsyserr (UNUSED(enum logcode code), int errcode, const char *format,...)
void _exit_cleanup (int code, const char *file, int line)
int check_filter (UNUSED(struct filter_list_struct *listp), UNUSED(char *name), UNUSED(int name_is_dir))
char * lp_name (UNUSED(int mod))
BOOL lp_use_chroot (UNUSED(int mod))
char * lp_path (UNUSED(int mod))

変数

int modify_window = 0
int module_id = -1
int relative_paths = 0
int human_readable = 0
mode_t orig_umask = 002
char * partial_dir
filter_list_struct server_filter_list

説明

This file contains really simple implementations for rsync global functions, so that module test harnesses can run standalone.

t_stub.c で定義されています。


関数

void rprintf ( UNUSED(enum logcode code ,
const char *  format,
  ... 
)

t_stub.c37 行で定義されています。

00038 {
00039         va_list ap;
00040         va_start(ap, format);
00041         vfprintf(stderr, format, ap);
00042         va_end(ap);
00043 }

void rsyserr ( UNUSED(enum logcode code ,
int  errcode,
const char *  format,
  ... 
)

t_stub.c45 行で定義されています。

00046 {
00047         va_list ap;
00048         fputs(RSYNC_NAME ": ", stderr);
00049         va_start(ap, format);
00050         vfprintf(stderr, format, ap);
00051         va_end(ap);
00052         fprintf(stderr, ": %s (%d)\n", strerror(errcode), errcode);
00053 }

void _exit_cleanup ( int  code,
const char *  file,
int  line 
)

t_stub.c55 行で定義されています。

00056 {
00057         fprintf(stderr, "exit(%d): %s(%d)\n",
00058                 code, file, line);
00059         exit(code);
00060 }

int check_filter ( UNUSED(struct filter_list_struct *listp)  ,
UNUSED(char *name ,
UNUSED(int name_is_dir)   
)

t_stub.c62 行で定義されています。

00064 {
00065         /* This function doesn't really get called in this test context, so
00066          * just return 0. */
00067         return 0;
00068 }

char* lp_name ( UNUSED(int mod)   ) 

t_stub.c70 行で定義されています。

参照元 auth_server()full_fname()log_formatted()lp_number()rsync_module()send_listing().

00071 {
00072     return NULL;
00073 }

BOOL lp_use_chroot ( UNUSED(int mod)   ) 

t_stub.c75 行で定義されています。

参照元 full_fname()get_cvs_excludes()rsync_module().

00076 {
00077     return 0;
00078 }

char* lp_path ( UNUSED(int mod)   ) 

t_stub.c80 行で定義されています。

参照元 full_fname()log_formatted()rsync_module()sanitize_path().

00081 {
00082     return NULL;
00083 }


変数

int modify_window = 0

t_stub.c29 行で定義されています。

int module_id = -1

t_stub.c30 行で定義されています。

int relative_paths = 0

t_stub.c31 行で定義されています。

int human_readable = 0

t_stub.c32 行で定義されています。

mode_t orig_umask = 002

t_stub.c33 行で定義されています。

char* partial_dir

t_stub.c34 行で定義されています。

struct filter_list_struct server_filter_list

t_stub.c35 行で定義されています。


rsyncに対してSat Dec 5 19:45:45 2009に生成されました。  doxygen 1.4.7