ARCHIVE_ENTRY_MISC(3)

✨ ARCHIVE_ENTRY_MISC ✨

okay bestie, so this is part of the Library Functions Manual, and it's literally about libarchive β€” you know, the streaming archive library? we're in archive_entry_symlink_type territory and it's giving niche-but-iconic πŸ’…


πŸ’– NAME πŸ’–

archive_entry_symlink_type, archive_entry_set_symlink_type β€” miscellaneous functions for manipulating properties of archive_entry

like... the lil grab-bag of symlink-type functions. no cap.


πŸ“š LIBRARY πŸ“š

Streaming Archive Library (libarchive, -larchive)

so when you link, you're doing -larchive. don't forget it or the linker will be like "who?" πŸ’€


🫢 SYNOPSIS 🫢

#include <archive_entry.h>

int
archive_entry_symlink_type(struct archive_entry *a);

void
archive_entry_set_symlink_type(struct archive_entry *a, int);

🌸 DESCRIPTION 🌸

so here's the tea β˜•:

archive_entry_symlink_type() returns the type of the symbolic link stored in an archive entry, and archive_entry_set_symlink_type() sets it. getter, setter, the classic duo. main character energy fr fr.

these functions have special meaning on operating systems that support multiple symbolic link types β€” for example, Microsoft Windows. on unix they're just kinda vibing, iykyk.

Supported values are:

  • AE_SYMLINK_TYPE_UNDEFINED β€” Symbolic link target type is not defined (default on unix systems)
  • AE_SYMLINK_TYPE_FILE β€” Symbolic link points to a file
  • AE_SYMLINK_TYPE_DIRECTORY β€” Symbolic link points to a directory

that's the whole list. three (3) options. that's it. slay. πŸŽ€


πŸ‘€ SEE ALSO πŸ‘€


go read archive_entry(3) first if you're lost, bestie β€” it's the parent page and it'll hold your hand 🫢

Debian Β· April 15, 2019 β€” that's the source, the version, and the date of this lil page. mwah. πŸ’‹ bye bestie, go archive something πŸŒˆπŸ¦‹βœ¨

πŸ“¦ where this page comes from