diff --git a/CMakeLists.txt b/CMakeLists.txt index 10b44c3..a1e22b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.8..3.22) -project(minitar LANGUAGES C VERSION 1.6.0) +project(minitar LANGUAGES C VERSION 1.6.1) option(MINITAR_IGNORE_UNSUPPORTED_TYPES "Skip past entries that have unsupported types instead of panicking (deprecated)" OFF) diff --git a/docs/API.md b/docs/API.md index 5c04750..0dc98cd 100644 --- a/docs/API.md +++ b/docs/API.md @@ -81,6 +81,10 @@ This enum lists all supported file types: `MTAR_FIFO`: FIFO special files +`MTAR_BLKDEV`: Block devices + +`MTAR_CHRDEV`: Character devices + Other file types supported in tar archives, such as block/character devices or FIFOs, are not supported and minitar will throw an error when encountering one of them. This behavior can be controlled by passing `-DMINITAR_IGNORE_UNSUPPORTED_TYPES=ON` to CMake when configuring, which will make minitar silently ignore such entries instead of panicking. ### minitar_entry_metadata @@ -110,6 +114,10 @@ This structure represents an entry's metadata, with the following fields: `gname`: A string representing the group name of the entry's owner. (`char[]`) +`devmajor`: An integer representing the major number of a device. (`unsigned int`) + +`devminor`: An integer representing the minor number of a device. (`unsigned int`) + ### minitar_entry `struct minitar_entry`