Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

rpmio/rpmrpc.c File Reference

More...

#include "system.h"
#include <rpmio_internal.h>
#include <popt.h>
#include "ugid.h"
#include "debug.h"

Go to the source code of this file.

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

int ftpMkdir (const char *path, mode_t mode)
int ftpChdir (const char *path)
int ftpRmdir (const char *path)
int ftpRename (const char *oldpath, const char *newpath)
int ftpUnlink (const char *path)
int Mkdir (const char *path, mode_t mode)
int Chdir (const char *path)
int Rmdir (const char *path)
int Rename (const char *oldpath, const char *newpath)
int Link (const char *oldpath, const char *newpath)
int Unlink (const char *path)
int vfs_split_text (char *p)
int is_num (int idx)
int is_dos_date (char *str)
int is_week (char *str, struct tm *tim)
int is_month (char *str, struct tm *tim)
int is_time (char *str, struct tm *tim)
int is_year (char *str, struct tm *tim)
int vfs_parse_filetype (char c)
int vfs_parse_filemode (char *p)
int vfs_parse_filedate (int idx, time_t *t)
int vfs_parse_ls_lga (char *p, struct stat *st, char **filename, char **linkname)
int ftpNLST (const char *url, ftpSysCall_t ftpSysCall, struct stat *st, char *rlbuf, size_t rlbufsiz)
int ftpStat (const char *path, struct stat *st)
int ftpLstat (const char *path, struct stat *st)
int ftpReadlink (const char *path, char *buf, size_t bufsiz)
int ftpGlob (const char *path, int flags, int errfunc(const char *epath, int eerno), glob_t *pglob)
void ftpGlobfree (glob_t *pglob)
int Stat (const char *path, struct stat *st)
int Lstat (const char *path, struct stat *st)
int Readlink (const char *path, char *buf, size_t bufsiz)
int Access (const char *path, int amode)
int Glob (const char *path, int flags, int errfunc(const char *epath, int eerrno), glob_t *pglob)
void Globfree (glob_t *pglob)
DIR* Opendir (const char *path)
struct direct* Readdir (DIR *dir)
int Closedir (DIR *dir)

Variables

int _rpmio_debug
int current_mday
int current_mon
int current_year
char* columns [30]
int column_ptr [30]
size_t ftpBufAlloced = 0
char* ftpBuf = NULL


Detailed Description

Definition in file rpmrpc.c.


Define Documentation

#define MAXCOLS   30
 

Definition at line 243 of file rpmrpc.c.

#define alloca_strdup( _s )   strcpy(alloca(strlen(_s)+1), (_s))
 

Definition at line 749 of file rpmrpc.c.

#define g_free   free
 

Definition at line 233 of file rpmrpc.c.

Referenced by vfs_parse_ls_lga().

#define g_strdup   xstrdup
 

Definition at line 232 of file rpmrpc.c.

Referenced by vfs_parse_ls_lga().


Enumeration Type Documentation

enum ftpSysCall_t
 

Enumeration values:
DO_FTP_STAT  
DO_FTP_LSTAT  
DO_FTP_READLINK  
DO_FTP_ACCESS  
DO_FTP_GLOB  

Definition at line 739 of file rpmrpc.c.


Function Documentation

int ftpChdir ( const char * path ) [static]
 

Definition at line 30 of file rpmrpc.c.

Referenced by Chdir(), and ftpNLST().

int ftpGlob ( const char * path,
int flags,
int errfunc(const char *epath, int eerno),
glob_t * pglob ) [static]
 

Definition at line 940 of file rpmrpc.c.

Referenced by Glob().

void ftpGlobfree ( glob_t * pglob ) [static]
 

Definition at line 957 of file rpmrpc.c.

Referenced by Globfree().

int ftpLstat ( const char * path,
struct stat * st ) [static]
 

Definition at line 928 of file rpmrpc.c.

Referenced by Lstat().

