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

rpmio/rpmio.h File Reference

More...

#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <glob.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

Go to the source code of this file.

Compounds

struct  FDIO_s

RPMIO Utilities.

#define fdLink(_fd, _msg)    fdio->_fdref(_fd, _msg, __FILE__, __LINE__)
#define fdFree(_fd, _msg)    fdio->_fdderef(_fd, _msg, __FILE__, __LINE__)
#define fdNew(_msg)    fdio->_fdnew(_msg, __FILE__, __LINE__)
#define timedRead   ufdio->read
typedef enum ftperrCode_e  ftperrCode
enum  ftperrCode_e {
  FTPERR_BAD_SERVER_RESPONSE = -1, FTPERR_SERVER_IO_ERROR = -2, FTPERR_SERVER_TIMEOUT = -3, FTPERR_BAD_HOST_ADDR = -4,
  FTPERR_BAD_HOSTNAME = -5, FTPERR_FAILED_CONNECT = -6, FTPERR_FILE_IO_ERROR = -7, FTPERR_PASSIVE_ERROR = -8,
  FTPERR_FAILED_DATA_CONNECT = -9, FTPERR_FILE_NOT_FOUND = -10, FTPERR_NIC_ABORT_IN_PROGRESS = -11, FTPERR_UNKNOWN = -100
}
int fdFileno (void * cookie)
int timedRead (FD_t fd, void * bufptr, int length)
FDIO_t gzdio
FDIO_t bzdio

RPMIO Vectors.

typedef ssize_t fdio_read_function_t (void *cookie, char *buf, size_t nbytes)
typedef ssize_t fdio_write_function_t (void *cookie, const char *buf, size_t nbytes)
typedef int fdio_seek_function_t (void *cookie, _libio_pos_t pos, int whence)
typedef int fdio_close_function_t (void *cookie)
typedef FD_t fdio_ref_function_t ( void * cookie, const char * msg, const char * file, unsigned line)
typedef FD_t fdio_deref_function_t ( FD_t fd, const char * msg, const char * file, unsigned line)
typedef FD_t fdio_new_function_t (const char * msg, const char * file, unsigned line)
typedef int fdio_fileno_function_t (void * cookie)
typedef FD_t fdio_open_function_t (const char * path, int flags, mode_t mode)
typedef FD_t fdio_fopen_function_t (const char * path, const char * fmode)
typedef void* fdio_ffileno_function_t (FD_t fd)
typedef int fdio_fflush_function_t (FD_t fd)

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)
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 Readlink (const char * path, char * buf, size_t bufsiz)
int Stat (const char * path, struct stat * st)
int Lstat (const char * path, struct stat * st)
int Access (const char * path, int amode)
int Glob (const char * pattern, int flags, int errfunc(const char * epath, int eerrno), glob_t * pglob)
void Globfree ( glob_t * pglob)
DIR* Opendir (const char * name)
struct dirent* Readdir (DIR * dir)
int Closedir (DIR * dir)

Typedefs

typedef off_t _libio_off_t
typedef off_t _libio_pos_t
typedef struct _FD_sFD_t
typedef struct FDIO_sFDIO_t

Functions

int xstrcasecmp (const char *s1, const char * s2)
int xstrncasecmp (const char *s1, const char * s2, size_t n)


Detailed Description

Definition in file rpmio.h.


Define Documentation

#define fdFree( _fd, _msg )   fdio->_fdderef(_fd, _msg, __FILE__, __LINE__)
 

Definition at line 352 of file rpmio.h.

Referenced by Fclose(), alFree(), closeCallback(), fdClose(), packageBinaries(), rpmtransFree(), showProgress(), and ufdClose().

#define fdLink( _fd, _msg )   fdio->_fdref(_fd, _msg, __FILE__, __LINE__)
 

Definition at line 351 of file rpmio.h.

Referenced by Fclose(), Fdopen(), closeCallback(), ftpLogin(), ftpNLST(), ftpReq(), rpmVerifyScript(), rpmtransSetScriptFd(), runScript(), and showProgress().

#define fdNew( _msg )   fdio->_fdnew(_msg, __FILE__, __LINE__)
 

Definition at line 353 of file rpmio.h.

Referenced by fdDup(), fdOpen(), packageBinaries(), and rewriteRPM().

#define timedRead   ufdio->read
 

Definition at line 405 of file rpmio.h.

Referenced by headerRead(), makeGPGSignature(), makePGPSignature(), readLead(), and rpmReadSignature().


Typedef Documentation

typedef struct FDIO_s* FDIO_t
 

Definition at line 41 of file rpmio.h.

typedef struct _FD_s* FD_t
 

Definition at line 37 of file rpmio.h.

typedef off_t _libio_off_t
 

Definition at line 30 of file rpmio.h.

typedef off_t _libio_pos_t
 

Definition at line 31 of file rpmio.h.

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

Definition at line 120 of file rpmio.h.

typedef int fdio_chdir_function_t(const char * path)
 

Definition at line 114 of file rpmio.h.

typedef int fdio_close_function_t(void *cookie)
 

Definition at line 66 of file rpmio.h.

typedef FD_t fdio_deref_function_t( FD_t fd, const char * msg, const char * file, unsigned line)
 

Definition at line 76 of file rpmio.h.

typedef void* fdio_ffileno_function_t(FD_t fd)
 

Definition at line 101 of file rpmio.h.

typedef int fdio_fflush_function_t(FD_t fd)
 

Definition at line 105 of file rpmio.h.

typedef int fdio_fileno_function_t(void * cookie)
 

Definition at line 88 of file rpmio.h.

typedef FD_t fdio_fopen_function_t(const char * path, const char * fmode)
 

Definition at line 97 of file rpmio.h.

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

Definition at line 119 of file rpmio.h.

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

Definition at line 113 of file rpmio.h.

typedef FD_t fdio_new_function_t(const char * msg, const char * file, unsigned line)
 

Definition at line 82 of file rpmio.h.

typedef FD_t fdio_open_function_t(const char * path, int flags, mode_t mode)
 

Definition at line 93 of file rpmio.h.

typedef ssize_t fdio_read_function_t(void *cookie, char *buf, size_t nbytes)
 

Definition at line 54 of file rpmio.h.

typedef FD_t fdio_ref_function_t( void * cookie, const char * msg, const char * file, unsigned line)
 

Definition at line 71 of file rpmio.h.

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

Definition at line 116 of file rpmio.h.

typedef int fdio_rmdir_function_t(const char * path)
 

Definition at line 115 of file rpmio.h.

typedef int fdio_seek_function_t(void *cookie, _libio_pos_t pos, int whence)
 

Definition at line 62 of file rpmio.h.

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

Definition at line 118 of file rpmio.h.

typedef int fdio_unlink_function_t(const char * path)
 

Definition at line 117 of file rpmio.h.

typedef ssize_t fdio_write_function_t(void *cookie, const char *buf, size_t nbytes)
 

Definition at line 58 of file rpmio.h.

typedef enum ftperrCode_e ftperrCode
 

FTP and HTTP error codes.


Generated at Sun Apr 8 18:43:05 2001 for rpm by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000