Blame doc/librpm/html/rpmfileutil_8h.html

2ff057
2ff057
<html xmlns="http://www.w3.org/1999/xhtml">
2ff057
<head>
2ff057
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
2ff057
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
2ff057
<meta name="generator" content="Doxygen 1.8.14"/>
2ff057
<meta name="viewport" content="width=device-width, initial-scale=1"/>
2ff057
<title>rpm: rpmfileutil.h File Reference</title>
2ff057
<link href="tabs.css" rel="stylesheet" type="text/css"/>
2ff057
<script type="text/javascript" src="jquery.js"></script>
2ff057
<script type="text/javascript" src="dynsections.js"></script>
2ff057
<link href="doxygen.css" rel="stylesheet" type="text/css" />
2ff057
</head>
2ff057
<body>
2ff057
2ff057
2ff057
2ff057
 
2ff057
 
2ff057
  
2ff057
   
rpm
2ff057
    4.14.2
2ff057
   
2ff057
  
2ff057
 
2ff057
 
2ff057
2ff057
2ff057
2ff057
2ff057
<script type="text/javascript" src="menudata.js"></script>
2ff057
<script type="text/javascript" src="menu.js"></script>
2ff057
<script type="text/javascript">
2ff057
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
2ff057
$(function() {
2ff057
  initMenu('',false,false,'search.php','Search');
2ff057
});
2ff057
/* @license-end */</script>
2ff057
2ff057
2ff057
  
    2ff057
  • rpmio
  • 2ff057
    2ff057
    2ff057
    2ff057
      
    2ff057
    Typedefs |
    2ff057
    Enumerations |
    2ff057
    Functions  
    2ff057
      
    2ff057
    rpmfileutil.h File Reference
    2ff057
    2ff057
    2ff057
    2ff057

    File and path manipulation helper functions.

    2ff057
    More...

    2ff057
    #include <rpm/rpmutil.h>
    2ff057
    #include <rpm/rpmio.h>
    2ff057
    #include <rpm/rpmpgp.h>
    2ff057
    #include <rpm/argv.h>
    2ff057
    2ff057
    Include dependency graph for rpmfileutil.h:
    2ff057
    2ff057
    2ff057
    2ff057
    2ff057

    Go to the source code of this file.

    2ff057
    2ff057

    2ff057
    Typedefs
    2ff057
    typedef enum rpmCompressedMagic_e rpmCompressedMagic
    2ff057
     
    2ff057
    2ff057

    2ff057
    Enumerations
    2ff057
    enum  rpmCompressedMagic_e { 
    2ff057
      COMPRESSED_NOT = 0, 
    2ff057
    COMPRESSED_OTHER = 1, 
    2ff057
    COMPRESSED_BZIP2 = 2, 
    2ff057
    COMPRESSED_ZIP = 3, 
    2ff057

    2ff057
      COMPRESSED_LZMA = 4, 
    2ff057
    COMPRESSED_XZ = 5, 
    2ff057
    COMPRESSED_LZIP = 6, 
    2ff057
    COMPRESSED_LRZIP = 7, 
    2ff057

    2ff057
      COMPRESSED_7ZIP = 8, 
    2ff057
    COMPRESSED_GEM = 9, 
    2ff057
    COMPRESSED_ZSTD = 10
    2ff057

    2ff057
     }
    2ff057
     
    2ff057
    2ff057

    2ff057
    Functions
    2ff057
    int rpmDoDigest (int algo, const char *fn, int asAscii, unsigned char *digest, rpm_loff_t *fsizep)
    2ff057
     Calculate a file digest and size.  More...
    2ff057
     
    2ff057
    FD_t rpmMkTemp (char *templ)
    2ff057
     Thin wrapper for mkstemp(3).  More...
    2ff057
     
    2ff057
    FD_t rpmMkTempFile (const char *prefix, char **fn)
    2ff057
     Return file handle for a temporaray file.  More...
    2ff057
     
    2ff057
    int rpmioMkpath (const char *path, mode_t mode, uid_t uid, gid_t gid)
    2ff057
     Insure that directories in path exist, creating as needed.  More...
    2ff057
     
    2ff057
    int rpmMkdirs (const char *root, const char *pathstr)
    2ff057
     Create several directories (including parents if needed) in one go.  More...
    2ff057
     
    2ff057
    char * rpmCleanPath (char *path)
    2ff057
     Canonicalize file path.  More...
    2ff057
     
    2ff057
    char * rpmGenPath (const char *urlroot, const char *urlmdir, const char *urlfile)
    2ff057
     Merge 3 args into path, any or all of which may be a url.  More...
    2ff057
     
    2ff057
    char * rpmGetPath (const char *path,...) RPM_GNUC_NULL_TERMINATED
    2ff057
     Return (malloc'ed) expanded, canonicalized, file path.  More...
    2ff057
     
    2ff057
    int rpmIsGlob (const char *pattern, int quote)
    2ff057
     Check whether pattern contains any glob metacharacters.  More...
    2ff057
     
    2ff057
    int rpmGlob (const char *patterns, int *argcPtr, ARGV_t *argvPtr)
    2ff057
     Return URL path(s) from a (URL prefixed) pattern glob.  More...
    2ff057
     
    2ff057
    char * rpmEscapeSpaces (const char *s)
    2ff057
     Escape isspace(3) characters in string.  More...
    2ff057
     
    2ff057
    int rpmFileIsCompressed (const char *file, rpmCompressedMagic *compressed)
    2ff057
     Return type of compression used in file.  More...
    2ff057
     
    2ff057
    int rpmFileHasSuffix (const char *path, const char *suffix)
    2ff057
     Check if path (string) ends with given suffix.  More...
    2ff057
     
    2ff057
    char * rpmGetCwd (void)
    2ff057
     Like getcwd() but the result is malloced.  More...
    2ff057
     
    2ff057
    2ff057

    Detailed Description

    2ff057

    File and path manipulation helper functions.

    2ff057
    2ff057

    Definition in file rpmfileutil.h.

    2ff057
    2ff057
    2ff057

    <address class="footer"><small>
    2ff057
    Generated by  
    2ff057
    doxygen
    2ff057
     1.8.14
    2ff057
    </small></address>
    2ff057
    </body>
    2ff057
    </html>