ARCHIVE\_ENTRY\_MISC(3) Library Functions Manual ARCHIVE\_ENTRY\_MISC(3)

# [NAME](#NAME)

`archive_entry_symlink_type`, `archive_entry_set_symlink_type` — miscellaneous functions for manipulating properties of archive\_entry

# [LIBRARY](#LIBRARY)

Streaming Archive Library (libarchive, -larchive)

# [SYNOPSIS](#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](#DESCRIPTION)

The function [`archive_entry_symlink_type`](#archive_entry_symlink_type)() returns and the function [`archive_entry_set_symlink_type`](#archive_entry_set_symlink_type)() sets the type of the symbolic link stored in an archive entry. These functions have special meaning on operating systems that support multiple symbolic link types (e.g. Microsoft Windows).

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

# [SEE ALSO](#SEE_ALSO)

[archive\_entry(3)](/man/os/libarchive/archive_entry.3), [archive\_entry\_paths(3)](/man/os/libarchive/archive_entry_paths.3), [archive\_entry\_stat(3)](/man/os/libarchive/archive_entry_stat.3), [libarchive(3)](/man/os/libarchive/libarchive.3)

April 15, 2019 Linux 4.19.0-gvisor

---

Document: archive_entry_misc(3) from libarchive 3.8.9-r2 (Chainguard OS)
Source: https://github.com/libarchive/libarchive
