libalpm_files(3)

πŸ“¦
version 7.1.0.r9.g54d9411 Β· 4 versions
, in arch rolling, fedora 44

✨ 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 fr
  • struct alpm_filelist_t β€” the container that holds a whole package's filelist
  • struct 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 energy
  • char * name β€” name of the file
  • off_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 array
  • alpm_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 .pacsave extension)

πŸ’– 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 NULL if 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