Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

RPMRPC.


RPMRPC Vectors.

typedef int(* fdio_mkdir_function_t )(const char *path, mode_t mode)
typedef int(* fdio_chdir_function_t )(const char *path)
typedef int(* fdio_rmdir_function_t )(const char *path)
typedef int(* fdio_rename_function_t )(const char *oldpath, const char *newpath)
typedef int(* fdio_unlink_function_t )(const char *path)
typedef int(* fdio_stat_function_t )(const char *path, struct stat *st)
typedef int(* fdio_lstat_function_t )(const char *path, struct stat *st)
typedef int(* fdio_access_function_t )(const char *path, int amode)

RPMRPC Interface.

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.
int Readlink (const char *path, char *buf, size_t bufsiz)
 readlink(2) clone.
int Stat (const char *path, struct stat *st)
 stat(2) clone.
int Lstat (const char *path, struct stat *st)
 lstat(2) clone.
int Access (const char *path, int amode)
 access(2) clone.
int Glob_pattern_p (const char *pattern, int quote)
 glob_pattern_p(3) clone.
int Glob_error (const char *epath, int eerrno)
 glob_error(3) 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.
dirent * Readdir (DIR *dir)
 readdir(3) clone.
int Closedir (DIR *dir)
 closedir(3) clone.

Typedef Documentation

typedef int(* fdio_access_function_t)(const char *path, int amode)
 

Definition at line 195 of file rpmio.h.

typedef int(* fdio_chdir_function_t)(const char *path)
 

Definition at line 158 of file rpmio.h.

typedef int(* fdio_lstat_function_t)(const char *path,struct stat *st)
 

Definition at line 189 of file rpmio.h.

typedef int(* fdio_mkdir_function_t)(const char *path, mode_t mode)
 

Definition at line 152 of file rpmio.h.

typedef int(* fdio_rename_function_t)(const char *oldpath, const char *newpath)
 

Definition at line 170 of file rpmio.h.

typedef int(* fdio_rmdir_function_t)(const char *path)
 

Definition at line 164 of file rpmio.h.

typedef int(* fdio_stat_function_t)(const char *path,struct stat *st)
 

Definition at line 183 of file rpmio.h.

typedef int(* fdio_unlink_function_t)(const char *path)
 

Definition at line 176 of file rpmio.h.


Function Documentation

int Access const char *  path,
int  amode
 

access(2) clone.

Definition at line 1391 of file rpmrpc.c.

References URL_IS_DASH, URL_IS_FTP, URL_IS_HTTP, URL_IS_PATH, URL_IS_UNKNOWN, and urlPath().

Referenced by rpmMkdirPath().

int Chdir const char *  path  ) 
 

chdir(2) clone.

Definition at line 92 of file rpmrpc.c.

References ftpChdir(), URL_IS_DASH, URL_IS_FTP, URL_IS_HTTP, URL_IS_PATH, URL_IS_UNKNOWN, and urlPath().

int Closedir DIR *  dir  ) 
 

closedir(3) clone.

Definition at line 1541 of file rpmrpc.c.

References ftpClosedir(), and ISFTPMAGIC.

int Glob const char *  pattern,
int  flags,
int   errfunc(const char *epath, int eerrno),
glob_t *  pglob
 

glob(3) clone.

Definition at line 1460 of file rpmrpc.c.

References URL_IS_DASH, URL_IS_FTP, URL_IS_HTTP, URL_IS_PATH, URL_IS_UNKNOWN, and urlPath().

Referenced by rpmGlob().

int Glob_error const char *  epath,
int  eerrno
 

glob_error(3) clone.

Definition at line 1455 of file rpmrpc.c.

Referenced by rpmGlob().

int Glob_pattern_p const char *  pattern,
int  quote
 

glob_pattern_p(3) clone.

Definition at line 1419 of file rpmrpc.c.

References urlPath().

Referenced by initGlobs(), processBinaryFile(), and rpmGlob().

void Globfree glob_t *  pglob  ) 
 

globfree(3) clone.

Definition at line 1498 of file rpmrpc.c.

Referenced by rpmGlob().

int Link const char *  oldpath,
const char *  newpath
 

link(2) clone.

Definition at line 187 of file rpmrpc.c.

References URL_IS_DASH, URL_IS_FTP, URL_IS_HTTP, URL_IS_PATH, URL_IS_UNKNOWN, urlPath(), and xstrncasecmp().

Referenced by fsmStage().

int Lstat const char *  path,
struct stat *  st
 

lstat(2) clone.

Definition at line 1341 of file rpmrpc.c.

References ftpLstat(), URL_IS_DASH, URL_IS_FTP, URL_IS_HTTP, URL_IS_PATH, URL_IS_UNKNOWN, and urlPath().

Referenced by addFile(), checkOwners(), doUntar(), fsmStage(), and rpmVerifyFile().

int Mkdir const char *  path,
mode_t  mode
 

mkdir(2) clone.

Definition at line 69 of file rpmrpc.c.

References ftpMkdir(), URL_IS_DASH, URL_IS_FTP, URL_IS_HTTP, URL_IS_PATH, URL_IS_UNKNOWN, and urlPath().

Referenced by fsmStage(), packageBinaries(), rpmdbRebuild(), rpmioMkpath(), and rpmMkdirPath().

DIR* Opendir const char *  path  ) 
 

opendir(3) clone.

Definition at line 1505 of file rpmrpc.c.

References ftpOpendir(), URL_IS_DASH, URL_IS_FTP, URL_IS_HTTP, URL_IS_PATH, URL_IS_UNKNOWN, and urlPath().

struct dirent* Readdir DIR *  dir  ) 
 

readdir(3) clone.

Definition at line 1532 of file rpmrpc.c.

References dirent, ftpReaddir(), and ISFTPMAGIC.

int Readlink const char *  path,
char *  buf,
size_t  bufsiz
 

readlink(2) clone.

Definition at line 1366 of file rpmrpc.c.

References ftpReadlink(), URL_IS_DASH, URL_IS_FTP, URL_IS_HTTP, URL_IS_PATH, URL_IS_UNKNOWN, and urlPath().

Referenced by fsmStage(), genCpioListAndHeader(), and rpmVerifyFile().

int Rename const char *  oldpath,
const char *  newpath
 

rename(2) clone.

Definition at line 140 of file rpmrpc.c.

References ftpRename(), URL_IS_DASH, URL_IS_FTP, URL_IS_HTTP, URL_IS_PATH, URL_IS_UNKNOWN, urlPath(), and xstrncasecmp().

Referenced by fsmStage().

int Rmdir const char *  path  ) 
 

rmdir(2) clone.

Definition at line 115 of file rpmrpc.c.

References ftpRmdir(), URL_IS_DASH, URL_IS_FTP, URL_IS_HTTP, URL_IS_PATH, URL_IS_UNKNOWN, and urlPath().

Referenced by fsmStage(), and rpmdbRebuild().

int Stat const char *  path,
struct stat *  st
 

stat(2) clone.

Definition at line 1316 of file rpmrpc.c.

References ftpStat(), URL_IS_DASH, URL_IS_FTP, URL_IS_HTTP, URL_IS_PATH, URL_IS_UNKNOWN, and urlPath().

Referenced by buildForTarget(), fsmStage(), ftsStashLatest(), packageBinaries(), processSourceFiles(), rpmioFileExists(), rpmioMkpath(), and rpmMkdirPath().

int Unlink const char *  path  ) 
 

unlink(2) clone.

Definition at line 231 of file rpmrpc.c.

References ftpUnlink(), URL_IS_DASH, URL_IS_FTP, URL_IS_HTTP, URL_IS_PATH, URL_IS_UNKNOWN, and urlPath().

Referenced by buildForTarget(), buildSpec(), doRmSource(), doScript(), fsmStage(), rpmInstall(), urlGetFile(), and writeRPM().


Generated on Sat Oct 8 00:16:58 2005 for rpm by  doxygen 1.3.9.1