File Type Flags
Identifiers for the tar header typeflag field.
Types
| Name | |
|---|---|
| enum | mptar_typeflags { MPTAR_FILE = '0', MPTAR_FILE_LEGACY = '\0', MPTAR_HARD_LINK = '1', MPTAR_SYMLINK = '2', MPTAR_CHAR_FILE = '3', MPTAR_BLOCK_FILE = '4', MPTAR_DIRECTORY = '5', MPTAR_PIPE = '6', MPTAR_CONTINOUS_FILE = '7', MPTAR_PAX_EX_HEADER = 'x', MPTAR_PAX_GLOBAL_EX_HEADER = 'g'} Enumeration of tar header typeflag values. |
Defines
| Name | |
|---|---|
| MPTAR_TYPE_FILE Regular file (ASCII '0'). |
|
| MPTAR_TYPE_FILE_LEGACY Regular file (Null byte, legacy). |
|
| MPTAR_TYPE_HARD_LINK Hard link to another file in the archive. |
|
| MPTAR_TYPE_SYMLINK Symbolic link. |
|
| MPTAR_TYPE_SPECIAL_CHARACTER_FILE Character special device node. |
|
| MPTAR_TYPE_SPECIAL_BLOCK_FILE Block special device node. |
|
| MPTAR_TYPE_DIRECTORY Directory. |
|
| MPTAR_TYPE_PIPE FIFO special file (named pipe). |
|
| MPTAR_TYPE_CONTINOUS_FILE Contiguous file. |
|
| MPTAR_PAX_EXTENDED_HEADER PAX extended header for the next file. |
|
| MPTAR_PAX_GLOBAL_EXTENDED_HEADER PAX global extended header for all following files. |
Types Documentation
enum mptar_typeflags
| Enumerator | Value | Description |
|---|---|---|
| MPTAR_FILE | '0' | Regular file (ASCII '0'). |
| MPTAR_FILE_LEGACY | '\0' | Regular file (Null byte, legacy). |
| MPTAR_HARD_LINK | '1' | Hard link to another file in the archive. |
| MPTAR_SYMLINK | '2' | Symbolic link. |
| MPTAR_CHAR_FILE | '3' | Character special device node. |
| MPTAR_BLOCK_FILE | '4' | Block special device node. |
| MPTAR_DIRECTORY | '5' | Directory. |
| MPTAR_PIPE | '6' | FIFO special file (named pipe). |
| MPTAR_CONTINOUS_FILE | '7' | Contiguous file. |
| MPTAR_PAX_EX_HEADER | 'x' | PAX extended header for the next file. |
| MPTAR_PAX_GLOBAL_EX_HEADER | 'g' | PAX global extended header for all following files. |
Enumeration of tar header typeflag values.
Provides strongly-typed constants corresponding to the MPTAR_TYPE_* macro definitions. Regular files can be encoded as either MPTAR_TYPE_FILE ('0') or MPTAR_TYPE_FILE_LEGACY ('\0'); parsers should check for both types when identifying standard files.
Macros Documentation
define MPTAR_TYPE_FILE
#define MPTAR_TYPE_FILE '0'
Regular file (ASCII '0').
define MPTAR_TYPE_FILE_LEGACY
#define MPTAR_TYPE_FILE_LEGACY '\0'
Regular file (Null byte, legacy).
define MPTAR_TYPE_HARD_LINK
#define MPTAR_TYPE_HARD_LINK '1'
Hard link to another file in the archive.
define MPTAR_TYPE_SYMLINK
#define MPTAR_TYPE_SYMLINK '2'
Symbolic link.
define MPTAR_TYPE_SPECIAL_CHARACTER_FILE
#define MPTAR_TYPE_SPECIAL_CHARACTER_FILE '3'
Character special device node.
define MPTAR_TYPE_SPECIAL_BLOCK_FILE
#define MPTAR_TYPE_SPECIAL_BLOCK_FILE '4'
Block special device node.
define MPTAR_TYPE_DIRECTORY
#define MPTAR_TYPE_DIRECTORY '5'
Directory.
define MPTAR_TYPE_PIPE
#define MPTAR_TYPE_PIPE '6'
FIFO special file (named pipe).
define MPTAR_TYPE_CONTINOUS_FILE
#define MPTAR_TYPE_CONTINOUS_FILE '7'
Contiguous file.
define MPTAR_PAX_EXTENDED_HEADER
#define MPTAR_PAX_EXTENDED_HEADER 'x'
PAX extended header for the next file.
define MPTAR_PAX_GLOBAL_EXTENDED_HEADER
#define MPTAR_PAX_GLOBAL_EXTENDED_HEADER 'g'
PAX global extended header for all following files.
Updated on 2026-10-12 at 15:39:00 +0000