Defines |
#define | g_strdup xstrdup |
#define | g_free free |
#define | MAXCOLS 30 |
#define | alloca_strdup(_s) strcpy(alloca(strlen(_s)+1), (_s)) |
Enumerations |
enum | ftpSysCall_t {
DO_FTP_STAT = 1,
DO_FTP_LSTAT = 2,
DO_FTP_READLINK = 3,
DO_FTP_ACCESS = 4,
DO_FTP_GLOB = 5
} |
Functions |
static int | ftpMkdir (const char *path, mode_t mode) |
static int | ftpChdir (const char *path) |
static int | ftpRmdir (const char *path) |
static int | ftpRename (const char *oldpath, const char *newpath) |
static int | ftpUnlink (const char *path) |
int | Mkdir (const char *path, mode_t mode) |
| mkdir(2) clone.
|
int | Chdir (const char *path) |
| chdir(2) clone.
|
int | Rmdir (const char *path) |
| rmdir(2) clone.
|
int | Rename (const char *oldpath, const char *newpath) |
| rename(2) clone.
|
int | Link (const char *oldpath, const char *newpath) |
| link(2) clone.
|
int | Unlink (const char *path) |
| unlink(2) clone.
|
static int | vfs_split_text (char *p) |
static int | is_num (int idx) |
static int | is_dos_date (const char *str) |
static int | is_week (const char *str, struct tm *tim) |
static int | is_month (const char *str, struct tm *tim) |
static int | is_time (const char *str, struct tm *tim) |
static int | is_year (const char *str, struct tm *tim) |
static int | vfs_parse_filetype (char c) |
static int | vfs_parse_filemode (const char *p) |
static int | vfs_parse_filedate (int idx, time_t *t) |
static int | vfs_parse_ls_lga (char *p, struct stat *st, const char **filename, const char **linkname) |
static int | ftpNLST (const char *url, ftpSysCall_t ftpSysCall, struct stat *st, char *rlbuf, size_t rlbufsiz) |
static int | ftpStat (const char *path, struct stat *st) |
static int | ftpLstat (const char *path, struct stat *st) |
static int | ftpReadlink (const char *path, char *buf, size_t bufsiz) |
static int | ftpGlob (const char *path, int flags, int errfunc(const char *epath, int eerno), glob_t *pglob) |
static void | ftpGlobfree (glob_t *pglob) |
int | Stat (const char *path, struct stat *st) |
| stat(2) clone.
|
int | Lstat (const char *path, struct stat *st) |
| lstat(2) clone.
|
int | Readlink (const char *path, char *buf, size_t bufsiz) |
| readlink(2) clone.
|
int | Access (const char *path, int amode) |
| access(2) clone.
|
int | Glob (const char *pattern, int flags, int errfunc(const char *epath, int eerrno), glob_t *pglob) |
| glob(3) clone.
|
void | Globfree (glob_t *pglob) |
| globfree(3) clone.
|
DIR * | Opendir (const char *path) |
| opendir(3) clone.
|
struct dirent * | Readdir (DIR *dir) |
| readdir(3) clone.
|
int | Closedir (DIR *dir) |
| closedir(3) clone.
|
Variables |
int | _rpmio_debug |
static int | current_mday |
static int | current_mon |
static int | current_year |
static char * | columns [30] |
static int | column_ptr [30] |
static size_t | ftpBufAlloced = 0 |
static char * | ftpBuf = NULL |