rpmio/rpmio.h

Go to the documentation of this file.
00001 #ifndef H_RPMIO
00002 #define H_RPMIO
00003 
00009 #include <sys/types.h>
00010 #include <sys/stat.h>
00011 #include <dirent.h>
00012 /*@-noparams@*/
00013 #include "glob.h"
00014 /*@=noparams@*/
00015 #include <stdio.h>
00016 #include <stdlib.h>
00017 #include <unistd.h>
00018 
00021 typedef /*@abstract@*/ struct pgpDig_s * pgpDig;
00022 
00025 typedef /*@abstract@*/ struct pgpDigParams_s * pgpDigParams;
00026 
00034 #if !defined(__LCLINT__) && defined(__GLIBC__) && \
00035         (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2))
00036 #define USE_COOKIE_SEEK_POINTER 1
00037 typedef _IO_off64_t     _libio_off_t;
00038 typedef _libio_off_t *  _libio_pos_t;
00039 #else
00040 typedef off_t           _libio_off_t;
00041 typedef off_t           _libio_pos_t;
00042 #endif
00043 
00047 typedef /*@abstract@*/ /*@refcounted@*/ struct _FD_s * FD_t;
00048 
00051 typedef /*@observer@*/ struct FDIO_s * FDIO_t;
00052 
00053 #ifdef __cplusplus
00054 extern "C" {
00055 #endif
00056 
00061 
00064 typedef ssize_t (*fdio_read_function_t) (void *cookie, char *buf, size_t nbytes)
00065         /*@globals errno, fileSystem @*/
00066         /*@modifies *cookie, errno, fileSystem @*/
00067         /*@requires maxSet(buf) >= (nbytes - 1) @*/
00068         /*@ensures maxRead(buf) == result @*/ ;
00069 
00072 typedef ssize_t (*fdio_write_function_t) (void *cookie, const char *buf, size_t nbytes)
00073         /*@globals errno, fileSystem @*/
00074         /*@modifies *cookie, errno, fileSystem @*/;
00075 
00078 typedef int (*fdio_seek_function_t) (void *cookie, _libio_pos_t pos, int whence)
00079         /*@globals errno, fileSystem @*/
00080         /*@modifies *cookie, errno, fileSystem @*/;
00081 
00084 typedef int (*fdio_close_function_t) (void *cookie)
00085         /*@globals errno, fileSystem, systemState @*/
00086         /*@modifies *cookie, errno, fileSystem, systemState @*/;
00087 
00088 
00091 typedef /*@only@*/ /*@null@*/ FD_t (*fdio_ref_function_t) ( /*@only@*/ void * cookie,
00092                 const char * msg, const char * file, unsigned line)
00093         /*@globals fileSystem @*/
00094         /*@modifies fileSystem @*/;
00095 
00098 typedef /*@only@*/ /*@null@*/ FD_t (*fdio_deref_function_t) ( /*@only@*/ FD_t fd,
00099                 const char * msg, const char * file, unsigned line)
00100         /*@globals fileSystem @*/
00101         /*@modifies fd, fileSystem @*/;
00102 
00103 
00106 typedef /*@only@*/ /*@null@*/ FD_t (*fdio_new_function_t) (const char * msg,
00107                 const char * file, unsigned line)
00108         /*@globals fileSystem @*/
00109         /*@modifies fileSystem @*/;
00110 
00111 
00114 typedef int (*fdio_fileno_function_t) (void * cookie)
00115         /*@globals fileSystem @*/
00116         /*@modifies *cookie, fileSystem @*/;
00117 
00118 
00121 typedef FD_t (*fdio_open_function_t) (const char * path, int flags, mode_t mode)
00122         /*@globals errno, fileSystem @*/
00123         /*@modifies errno, fileSystem @*/;
00124 
00127 typedef FD_t (*fdio_fopen_function_t) (const char * path, const char * fmode)
00128         /*@globals fileSystem @*/
00129         /*@modifies fileSystem @*/;
00130 
00133 typedef void * (*fdio_ffileno_function_t) (FD_t fd)
00134         /*@globals fileSystem @*/
00135         /*@modifies fileSystem @*/;
00136 
00139 typedef int (*fdio_fflush_function_t) (FD_t fd)
00140         /*@globals fileSystem @*/
00141         /*@modifies fileSystem @*/;
00149 
00152 typedef int (*fdio_mkdir_function_t) (const char * path, mode_t mode)
00153         /*@globals errno, fileSystem @*/
00154         /*@modifies errno, fileSystem @*/;
00155 
00158 typedef int (*fdio_chdir_function_t) (const char * path)
00159         /*@globals errno, fileSystem @*/
00160         /*@modifies errno, fileSystem @*/;
00161 
00164 typedef int (*fdio_rmdir_function_t) (const char * path)
00165         /*@globals errno, fileSystem @*/
00166         /*@modifies errno, fileSystem @*/;
00167 
00170 typedef int (*fdio_rename_function_t) (const char * oldpath, const char * newpath)
00171         /*@globals errno, fileSystem @*/
00172         /*@modifies errno, fileSystem @*/;
00173 
00176 typedef int (*fdio_unlink_function_t) (const char * path)
00177         /*@globals errno, fileSystem @*/
00178         /*@modifies errno, fileSystem @*/;
00179 /*@-typeuse@*/
00180 
00183 typedef int (*fdio_stat_function_t) (const char * path, /*@out@*/ struct stat * st)
00184         /*@globals errno, fileSystem @*/
00185         /*@modifies *st, errno, fileSystem @*/;
00186 
00189 typedef int (*fdio_lstat_function_t) (const char * path, /*@out@*/ struct stat * st)
00190         /*@globals errno, fileSystem @*/
00191         /*@modifies *st, errno, fileSystem @*/;
00192 
00195 typedef int (*fdio_access_function_t) (const char * path, int amode)
00196         /*@globals errno, fileSystem @*/
00197         /*@modifies errno, fileSystem @*/;
00198 /*@=typeuse@*/
00204 struct FDIO_s {
00205   fdio_read_function_t          read;
00206   fdio_write_function_t         write;
00207   fdio_seek_function_t          seek;
00208   fdio_close_function_t         close;
00209 
00210   fdio_ref_function_t           _fdref;
00211   fdio_deref_function_t         _fdderef;
00212   fdio_new_function_t           _fdnew;
00213   fdio_fileno_function_t        _fileno;
00214 
00215   fdio_open_function_t          _open;
00216   fdio_fopen_function_t         _fopen;
00217   fdio_ffileno_function_t       _ffileno;
00218   fdio_fflush_function_t        _fflush;
00219 
00220   fdio_mkdir_function_t         _mkdir;
00221   fdio_chdir_function_t         _chdir;
00222   fdio_rmdir_function_t         _rmdir;
00223   fdio_rename_function_t        _rename;
00224   fdio_unlink_function_t        _unlink;
00225 };
00226 
00227 
00232 
00236 /*@observer@*/ const char * Fstrerror(/*@null@*/ FD_t fd)
00237         /*@*/;
00238 
00242 /*@-incondefs@*/
00243 size_t Fread(/*@out@*/ void * buf, size_t size, size_t nmemb, FD_t fd)
00244         /*@globals fileSystem @*/
00245         /*@modifies fd, *buf, fileSystem @*/
00246         /*@requires maxSet(buf) >= (nmemb - 1) @*/
00247         /*@ensures maxRead(buf) == result @*/;
00248 /*@=incondefs@*/
00249 
00253 /*@-incondefs@*/
00254 size_t Fwrite(const void * buf, size_t size, size_t nmemb, FD_t fd)
00255         /*@globals fileSystem @*/
00256         /*@modifies fd, fileSystem @*/
00257         /*@requires maxRead(buf) >= nmemb @*/;
00258 /*@=incondefs@*/
00259 
00263 int Fseek(FD_t fd, _libio_off_t offset, int whence)
00264         /*@globals fileSystem @*/
00265         /*@modifies fileSystem @*/;
00266 
00270 int Fclose( /*@killref@*/ FD_t fd)
00271         /*@globals fileSystem, internalState @*/
00272         /*@modifies fd, fileSystem, internalState @*/;
00273 
00276 /*@null@*/ FD_t Fdopen(FD_t ofd, const char * fmode)
00277         /*@globals fileSystem, internalState @*/
00278         /*@modifies ofd, fileSystem, internalState @*/;
00279 
00283 /*@null@*/ FD_t Fopen(/*@null@*/ const char * path,
00284                         /*@null@*/ const char * fmode)
00285         /*@globals h_errno, fileSystem, internalState @*/
00286         /*@modifies fileSystem, internalState @*/;
00287 
00288 
00292 int Fflush(/*@null@*/ FD_t fd)
00293         /*@globals fileSystem @*/
00294         /*@modifies fd, fileSystem @*/;
00295 
00299 int Ferror(/*@null@*/ FD_t fd)
00300         /*@*/;
00301 
00305 int Fileno(FD_t fd)
00306         /*@globals fileSystem @*/
00307         /*@modifies fileSystem@*/;
00308 
00312 /*@unused@*/
00313 int Fcntl(FD_t fd, int op, void *lip)
00314         /*@globals errno, fileSystem @*/
00315         /*@modifies fd, *lip, errno, fileSystem @*/;
00316 
00323 
00327 int Mkdir(const char * path, mode_t mode)
00328         /*@globals errno, h_errno, fileSystem, internalState @*/
00329         /*@modifies errno, fileSystem, internalState @*/;
00330 
00334 int Chdir(const char * path)
00335         /*@globals errno, h_errno, fileSystem, internalState @*/
00336         /*@modifies errno, fileSystem, internalState @*/;
00337 
00341 int Rmdir(const char * path)
00342         /*@globals errno, h_errno, fileSystem, internalState @*/
00343         /*@modifies errno, fileSystem, internalState @*/;
00344 
00345 /*@unchecked@*/ /*@observer@*/ /*@null@*/
00346 extern const char * _chroot_prefix;
00347 
00352 int Chroot(const char * path)
00353         /*@globals _chroot_prefix, errno, fileSystem, internalState @*/
00354         /*@modifies _chroot_prefix, errno, fileSystem, internalState @*/;
00355 
00360 int Open(const char * path, int flags, mode_t mode)
00361         /*@globals errno, fileSystem, internalState @*/
00362         /*@modifies errno, fileSystem, internalState @*/;
00363 
00367 int Rename(const char * oldpath, const char * newpath)
00368         /*@globals errno, h_errno, fileSystem, internalState @*/
00369         /*@modifies errno, fileSystem, internalState @*/;
00370 
00374 int Link(const char * oldpath, const char * newpath)
00375         /*@globals errno, fileSystem, internalState @*/
00376         /*@modifies errno, fileSystem, internalState @*/;
00377 
00381 int Unlink(const char * path)
00382         /*@globals errno, h_errno, fileSystem, internalState @*/
00383         /*@modifies errno, fileSystem, internalState @*/;
00384 
00388 int Stat(const char * path, /*@out@*/ struct stat * st)
00389         /*@globals errno, h_errno, fileSystem, internalState @*/
00390         /*@modifies *st, errno, fileSystem, internalState @*/;
00391 
00395 int Lstat(const char * path, /*@out@*/ struct stat * st)
00396         /*@globals errno, h_errno, fileSystem, internalState @*/
00397         /*@modifies *st, errno, fileSystem, internalState @*/;
00398 
00403 int Chown(const char * path, uid_t owner, gid_t group)
00404         /*@globals errno, fileSystem, internalState @*/
00405         /*@modifies errno, fileSystem, internalState @*/;
00406 
00411 int Lchown(const char * path, uid_t owner, gid_t group)
00412         /*@globals errno, fileSystem, internalState @*/
00413         /*@modifies errno, fileSystem, internalState @*/;
00414 
00419 int Chmod(const char * path, mode_t mode)
00420         /*@globals errno, fileSystem, internalState @*/
00421         /*@modifies errno, fileSystem, internalState @*/;
00422 
00427 int Mkfifo(const char * path, mode_t mode)
00428         /*@globals errno, fileSystem, internalState @*/
00429         /*@modifies errno, fileSystem, internalState @*/;
00430 
00435 int Mknod(const char * path, mode_t mode, dev_t dev)
00436         /*@globals errno, fileSystem, internalState @*/
00437         /*@modifies errno, fileSystem, internalState @*/;
00438 
00443 int Utime(const char * path, const struct utimbuf * buf)
00444         /*@globals errno, fileSystem, internalState @*/
00445         /*@modifies errno, fileSystem, internalState @*/;
00446 
00451 int Utimes(const char * path, const struct timeval * times)
00452         /*@globals errno, fileSystem, internalState @*/
00453         /*@modifies errno, fileSystem, internalState @*/;
00454 
00459 int Symlink(const char * oldpath, const char * newpath)
00460         /*@globals errno, fileSystem, internalState @*/
00461         /*@modifies errno, fileSystem, internalState @*/;
00462 
00467 /*@-incondefs@*/
00468 int Readlink(const char * path, /*@out@*/ char * buf, size_t bufsiz)
00469         /*@globals errno, h_errno, fileSystem, internalState @*/
00470         /*@modifies *buf, errno, fileSystem, internalState @*/
00471         /*@requires maxSet(buf) >= (bufsiz - 1) @*/
00472         /*@ensures maxRead(buf) <= bufsiz @*/;
00473 /*@=incondefs@*/
00474 
00479 int Access(const char * path, int amode)
00480         /*@globals errno, fileSystem @*/
00481         /*@modifies errno, fileSystem @*/;
00482 
00486 int Glob_pattern_p (const char *pattern, int quote)
00487         /*@*/;
00488 
00492 int Glob_error(const char * epath, int eerrno)
00493         /*@*/;
00494 
00498 int Glob(const char * pattern, int flags,
00499                 int errfunc(const char * epath, int eerrno),
00500                 /*@out@*/ glob_t * pglob)
00501         /*@globals fileSystem @*/
00502         /*@modifies *pglob, fileSystem @*/;
00503 
00507 void Globfree( /*@only@*/ glob_t * pglob)
00508         /*@globals fileSystem @*/
00509         /*@modifies *pglob, fileSystem @*/;
00510 
00511 
00515 /*@null@*/
00516 DIR * Opendir(const char * path)
00517         /*@globals errno, h_errno, fileSystem, internalState @*/
00518         /*@modifies errno, fileSystem, internalState @*/;
00519 
00523 /*@dependent@*/ /*@null@*/
00524 struct dirent * Readdir(DIR * dir)
00525         /*@globals errno, fileSystem @*/
00526         /*@modifies *dir, errno, fileSystem @*/;
00527 
00531 int Closedir(/*@only@*/ DIR * dir)
00532         /*@globals errno, fileSystem @*/
00533         /*@modifies *dir, errno, fileSystem @*/;
00534 
00539 off_t Lseek(int fdno, off_t offset, int whence)
00540         /*@globals errno, fileSystem @*/
00541         /*@modifies errno, fileSystem @*/;
00542 
00550 
00553 off_t   fdSize(FD_t fd)
00554         /*@globals fileSystem @*/
00555         /*@modifies fd, fileSystem@*/;
00556 
00559 /*@null@*/ FD_t fdDup(int fdno)
00560         /*@globals fileSystem, internalState @*/
00561         /*@modifies fileSystem, internalState @*/;
00562 
00563 #ifdef UNUSED
00564 /*@null@*/ FILE *fdFdopen( /*@only@*/ void * cookie, const char * mode);
00565 #endif
00566 
00567 /* XXX Legacy interfaces needed by gnorpm, rpmfind et al */
00568 
00569 /*@-exportlocal@*/
00572 #ifndef H_RPMIO_INTERNAL        /* XXX avoid gcc warning */
00573 /*@unused@*/ int fdFileno(void * cookie)
00574         /*@*/;
00575 #define fdFileno(_fd)           fdio->_fileno(_fd)
00576 #endif
00577 
00580 /*@null@*/ FD_t fdOpen(const char *path, int flags, mode_t mode)
00581         /*@globals errno, fileSystem, internalState @*/
00582         /*@modifies errno, fileSystem, internalState @*/;
00583 #define fdOpen(_path, _flags, _mode)    fdio->_open((_path), (_flags), (_mode))
00584 
00587 /*@-incondefs@*/
00588 ssize_t fdRead(void * cookie, /*@out@*/ char * buf, size_t count)
00589         /*@globals errno, fileSystem, internalState @*/
00590         /*@modifies *cookie, *buf, errno, fileSystem, internalState @*/
00591         /*@requires maxSet(buf) >= (count - 1) @*/
00592         /*@ensures maxRead(buf) == result @*/ ;
00593 #define fdRead(_fd, _buf, _count)       fdio->read((_fd), (_buf), (_count))
00594 /*@=incondefs@*/
00595 
00598 ssize_t fdWrite(void * cookie, const char * buf, size_t count)
00599         /*@globals errno, fileSystem, internalState @*/
00600         /*@modifies *cookie, errno, fileSystem, internalState @*/;
00601 #define fdWrite(_fd, _buf, _count)      fdio->write((_fd), (_buf), (_count))
00602 
00605 int fdClose( /*@only@*/ void * cookie)
00606         /*@globals errno, fileSystem, systemState, internalState @*/
00607         /*@modifies *cookie, errno, fileSystem, systemState, internalState @*/;
00608 #define fdClose(_fd)            fdio->close(_fd)
00609 
00612 /*@unused@*/
00613 /*@only@*/ /*@null@*/
00614 FD_t fdLink (/*@only@*/ void * cookie, const char * msg)
00615         /*@globals fileSystem @*/
00616         /*@modifies *cookie, fileSystem @*/;
00617 #define fdLink(_fd, _msg)       fdio->_fdref(_fd, _msg, __FILE__, __LINE__)
00618 
00621 /*@unused@*/
00622 /*@only@*/ /*@null@*/
00623 FD_t fdFree(/*@only@*/ FD_t fd, const char * msg)
00624         /*@globals fileSystem @*/
00625         /*@modifies fd, fileSystem @*/;
00626 #define fdFree(_fd, _msg)       fdio->_fdderef(_fd, _msg, __FILE__, __LINE__)
00627 
00630 /*@unused@*/
00631 /*@only@*/ /*@null@*/
00632 FD_t fdNew (const char * msg)
00633         /*@globals fileSystem @*/
00634         /*@modifies fileSystem @*/;
00635 #define fdNew(_msg)             fdio->_fdnew(_msg, __FILE__, __LINE__)
00636 
00639 int fdWritable(FD_t fd, int secs)
00640         /*@globals errno, fileSystem @*/
00641         /*@modifies fd, errno, fileSystem @*/;
00642 
00645 int fdReadable(FD_t fd, int secs)
00646         /*@globals errno @*/
00647         /*@modifies fd, errno @*/;
00648 /*@=exportlocal@*/
00649 
00658 int rpmioMkpath(const char * path, mode_t mode, uid_t uid, gid_t gid)
00659         /*@globals h_errno, fileSystem, internalState @*/
00660         /*@modifies fileSystem, internalState @*/;
00661 
00669 int rpmioAccess(const char *FN, /*@null@*/ const char * path, int mode)
00670         /*@globals fileSystem, internalState @*/
00671         /*@modifies fileSystem, internalState @*/;
00672 
00676 /*@-typeuse@*/
00677 typedef enum ftperrCode_e {
00678     FTPERR_NE_ERROR             = -1,   
00679     FTPERR_NE_LOOKUP            = -2,   
00680     FTPERR_NE_AUTH              = -3,   
00681     FTPERR_NE_PROXYAUTH         = -4,   
00682     FTPERR_NE_CONNECT           = -5,   
00683     FTPERR_NE_TIMEOUT           = -6,   
00684     FTPERR_NE_FAILED            = -7,   
00685     FTPERR_NE_RETRY             = -8,   
00686     FTPERR_NE_REDIRECT          = -9,   
00688     FTPERR_BAD_SERVER_RESPONSE  = -81,  
00689     FTPERR_SERVER_IO_ERROR      = -82,  
00690     FTPERR_SERVER_TIMEOUT       = -83,  
00691     FTPERR_BAD_HOST_ADDR        = -84,  
00692     FTPERR_BAD_HOSTNAME         = -85,  
00693     FTPERR_FAILED_CONNECT       = -86,  
00694     FTPERR_FILE_IO_ERROR        = -87,  
00695     FTPERR_PASSIVE_ERROR        = -88,  
00696     FTPERR_FAILED_DATA_CONNECT  = -89,  
00697     FTPERR_FILE_NOT_FOUND       = -90,  
00698     FTPERR_NIC_ABORT_IN_PROGRESS= -91,  
00699     FTPERR_UNKNOWN              = -100  
00700 } ftperrCode;
00701 /*@=typeuse@*/
00702 
00705 /*@-redecl@*/
00706 /*@observer@*/ const char * ftpStrerror(int errorNumber)
00707         /*@*/;
00708 /*@=redecl@*/
00709 
00712 /*@unused@*/
00713 /*@dependent@*/ /*@null@*/ void * ufdGetUrlinfo(FD_t fd)
00714         /*@modifies fd @*/;
00715 
00718 /*@-redecl@*/
00719 /*@unused@*/
00720 /*@observer@*/ const char * urlStrerror(const char * url)
00721         /*@globals h_errno, internalState @*/
00722         /*@modifies internalState @*/;
00723 /*@=redecl@*/
00724 
00727 /*@-exportlocal@*/
00728 int ufdCopy(FD_t sfd, FD_t tfd)
00729         /*@globals fileSystem @*/
00730         /*@modifies sfd, tfd, fileSystem @*/;
00731 /*@=exportlocal@*/
00732 
00735 int ufdGetFile( /*@killref@*/ FD_t sfd, FD_t tfd)
00736         /*@globals fileSystem, internalState @*/
00737         /*@modifies sfd, tfd, fileSystem, internalState @*/;
00738 
00741 /*@unused@*/ int timedRead(FD_t fd, /*@out@*/ void * bufptr, int length)
00742         /*@globals fileSystem @*/
00743         /*@modifies fd, *bufptr, fileSystem @*/;
00744 #define timedRead       (ufdio->read)
00745 
00746 /*@-exportlocal@*/
00749 /*@observer@*/ /*@unchecked@*/ extern FDIO_t fdio;
00750 
00753 /*@observer@*/ /*@unchecked@*/ extern FDIO_t fpio;
00754 
00757 /*@observer@*/ /*@unchecked@*/ extern FDIO_t ufdio;
00758 
00761 /*@observer@*/ /*@unchecked@*/ extern FDIO_t gzdio;
00762 
00765 /*@observer@*/ /*@unchecked@*/ extern FDIO_t bzdio;
00766 
00769 /*@observer@*/ /*@unchecked@*/ extern FDIO_t lzdio;
00770 
00773 /*@observer@*/ /*@unchecked@*/ extern FDIO_t fadio;
00774 /*@=exportlocal@*/
00777 /*@unused@*/ static inline int xislower(int c) /*@*/ {
00778     return (c >= 'a' && c <= 'z');
00779 }
00780 /*@unused@*/ static inline int xisupper(int c) /*@*/ {
00781     return (c >= 'A' && c <= 'Z');
00782 }
00783 /*@unused@*/ static inline int xisalpha(int c) /*@*/ {
00784     return (xislower(c) || xisupper(c));
00785 }
00786 /*@unused@*/ static inline int xisdigit(int c) /*@*/ {
00787     return (c >= '0' && c <= '9');
00788 }
00789 /*@unused@*/ static inline int xisalnum(int c) /*@*/ {
00790     return (xisalpha(c) || xisdigit(c));
00791 }
00792 /*@unused@*/ static inline int xisblank(int c) /*@*/ {
00793     return (c == ' ' || c == '\t');
00794 }
00795 /*@unused@*/ static inline int xisspace(int c) /*@*/ {
00796     return (xisblank(c) || c == '\n' || c == '\r' || c == '\f' || c == '\v');
00797 }
00798 /*@unused@*/ static inline int xiscntrl(int c) /*@*/ {
00799     return (c < ' ');
00800 }
00801 /*@unused@*/ static inline int xisascii(int c) /*@*/ {
00802     return ((c & 0x80) != 0x80);
00803 }
00804 /*@unused@*/ static inline int xisprint(int c) /*@*/ {
00805     return (c >= ' ' && xisascii(c));
00806 }
00807 /*@unused@*/ static inline int xisgraph(int c) /*@*/ {
00808     return (c > ' ' && xisascii(c));
00809 }
00810 /*@unused@*/ static inline int xispunct(int c) /*@*/ {
00811     return (xisgraph(c) && !xisalnum(c));
00812 }
00813 
00814 /*@unused@*/ static inline int xtolower(int c) /*@*/ {
00815     return ((xisupper(c)) ? (c | ('a' - 'A')) : c);
00816 }
00817 /*@unused@*/ static inline int xtoupper(int c) /*@*/ {
00818     return ((xislower(c)) ? (c & ~('a' - 'A')) : c);
00819 }
00820 
00824 int xstrcasecmp(const char * s1, const char * s2)               /*@*/;
00825 
00829 int xstrncasecmp(const char *s1, const char * s2, size_t n)     /*@*/;
00830 
00834 /*@only@*/ /*@null@*/
00835 const char * xstrtolocale(/*@only@*/ const char *str)
00836         /*@modifies *str @*/;
00837 #ifdef __cplusplus
00838 }
00839 #endif
00840 
00841 #endif  /* H_RPMIO */

Generated on Mon Aug 3 15:21:33 2009 for rpm by  doxygen 1.5.1