Stable Compile-Time Options

Documentation for compile-time configuration macros. More...

Defines

Name
MPTAR_NO_STD
Disable standard library dependencies (-DMPTAR_NO_STD) for freestanding/bare-metal environments.
MPTAR_NO_READ
Disable read support (-DMPTAR_NO_READ) to strip archive reading functionality and reduce binary size.
MPTAR_NO_WRITE
Disable write support (-DMPTAR_NO_WRITE) to strip archive writing functionality and reduce binary size.
MPTAR_SUPPORT_SPECIAL
Enable support for special TAR entry types (-DMPTAR_SUPPORT_SPECIAL) like long links, PAX headers, and sparse files.
MPTAR_SUPPORT_EXTRA_TIMES
Enable extra timestamp support (-DMPTAR_SUPPORT_EXTRA_TIMES) to parse additional granular file times.
MPTAR_CUSTOM_U64TOA
Custom implementation override for unsigned 64-bit integer to string.
MPTAR_CUSTOM_I64TOA
Custom implementation override for signed 64-bit integer to string.
MPTAR_CUSTOM_ATOU64
Custom implementation override for string to unsigned 64-bit integer.
MPTAR_CUSTOM_ATOI64
Custom implementation override for string to signed 64-bit integer.
MPTAR_CUSTOM_STRLEN
Custom implementation override for string length calculation.
MPTAR_CUSTOM_STRNLEN
Custom implementation override for bounded string length calculation.
MPTAR_CUSTOM_STRNCPY
Custom implementation override for bounded string copying.
MPTAR_CUSTOM_MEMCPY
Custom implementation override for memory block copying.
MPTAR_CUSTOM_MEMSET
Custom implementation override for memory block setting.
MPTAR_CUSTOM_MEMCMP
Custom implementation override for memory block comparison.

Detailed Description

Documentation for compile-time configuration macros.

The DOXYGEN_DOCS macro is used exclusively by documentation generators like Doxygen. Because minipaxtar enables reading and writing by default, these option macros (such as MPTAR_NO_READ) are not normally defined in the source code. Wrapping them in "#ifdef DOXYGEN_DOCS" allows Doxygen to index and document them without altering actual build configurations.

Stable configuration macros and custom conversion/string hooks.

These options, features, and custom conversion hooks are guaranteed stable and will follow standard deprecation cycles if ever slated for modification or removal.

Macros Documentation

define MPTAR_NO_STD

#define MPTAR_NO_STD 

Disable standard library dependencies (-DMPTAR_NO_STD) for freestanding/bare-metal environments.

define MPTAR_NO_READ

#define MPTAR_NO_READ 

Disable read support (-DMPTAR_NO_READ) to strip archive reading functionality and reduce binary size.

define MPTAR_NO_WRITE

#define MPTAR_NO_WRITE 

Disable write support (-DMPTAR_NO_WRITE) to strip archive writing functionality and reduce binary size.

define MPTAR_SUPPORT_SPECIAL

#define MPTAR_SUPPORT_SPECIAL 

Enable support for special TAR entry types (-DMPTAR_SUPPORT_SPECIAL) like long links, PAX headers, and sparse files.

define MPTAR_SUPPORT_EXTRA_TIMES

#define MPTAR_SUPPORT_EXTRA_TIMES 

Enable extra timestamp support (-DMPTAR_SUPPORT_EXTRA_TIMES) to parse additional granular file times.

define MPTAR_CUSTOM_U64TOA

#define MPTAR_CUSTOM_U64TOA 

Custom implementation override for unsigned 64-bit integer to string.

define MPTAR_CUSTOM_I64TOA

#define MPTAR_CUSTOM_I64TOA 

Custom implementation override for signed 64-bit integer to string.

define MPTAR_CUSTOM_ATOU64

#define MPTAR_CUSTOM_ATOU64 

Custom implementation override for string to unsigned 64-bit integer.

define MPTAR_CUSTOM_ATOI64

#define MPTAR_CUSTOM_ATOI64 

Custom implementation override for string to signed 64-bit integer.

define MPTAR_CUSTOM_STRLEN

#define MPTAR_CUSTOM_STRLEN 

Custom implementation override for string length calculation.

define MPTAR_CUSTOM_STRNLEN

#define MPTAR_CUSTOM_STRNLEN 

Custom implementation override for bounded string length calculation.

define MPTAR_CUSTOM_STRNCPY

#define MPTAR_CUSTOM_STRNCPY 

Custom implementation override for bounded string copying.

define MPTAR_CUSTOM_MEMCPY

#define MPTAR_CUSTOM_MEMCPY 

Custom implementation override for memory block copying.

define MPTAR_CUSTOM_MEMSET

#define MPTAR_CUSTOM_MEMSET 

Custom implementation override for memory block setting.

define MPTAR_CUSTOM_MEMCMP

#define MPTAR_CUSTOM_MEMCMP 

Custom implementation override for memory block comparison.


Updated on 2026-07-23 at 20:07:34 +0000