int ftpMkdir ( const char * path,
mode_t mode ) [static]
 

Definition at line 17 of file rpmrpc.c.

Referenced by Mkdir().

int ftpNLST ( const char * url,
ftpSysCall_t ftpSysCall,
struct stat * st,
char * rlbuf,
size_t rlbufsiz ) [static]
 

Definition at line 751 of file rpmrpc.c.

Referenced by ftpGlob(), ftpLstat(), ftpReadlink(), and ftpStat().

int ftpReadlink ( const char * path,
char * buf,
size_t bufsiz ) [static]
 

Definition at line 936 of file rpmrpc.c.

Referenced by Readlink().

int ftpRename ( const char * oldpath,
const char * newpath ) [static]
 

Definition at line 38 of file rpmrpc.c.

Referenced by Rename().

int ftpRmdir ( const char * path ) [static]
 

Definition at line 34 of file rpmrpc.c.

Referenced by Rmdir().

int ftpStat ( const char * path,
struct stat * st ) [static]
 

Definition at line 923 of file rpmrpc.c.

Referenced by Stat().

int ftpUnlink ( const char * path ) [static]
 

Definition at line 45 of file rpmrpc.c.

Referenced by Unlink().

int is_dos_date ( char * str ) [static]
 

Definition at line 277 of file rpmrpc.c.

Referenced by vfs_parse_filedate(), and vfs_parse_ls_lga().

int is_month ( char * str,
struct tm * tim ) [static]
 

Definition at line 300 of file rpmrpc.c.

Referenced by vfs_parse_filedate(), and vfs_parse_ls_lga().

int is_num ( int idx ) [static]
 

Definition at line 269 of file rpmrpc.c.

Referenced by vfs_parse_filedate(), and vfs_parse_ls_lga().

int is_time ( char * str,
struct tm * tim ) [static]
 

Definition at line 314 of file rpmrpc.c.

Referenced by vfs_parse_filedate().

int is_week ( char * str,
struct tm * tim ) [static]
 

Definition at line 286 of file rpmrpc.c.

Referenced by vfs_parse_filedate(), and vfs_parse_ls_lga().

int is_year ( char * str,
struct tm * tim ) [static]
 

Definition at line 334 of file rpmrpc.c.

Referenced by vfs_parse_filedate().

int vfs_parse_filedate ( int idx,
time_t * t ) [static]
 

Definition at line 438 of file rpmrpc.c.

Referenced by vfs_parse_ls_lga().

int vfs_parse_filemode ( char * p ) [static]
 

Definition at line 380 of file rpmrpc.c.

Referenced by vfs_parse_ls_lga().

int vfs_parse_filetype ( char c ) [static]
 

Definition at line 362 of file rpmrpc.c.

Referenced by vfs_parse_ls_lga().

int vfs_parse_ls_lga ( char * p,
struct stat * st,
char ** filename,
char ** linkname ) [static]
 

Definition at line 543 of file rpmrpc.c.

Referenced by ftpNLST().

int vfs_split_text ( char * p ) [static]
 

Definition at line 249 of file rpmrpc.c.

Referenced by vfs_parse_ls_lga().


Variable Documentation

int _rpmio_debug
 

Definition at line 14 of file rpmrpc.c.

int column_ptr[ 30 ] [static]
 

Definition at line 246 of file rpmrpc.c.

char* columns[ 30 ] [static]
 

Definition at line 245 of file rpmrpc.c.

int current_mday [static]
 

Definition at line 238 of file rpmrpc.c.

int current_mon [static]
 

Definition at line 239 of file rpmrpc.c.

int current_year [static]
 

Definition at line 240 of file rpmrpc.c.

char* ftpBuf = NULL [static]
 

Definition at line 747 of file rpmrpc.c.

size_t ftpBufAlloced = 0 [static]
 

Definition at line 746 of file rpmrpc.c.


Generated at Mon May 21 08:53:43 2001 for rpm by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001