libalpm_files(3)
β¨ libalpm_files β Files β¨
okay bestie, buckle up π this is the libalpm_files page from the Library Functions Manual (yes, the libalpm_files(3) one, we're in section 3, the library functions section, iconic behavior).
- Functions for package files
that's the whole vibe. files. in packages. we love her π
πΈ SYNOPSIS πΈ
π Data Structures
struct alpm_file_tβ a file inside a package, fr frstruct alpm_filelist_tβ the container that holds a whole package's fileliststruct alpm_backup_tβ a backup entry for a local package or a package file
π¦ Functions
alpm_file_t * alpm_filelist_contains (const alpm_filelist_t *filelist, const char *path)β figures out whether a package filelist contains a given path, no cap
π Detailed Description π
Functions for package files β¨
that's it, that's the description. short and slay.
π Data Structure Documentation π
π struct alpm_file_t
File in a package. she's giving "one single file, but make it a struct" π
Data Fields:
mode_t modeβ the file's permissions. iykyk, chmod energychar * nameβ name of the fileoff_t sizeβ size of the file
π§ struct alpm_filelist_t
Package filelist container. the little basket holding all ur files π
Data Fields:
size_t countβ amount of files in the arrayalpm_file_t * filesβ an array of files
πΈ struct alpm_backup_t
Local package or package file backup entry. the "oops we changed it, here's the og" struct π«Ά
Data Fields:
char * hashβ hash of the filename (used internally)char * nameβ name of the file (without the.pacsaveextension)
π Function Documentation π
β alpm_file_t * alpm_filelist_contains (const alpm_filelist_t * filelist, const char * path)
Determines whether a package filelist contains a given path. literally the whole job.
the path you hand over should be relative to the install root with no leading slashes, e.g. "etc/localtime". not me stressing this β it matters okay π. and when you're searching for directories, the path must have a trailing slash. periodt.
Parameters:
- filelist β a pointer to a package filelist
- path β the path to search for in the package
Returns:
- a pointer to the matching file, or
NULLif not found π
π¦ Author π¦
Generated automatically by Doxygen for libalpm from the source code. yes bestie, a robot wrote it, and she ate π β¨
okay that's the whole page, mwah π this was libalpm_files(3) from the libalpm library manual β go forth and find ur files, main character πππ
π¦ where this page comes from
- arch rolling: pacman 7.1.0.r9.g54d9411-2
- fedora 44: libalpm-devel 7.0.0-6.fc44 Β· GPL-2.0-or-later
- fedora 44: libalpm-devel 7.0.0-6.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms