#include "system.h"#include <rpmio_internal.h>#include <rpmmacro.h>#include <rpmmessages.h>#include <popt.h>#include "debug.h"Go to the source code of this file.
Defines | |
| #define | HTTPSPATH "https://localhost/rawhide/toad/tput.txt" |
| #define | HTTPPATH "http://localhost/rawhide/toad/tput.txt" |
| #define | FTPPATH "ftp://localhost/home/test/tput.txt" |
| #define | DIRPATH "file://localhost/var/ftp/tput.txt" |
Functions | |
| static size_t | readFile (const char *path) |
| static size_t | writeFile (const char *path) |
| static int | unlinkFile (const char *path) |
| static void | doFile (const char *path) |
| int | main (int argc, const char *argv[]) |
Variables | |
| static int | _debug = 0 |
| static char * | httpspath = "https://localhost/rawhide/toad/tput.txt" |
| static char * | httppath = "http://localhost/rawhide/toad/tput.txt" |
| static char * | ftppath = "ftp://localhost/home/test/tput.txt" |
| static char * | dirpath = "file://localhost/var/ftp/tput.txt" |
| static struct poptOption | optionsTable [] |
| static void doFile | ( | const char * | path | ) | [static] |
Definition at line 73 of file tput.c.
References readFile(), Unlink(), unlinkFile(), and writeFile().
Referenced by main().
| int main | ( | int | argc, | |
| const char * | argv[] | |||
| ) |
Definition at line 112 of file tput.c.
References _av_debug, _dav_debug, _debug, _ftp_debug, dirpath, doFile(), ftppath, httppath, httpspath, optionsTable, rpmIncreaseVerbosity, and urlFreeCache().
| static size_t readFile | ( | const char * | path | ) | [static] |
| static int unlinkFile | ( | const char * | path | ) | [static] |
| static size_t writeFile | ( | const char * | path | ) | [static] |
char* httppath = "http://localhost/rawhide/toad/tput.txt" [static] |
char* httpspath = "https://localhost/rawhide/toad/tput.txt" [static] |
struct poptOption optionsTable[] [static] |
Initial value:
{
{ "debug", 'd', POPT_ARG_VAL, &_debug, -1, NULL, NULL },
{ "ftpdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_ftp_debug, -1,
"debug protocol data stream" , NULL},
{ "rpmiodebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmio_debug, -1,
"debug rpmio I/O" , NULL},
{ "urldebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_url_debug, -1,
"debug URL cache handling" , NULL},
{ "verbose", 'v', 0, 0, 'v', NULL, NULL },
POPT_AUTOHELP
POPT_TABLEEND
}
1.5.1