Full Code of libyal/libfsrefs for AI

main ff13b26839b9 cached
299 files
1.9 MB
710.8k tokens
414 symbols
1 requests
Download .txt
Showing preview only (2,042K chars total). Download the full file or copy to clipboard to get everything.
Repository: libyal/libfsrefs
Branch: main
Commit: ff13b26839b9
Files: 299
Total size: 1.9 MB

Directory structure:
gitextract_vkfx4bi5/

├── .codecov.yml
├── .github/
│   └── workflows/
│       ├── build.yml
│       ├── build_freebsd.yml
│       ├── build_macos.yml
│       ├── build_ossfuzz.yml
│       └── build_shared.yml
├── .gitignore
├── AUTHORS
├── COPYING
├── COPYING.LESSER
├── ChangeLog
├── Makefile.am
├── NEWS
├── README
├── acinclude.m4
├── appveyor.yml
├── autogen.ps1
├── autogen.sh
├── build.ps1
├── common/
│   ├── Makefile.am
│   ├── byte_stream.h
│   ├── common.h
│   ├── config_borlandc.h
│   ├── config_msc.h
│   ├── config_winapi.h
│   ├── file_stream.h
│   ├── memory.h
│   ├── narrow_string.h
│   ├── system_string.h
│   ├── types.h.in
│   └── wide_string.h
├── configure.ac
├── documentation/
│   └── Resilient File System (ReFS).asciidoc
├── dpkg/
│   ├── changelog.in
│   ├── compat
│   ├── control
│   ├── copyright
│   ├── libfsrefs-dev.install
│   ├── libfsrefs-tools.install
│   ├── libfsrefs.install
│   ├── rules
│   └── source/
│       └── format
├── fsrefstools/
│   ├── Makefile.am
│   ├── fsrefsinfo.c
│   ├── fsrefstools_getopt.c
│   ├── fsrefstools_getopt.h
│   ├── fsrefstools_i18n.h
│   ├── fsrefstools_libbfio.h
│   ├── fsrefstools_libcerror.h
│   ├── fsrefstools_libclocale.h
│   ├── fsrefstools_libcnotify.h
│   ├── fsrefstools_libfcache.h
│   ├── fsrefstools_libfdata.h
│   ├── fsrefstools_libfdatetime.h
│   ├── fsrefstools_libfguid.h
│   ├── fsrefstools_libfsrefs.h
│   ├── fsrefstools_libfwnt.h
│   ├── fsrefstools_libuna.h
│   ├── fsrefstools_output.c
│   ├── fsrefstools_output.h
│   ├── fsrefstools_signal.c
│   ├── fsrefstools_signal.h
│   ├── fsrefstools_unused.h
│   ├── info_handle.c
│   └── info_handle.h
├── include/
│   ├── Makefile.am
│   ├── libfsrefs/
│   │   ├── codepage.h
│   │   ├── definitions.h.in
│   │   ├── error.h
│   │   ├── extern.h
│   │   ├── features.h.in
│   │   └── types.h.in
│   └── libfsrefs.h.in
├── libfsrefs/
│   ├── Makefile.am
│   ├── fsrefs_checkpoint.h
│   ├── fsrefs_directory_object.h
│   ├── fsrefs_metadata_block.h
│   ├── fsrefs_ministore_tree.h
│   ├── fsrefs_superblock.h
│   ├── fsrefs_volume_header.h
│   ├── libfsrefs.c
│   ├── libfsrefs.rc.in
│   ├── libfsrefs_attribute_values.c
│   ├── libfsrefs_attribute_values.h
│   ├── libfsrefs_block_descriptor.c
│   ├── libfsrefs_block_descriptor.h
│   ├── libfsrefs_block_reference.c
│   ├── libfsrefs_block_reference.h
│   ├── libfsrefs_block_tree.c
│   ├── libfsrefs_block_tree.h
│   ├── libfsrefs_block_tree_node.c
│   ├── libfsrefs_block_tree_node.h
│   ├── libfsrefs_checkpoint.c
│   ├── libfsrefs_checkpoint.h
│   ├── libfsrefs_data_run.c
│   ├── libfsrefs_data_run.h
│   ├── libfsrefs_debug.c
│   ├── libfsrefs_debug.h
│   ├── libfsrefs_definitions.h.in
│   ├── libfsrefs_directory_entry.c
│   ├── libfsrefs_directory_entry.h
│   ├── libfsrefs_directory_object.c
│   ├── libfsrefs_directory_object.h
│   ├── libfsrefs_error.c
│   ├── libfsrefs_error.h
│   ├── libfsrefs_extern.h
│   ├── libfsrefs_file_entry.c
│   ├── libfsrefs_file_entry.h
│   ├── libfsrefs_file_system.c
│   ├── libfsrefs_file_system.h
│   ├── libfsrefs_io_handle.c
│   ├── libfsrefs_io_handle.h
│   ├── libfsrefs_libbfio.h
│   ├── libfsrefs_libcdata.h
│   ├── libfsrefs_libcerror.h
│   ├── libfsrefs_libclocale.h
│   ├── libfsrefs_libcnotify.h
│   ├── libfsrefs_libcthreads.h
│   ├── libfsrefs_libfcache.h
│   ├── libfsrefs_libfdata.h
│   ├── libfsrefs_libfdatetime.h
│   ├── libfsrefs_libfguid.h
│   ├── libfsrefs_libfwnt.h
│   ├── libfsrefs_libuna.h
│   ├── libfsrefs_metadata_block_header.c
│   ├── libfsrefs_metadata_block_header.h
│   ├── libfsrefs_ministore_node.c
│   ├── libfsrefs_ministore_node.h
│   ├── libfsrefs_node_header.c
│   ├── libfsrefs_node_header.h
│   ├── libfsrefs_node_record.c
│   ├── libfsrefs_node_record.h
│   ├── libfsrefs_notify.c
│   ├── libfsrefs_notify.h
│   ├── libfsrefs_objects_tree.c
│   ├── libfsrefs_objects_tree.h
│   ├── libfsrefs_superblock.c
│   ├── libfsrefs_superblock.h
│   ├── libfsrefs_support.c
│   ├── libfsrefs_support.h
│   ├── libfsrefs_tree_header.c
│   ├── libfsrefs_tree_header.h
│   ├── libfsrefs_types.h
│   ├── libfsrefs_unused.h
│   ├── libfsrefs_volume.c
│   ├── libfsrefs_volume.h
│   ├── libfsrefs_volume_header.c
│   └── libfsrefs_volume_header.h
├── libfsrefs.ini
├── libfsrefs.pc.in
├── libfsrefs.spec.in
├── m4/
│   ├── common.m4
│   ├── libbfio.m4
│   ├── libcdata.m4
│   ├── libcerror.m4
│   ├── libcfile.m4
│   ├── libclocale.m4
│   ├── libcnotify.m4
│   ├── libcpath.m4
│   ├── libcsplit.m4
│   ├── libcthreads.m4
│   ├── libfcache.m4
│   ├── libfdata.m4
│   ├── libfdatetime.m4
│   ├── libfguid.m4
│   ├── libfusn.m4
│   ├── libfwnt.m4
│   ├── libuna.m4
│   ├── pthread.m4
│   ├── tests.m4
│   └── types.m4
├── manuals/
│   ├── Makefile.am
│   ├── fsrefsinfo.1
│   └── libfsrefs.3
├── msvscpp/
│   ├── Makefile.am
│   ├── fsrefs_test_attribute_values/
│   │   └── fsrefs_test_attribute_values.vcproj
│   ├── fsrefs_test_block_descriptor/
│   │   └── fsrefs_test_block_descriptor.vcproj
│   ├── fsrefs_test_block_reference/
│   │   └── fsrefs_test_block_reference.vcproj
│   ├── fsrefs_test_block_tree/
│   │   └── fsrefs_test_block_tree.vcproj
│   ├── fsrefs_test_block_tree_node/
│   │   └── fsrefs_test_block_tree_node.vcproj
│   ├── fsrefs_test_checkpoint/
│   │   └── fsrefs_test_checkpoint.vcproj
│   ├── fsrefs_test_data_run/
│   │   └── fsrefs_test_data_run.vcproj
│   ├── fsrefs_test_directory_entry/
│   │   └── fsrefs_test_directory_entry.vcproj
│   ├── fsrefs_test_directory_object/
│   │   └── fsrefs_test_directory_object.vcproj
│   ├── fsrefs_test_error/
│   │   └── fsrefs_test_error.vcproj
│   ├── fsrefs_test_file_entry/
│   │   └── fsrefs_test_file_entry.vcproj
│   ├── fsrefs_test_file_system/
│   │   └── fsrefs_test_file_system.vcproj
│   ├── fsrefs_test_io_handle/
│   │   └── fsrefs_test_io_handle.vcproj
│   ├── fsrefs_test_metadata_block_header/
│   │   └── fsrefs_test_metadata_block_header.vcproj
│   ├── fsrefs_test_ministore_node/
│   │   └── fsrefs_test_ministore_node.vcproj
│   ├── fsrefs_test_node_header/
│   │   └── fsrefs_test_node_header.vcproj
│   ├── fsrefs_test_node_record/
│   │   └── fsrefs_test_node_record.vcproj
│   ├── fsrefs_test_notify/
│   │   └── fsrefs_test_notify.vcproj
│   ├── fsrefs_test_objects_tree/
│   │   └── fsrefs_test_objects_tree.vcproj
│   ├── fsrefs_test_superblock/
│   │   └── fsrefs_test_superblock.vcproj
│   ├── fsrefs_test_support/
│   │   └── fsrefs_test_support.vcproj
│   ├── fsrefs_test_tools_info_handle/
│   │   └── fsrefs_test_tools_info_handle.vcproj
│   ├── fsrefs_test_tools_output/
│   │   └── fsrefs_test_tools_output.vcproj
│   ├── fsrefs_test_tools_signal/
│   │   └── fsrefs_test_tools_signal.vcproj
│   ├── fsrefs_test_tree_header/
│   │   └── fsrefs_test_tree_header.vcproj
│   ├── fsrefs_test_volume/
│   │   └── fsrefs_test_volume.vcproj
│   ├── fsrefs_test_volume_header/
│   │   └── fsrefs_test_volume_header.vcproj
│   ├── fsrefsinfo/
│   │   └── fsrefsinfo.vcproj
│   ├── libbfio/
│   │   └── libbfio.vcproj
│   ├── libcdata/
│   │   └── libcdata.vcproj
│   ├── libcerror/
│   │   └── libcerror.vcproj
│   ├── libcfile/
│   │   └── libcfile.vcproj
│   ├── libclocale/
│   │   └── libclocale.vcproj
│   ├── libcnotify/
│   │   └── libcnotify.vcproj
│   ├── libcpath/
│   │   └── libcpath.vcproj
│   ├── libcsplit/
│   │   └── libcsplit.vcproj
│   ├── libcthreads/
│   │   └── libcthreads.vcproj
│   ├── libfcache/
│   │   └── libfcache.vcproj
│   ├── libfdata/
│   │   └── libfdata.vcproj
│   ├── libfdatetime/
│   │   └── libfdatetime.vcproj
│   ├── libfguid/
│   │   └── libfguid.vcproj
│   ├── libfsrefs/
│   │   └── libfsrefs.vcproj
│   ├── libfsrefs.sln
│   ├── libfusn/
│   │   └── libfusn.vcproj
│   ├── libfwnt/
│   │   └── libfwnt.vcproj
│   └── libuna/
│       └── libuna.vcproj
├── ossfuzz/
│   ├── Makefile.am
│   ├── ossfuzz_libbfio.h
│   ├── ossfuzz_libfsrefs.h
│   └── volume_fuzzer.cc
├── po/
│   ├── ChangeLog
│   ├── Makevars.in
│   └── POTFILES.in
├── runtests.ps1
├── runtests.sh
├── synclibs.ps1
├── synclibs.sh
└── tests/
    ├── Makefile.am
    ├── build.sh
    ├── data/
    │   ├── block_descriptor.1
    │   ├── block_descriptor.2
    │   ├── checkpoint.1
    │   ├── checkpoint.2
    │   ├── data_run.1
    │   ├── node_header.1
    │   ├── node_record.1
    │   ├── superblock.1
    │   ├── superblock.2
    │   ├── tree_header.1
    │   └── volume_header.1
    ├── fsrefs_test_attribute_values.c
    ├── fsrefs_test_block_descriptor.c
    ├── fsrefs_test_block_reference.c
    ├── fsrefs_test_block_tree.c
    ├── fsrefs_test_block_tree_node.c
    ├── fsrefs_test_checkpoint.c
    ├── fsrefs_test_data_run.c
    ├── fsrefs_test_directory_entry.c
    ├── fsrefs_test_directory_object.c
    ├── fsrefs_test_error.c
    ├── fsrefs_test_file_entry.c
    ├── fsrefs_test_file_system.c
    ├── fsrefs_test_functions.c
    ├── fsrefs_test_functions.h
    ├── fsrefs_test_getopt.c
    ├── fsrefs_test_getopt.h
    ├── fsrefs_test_io_handle.c
    ├── fsrefs_test_libbfio.h
    ├── fsrefs_test_libcerror.h
    ├── fsrefs_test_libclocale.h
    ├── fsrefs_test_libcnotify.h
    ├── fsrefs_test_libfsrefs.h
    ├── fsrefs_test_libuna.h
    ├── fsrefs_test_macros.h
    ├── fsrefs_test_memory.c
    ├── fsrefs_test_memory.h
    ├── fsrefs_test_metadata_block_header.c
    ├── fsrefs_test_ministore_node.c
    ├── fsrefs_test_ministore_tree.c
    ├── fsrefs_test_node_header.c
    ├── fsrefs_test_node_record.c
    ├── fsrefs_test_notify.c
    ├── fsrefs_test_objects_tree.c
    ├── fsrefs_test_superblock.c
    ├── fsrefs_test_support.c
    ├── fsrefs_test_tools_info_handle.c
    ├── fsrefs_test_tools_output.c
    ├── fsrefs_test_tools_signal.c
    ├── fsrefs_test_tree_header.c
    ├── fsrefs_test_unused.h
    ├── fsrefs_test_volume.c
    ├── fsrefs_test_volume_header.c
    ├── lsan.suppressions
    ├── pkgbuild.sh
    ├── runtests.sh
    ├── syncsharedlibs.sh
    ├── test_fsrefsinfo.ps1
    ├── test_fsrefsinfo.sh
    ├── test_library.ps1
    ├── test_library.sh
    ├── test_manpage.sh
    ├── test_runner.sh
    ├── test_tools.ps1
    └── test_tools.sh

================================================
FILE CONTENTS
================================================

================================================
FILE: .codecov.yml
================================================
coverage:
  precision: 2
  round: down
  range: 70...100
  status:
    project: true
    patch: true
    changes: false
  ignore:
    - "libbfio/*"
    - "libcdata/*"
    - "libcerror/*"
    - "libcfile/*"
    - "libclocale/*"
    - "libcnotify/*"
    - "libcpath/*"
    - "libcsplit/*"
    - "libcthreads/*"
    - "libfcache/*"
    - "libfdata/*"
    - "libfdatetime/*"
    - "libfguid/*"
    - "libfusn/*"
    - "libfwnt/*"
    - "libuna/*"
    - "tests/*"


================================================
FILE: .github/workflows/build.yml
================================================
# Build from source.
name: build
on: [push, pull_request]
permissions: read-all
jobs:
  build_ubuntu:
    runs-on: ubuntu-22.04
    strategy:
      matrix:
        include:
        - architecture: 'x86'
          compiler: 'clang'
          configure_options: ''
        - architecture: 'x64'
          compiler: 'clang'
          configure_options: ''
        - architecture: 'x86'
          compiler: 'gcc'
          configure_options: ''
        - architecture: 'x64'
          compiler: 'gcc'
          configure_options: ''
        - architecture: 'x64'
          compiler: 'gcc'
          configure_options: '--with-pthread=no'
        - architecture: 'x64'
          compiler: 'gcc'
          configure_options: '--enable-wide-character-type'
        - architecture: 'x64'
          compiler: 'gcc'
          configure_options: '--enable-static-executables=yes --enable-multi-threading-support=no'
    steps:
    - uses: actions/checkout@v4
    - name: Install build dependencies
      run: |
        sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config
    - name: Download test data
      run: |
        if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
    - name: Building from source
      env:
        CC: ${{ matrix.compiler }}
      run: |
        tests/build.sh ${{ matrix.configure_options }}
    - name: Run tests
      run: |
        tests/runtests.sh
  build_dist:
    runs-on: ubuntu-22.04
    strategy:
      matrix:
        include:
        - architecture: 'x64'
          compiler: 'gcc'
          configure_options: ''
    steps:
    - uses: actions/checkout@v4
    - name: Install build dependencies
      run: |
        sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config
    - name: Download test data
      run: |
        if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
    - name: Building from source
      env:
        CC: ${{ matrix.compiler }}
      run: |
        tests/build.sh ${{ matrix.configure_options }}
    - name: Run tests
      run: |
        make distcheck
  coverage_ubuntu:
    runs-on: ubuntu-22.04
    strategy:
      matrix:
        include:
        - architecture: 'x86'
          compiler: 'gcc'
          configure_options: '--enable-wide-character-type'
        - architecture: 'x64'
          compiler: 'gcc'
          configure_options: '--enable-wide-character-type'
    steps:
    - uses: actions/checkout@v4
    - name: Install build dependencies
      run: |
        sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config
    - name: Download test data
      run: |
        if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
    - name: Building from source
      env:
        CC: ${{ matrix.compiler }}
      run: |
        tests/build.sh ${{ matrix.configure_options }} --enable-shared=no CFLAGS="--coverage -O0" CPPFLAGS="-DOPTIMIZATION_DISABLED" LDFLAGS="--coverage"
    - name: Run tests
      run: |
        make check CHECK_WITH_STDERR=1 SKIP_TOOLS_END_TO_END_TESTS=1
    - name: Generate coverage data
      run: |
        for DIRECTORY in `find . -maxdepth 1 -type d`; do \
          (cd ${DIRECTORY} && find . -maxdepth 1 -name \*.gcno -type f -exec gcov -pb {} \;) \
        done
    - name: Upload coverage report to Codecov
      uses: codecov/codecov-action@v4
      with:
        name: linux-${{ matrix.architecture }}-gcc-no-optimization
        token: ${{ secrets.CODECOV_TOKEN }}


================================================
FILE: .github/workflows/build_freebsd.yml
================================================
# Build from source on FreeBSD.
name: build_freebsd
on: [push]
permissions: read-all
jobs:
  build_freebsd:
    runs-on: ubuntu-22.04
    steps:
    - uses: actions/checkout@v4
    - name: Building from source
      id: build_freebsd
      uses: vmactions/freebsd-vm@v1
      with:
        usesh: true
        mem: 4096
        # Note that the test scripts require bash
        prepare: |
          pkg install -y autoconf automake bash gettext git libtool pkgconf
        run: |
          tests/build.sh
          tests/runtests.sh


================================================
FILE: .github/workflows/build_macos.yml
================================================
# Build from source.
name: build_macos
on: [push, pull_request]
permissions: read-all
jobs:
  build_macos:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        include:
        - os: macos-14
          configure_options: ''
        - os: macos-15
          configure_options: ''
        - os: macos-15-intel
          configure_options: ''
        - os: macos-26
          configure_options: ''
    steps:
    - uses: actions/checkout@v4
    - name: Install build dependencies
      run: |
        brew update -q
        brew install -q autoconf automake gettext gnu-sed libtool pkg-config || true
        brew link --force gettext
        ln -s /usr/local/bin/glibtoolize /usr/local/bin/libtoolize
    - name: Download test data
      run: |
        if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
    - name: Building from source
      env:
        CC: ${{ matrix.compiler }}
      run: |
        tests/build.sh ${{ matrix.configure_options }}
    - name: Run tests
      run: |
        tests/runtests.sh


================================================
FILE: .github/workflows/build_ossfuzz.yml
================================================
# Build OSSFuzz fuzz targets from source.
name: build_ossfuzz
on:
  push:
    branches: [main]
permissions: read-all
jobs:
  build_ossfuzz:
    runs-on: ubuntu-22.04
    strategy:
      matrix:
        include:
        - architecture: 'x64'
          compiler: 'gcc'
          configure_options: ''
    steps:
    - name: Install build dependencies
      run: |
        sudo apt-get -y install git
    - uses: actions/checkout@v4
      with:
        repository: google/oss-fuzz
        path: oss-fuzz
    - name: Build OSSFuzz fuzz targets
      working-directory: oss-fuzz
      run: |
        mkdir -p projects/libfsrefs
        cp projects/libyal/build.sh projects/libfsrefs/
        cp projects/libyal/project.yaml projects/libfsrefs/
        head -n 20 projects/libyal/Dockerfile > projects/libfsrefs/Dockerfile
        echo "RUN git clone --depth 1 https://github.com/libyal/libfsrefs.git libfsrefs" >> projects/libfsrefs/Dockerfile
        tail -n 3 projects/libyal/Dockerfile >> projects/libfsrefs/Dockerfile
        python3 infra/helper.py build_image --pull libfsrefs
        python3 infra/helper.py build_fuzzers --sanitizer address libfsrefs
        python3 infra/helper.py check_build libfsrefs


================================================
FILE: .github/workflows/build_shared.yml
================================================
# Build from source with libyal dependencies as shared libraries.
name: build_shared
on:
  push:
    branches: [main]
permissions: read-all
jobs:
  build_shared_ubuntu:
    runs-on: ubuntu-22.04
    strategy:
      matrix:
        include:
        - architecture: 'x64'
          compiler: 'gcc'
          configure_options: ''
        - architecture: 'x64'
          compiler: 'gcc'
          configure_options: '--enable-wide-character-type'
    steps:
    - uses: actions/checkout@v4
    - name: Install build dependencies
      run: |
        sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config
    - name: Download test data
      run: |
        if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
    - name: Prepare shared libraries
      run: |
        tests/syncsharedlibs.sh --use-head
    - name: Building from source
      env:
        CC: ${{ matrix.compiler }}
      run: |
        tests/build.sh ${{ matrix.configure_options }}
    - name: Run tests
      run: |
        tests/runtests.sh


================================================
FILE: .gitignore
================================================
# Files to ignore by git
#
# Version: 20231119

# Generic auto-generated build files
*~
*.a
*.gcda
*.gcno
*.gcov
*.la
*.lai
*.lib
*.lineno
*.lo
*.log
*.loT
*.o
*.obj
*.Plo
*.Po
*.so
*.so.[0-9][0-9]*
*.so.[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*
*.swp
*.Tpo
*.trs
*.whl
/*.egg-info/
__pycache__
.deps
.dirstamp
.libs
.tox
INSTALL
Makefile
Makefile.bcc
Makefile.in
stamp-h[1-9]

# Specific auto-generated build files
/ABOUT-NLS
/aclocal.m4
/autom4te.cache/
/build
/compile
/confdefs.h
/config.cache
/config.guess
/config.log
/config.rpath
/config.status
/config.sub
/configure
/conftest.c
/depcomp
/dist
/install-sh
/libtool
/ltmain.sh
/m4/codeset.m4
/m4/extern-inline.m4
/m4/fcntl-o.m4
/m4/gettext.m4
/m4/glibc21.m4
/m4/glibc2.m4
/m4/host-cpu-c-abi.m4
/m4/iconv.m4
/m4/intdiv0.m4
/m4/intldir.m4
/m4/intl.m4
/m4/intlmacosx.m4
/m4/intmax.m4
/m4/inttypes_h.m4
/m4/inttypes-pri.m4
/m4/lcmessage.m4
/m4/lib-ld.m4
/m4/lib-link.m4
/m4/lib-prefix.m4
/m4/libtool.m4
/m4/lock.m4
/m4/longlong.m4
/m4/lt~obsolete.m4
/m4/ltoptions.m4
/m4/ltsugar.m4
/m4/ltversion.m4
/m4/nls.m4
/m4/pkg.m4
/m4/po.m4
/m4/printf-posix.m4
/m4/progtest.m4
/m4/size_max.m4
/m4/stdint_h.m4
/m4/threadlib.m4
/m4/uintmax_t.m4
/m4/visibility.m4
/m4/wchar_t.m4
/m4/wint_t.m4
/m4/xsize.m4
/MANIFEST
/missing
/po/boldquot.sed
/po/en@boldquot.header
/po/en@quot.header
/po/insert-header.sin
/po/Makefile.in.in
/po/Makevars
/po/Makevars.template
/po/POTFILES
/po/quot.sed
/po/remove-potcdate.sed
/po/remove-potcdate.sin
/po/Rules-quot
/test-driver
/ylwrap

# Project specific files
/common/config.h
/common/config.h.in
/common/types.h
/dpkg/changelog
/include/libfsrefs.h
/include/libfsrefs/definitions.h
/include/libfsrefs/features.h
/include/libfsrefs/types.h
/libfsrefs.pc
/libfsrefs.spec
/libfsrefs/libfsrefs.rc
/libfsrefs/libfsrefs_definitions.h
/fsrefstools/*.exe
/fsrefstools/fsrefsinfo
/tests/*.exe
/tests/fsrefs_test_attribute_values
/tests/fsrefs_test_block_descriptor
/tests/fsrefs_test_block_reference
/tests/fsrefs_test_block_tree
/tests/fsrefs_test_block_tree_node
/tests/fsrefs_test_checkpoint
/tests/fsrefs_test_data_run
/tests/fsrefs_test_directory_entry
/tests/fsrefs_test_directory_object
/tests/fsrefs_test_error
/tests/fsrefs_test_file_entry
/tests/fsrefs_test_file_system
/tests/fsrefs_test_io_handle
/tests/fsrefs_test_metadata_block_header
/tests/fsrefs_test_ministore_node
/tests/fsrefs_test_ministore_tree
/tests/fsrefs_test_node_header
/tests/fsrefs_test_node_record
/tests/fsrefs_test_notify
/tests/fsrefs_test_objects_tree
/tests/fsrefs_test_superblock
/tests/fsrefs_test_support
/tests/fsrefs_test_tools_info_handle
/tests/fsrefs_test_tools_output
/tests/fsrefs_test_tools_signal
/tests/fsrefs_test_tree_header
/tests/fsrefs_test_volume
/tests/fsrefs_test_volume_header
/tests/input
/tests/notify_stream.log
/tests/tmp*

# Local library dependencies specific files
/libbfio
/libcdata
/libcerror
/libcfile
/libclocale
/libcnotify
/libcpath
/libcsplit
/libcthreads
/libfcache
/libfdata
/libfdatetime
/libfguid
/libfusn
/libfwnt
/libuna


================================================
FILE: AUTHORS
================================================
Acknowledgements: libfsrefs

Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>



================================================
FILE: COPYING
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.


================================================
FILE: COPYING.LESSER
================================================
                   GNU LESSER GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.


  This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.

  0. Additional Definitions.

  As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.

  "The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.

  An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.

  A "Combined Work" is a work produced by combining or linking an
Application with the Library.  The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".

  The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.

  The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.

  1. Exception to Section 3 of the GNU GPL.

  You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.

  2. Conveying Modified Versions.

  If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:

   a) under this License, provided that you make a good faith effort to
   ensure that, in the event an Application does not supply the
   function or data, the facility still operates, and performs
   whatever part of its purpose remains meaningful, or

   b) under the GNU GPL, with none of the additional permissions of
   this License applicable to that copy.

  3. Object Code Incorporating Material from Library Header Files.

  The object code form of an Application may incorporate material from
a header file that is part of the Library.  You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:

   a) Give prominent notice with each copy of the object code that the
   Library is used in it and that the Library and its use are
   covered by this License.

   b) Accompany the object code with a copy of the GNU GPL and this license
   document.

  4. Combined Works.

  You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:

   a) Give prominent notice with each copy of the Combined Work that
   the Library is used in it and that the Library and its use are
   covered by this License.

   b) Accompany the Combined Work with a copy of the GNU GPL and this license
   document.

   c) For a Combined Work that displays copyright notices during
   execution, include the copyright notice for the Library among
   these notices, as well as a reference directing the user to the
   copies of the GNU GPL and this license document.

   d) Do one of the following:

       0) Convey the Minimal Corresponding Source under the terms of this
       License, and the Corresponding Application Code in a form
       suitable for, and under terms that permit, the user to
       recombine or relink the Application with a modified version of
       the Linked Version to produce a modified Combined Work, in the
       manner specified by section 6 of the GNU GPL for conveying
       Corresponding Source.

       1) Use a suitable shared library mechanism for linking with the
       Library.  A suitable mechanism is one that (a) uses at run time
       a copy of the Library already present on the user's computer
       system, and (b) will operate properly with a modified version
       of the Library that is interface-compatible with the Linked
       Version.

   e) Provide Installation Information, but only if you would otherwise
   be required to provide such information under section 6 of the
   GNU GPL, and only to the extent that such information is
   necessary to install and execute a modified version of the
   Combined Work produced by recombining or relinking the
   Application with a modified version of the Linked Version. (If
   you use option 4d0, the Installation Information must accompany
   the Minimal Corresponding Source and Corresponding Application
   Code. If you use option 4d1, you must provide the Installation
   Information in the manner specified by section 6 of the GNU GPL
   for conveying Corresponding Source.)

  5. Combined Libraries.

  You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:

   a) Accompany the combined library with a copy of the same work based
   on the Library, uncombined with any other library facilities,
   conveyed under the terms of this License.

   b) Give prominent notice with the combined library that part of it
   is a work based on the Library, and explaining where to find the
   accompanying uncombined form of the same work.

  6. Revised Versions of the GNU Lesser General Public License.

  The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.

  Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.

  If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.


================================================
FILE: ChangeLog
================================================
TODO

Format support
* Use checkpoint in determining block offsets
* Rename metadata block header to block header ?
* Rename metadata block size to page size ?
* Use directory object name records in determining directory entries and lookup detailed entry record on demand
* Add support for multi node file values ministore tree

API
* add function to retrieve container size

20141011
* see `git log' for more recent change log
* removed README.macosx
* updated dependencies
* changes for project site move

20140529
* updated dependencies

20140118
* 2014 update
* updated dependencies

20131109
* updated dependencies
* code clean up

20130915
* code clean up

20130914
* updated dependencies
* added libcthreads build support

20130224
* updated dependencies
* 2013 update

20120930
* worked on format

20120929
* updated dependencies
* worked on format

20120528
* worked on format

20120527
* initial version based on libfsntfs



================================================
FILE: Makefile.am
================================================
ACLOCAL_AMFLAGS = -I m4

SUBDIRS = \
	include \
	common \
	libcerror \
	libcthreads \
	libcdata \
	libclocale \
	libcnotify \
	libcsplit \
	libuna \
	libcfile \
	libcpath \
	libbfio \
	libfcache \
	libfdata \
	libfdatetime \
	libfguid \
	libfwnt \
	libfsrefs \
	libfusn \
	fsrefstools \
	po \
	manuals \
	tests \
	ossfuzz \
	msvscpp

DPKG_FILES = \
	dpkg/changelog \
	dpkg/changelog.in \
	dpkg/compat \
	dpkg/control \
	dpkg/copyright \
	dpkg/rules \
	dpkg/libfsrefs-dev.install \
	dpkg/libfsrefs.install \
	dpkg/libfsrefs-tools.install \
	dpkg/source/format

GETTEXT_FILES = \
	config.rpath \
	po/Makevars.in

PKGCONFIG_FILES = \
	libfsrefs.pc.in

SPEC_FILES = \
	libfsrefs.spec \
	libfsrefs.spec.in

EXTRA_DIST = \
	$(DPKG_FILES) \
	$(GETTEXT_FILES) \
	$(PKGCONFIG_FILES) \
	$(SPEC_FILES)

DISTCLEANFILES = \
	config.status \
	config.cache \
	config.log \
	libfsrefs.pc \
	libfsrefs.spec \
	Makefile \
	Makefile.in \
	po/Makevars

pkgconfigdir = $(libdir)/pkgconfig

pkgconfig_DATA = \
	libfsrefs.pc

libtool: @LIBTOOL_DEPS@
	cd $(srcdir) && $(SHELL) ./config.status --recheck

lib: library

library:
	(cd $(srcdir)/common && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/libcerror && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/libcthreads && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/libcdata && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/libclocale && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/libcnotify && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/libcsplit && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/libuna && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/libcfile && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/libcpath && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/libbfio && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/libfcache && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/libfdata && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/libfdatetime && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/libfguid && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/libfwnt && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/libfsrefs && $(MAKE) $(AM_MAKEFLAGS))
	(cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS))



================================================
FILE: NEWS
================================================


================================================
FILE: README
================================================
libfsrefs is a library to access the Resilient File System (ReFS).

Note that this project currently only focuses on the analysis of the format.

Project information:

* Status: experimental
* Licence: LGPLv3+

Read-only supported ReFS formats:

* version 1

Unsupported ReFS format features:

* ReFS version 2
* ReFS version 3

Planned:

* Finish library

For more information see:

* Project documentation: https://github.com/libyal/libfsrefs/wiki/Home
* How to build from source: https://github.com/libyal/libfsrefs/wiki/Building



================================================
FILE: acinclude.m4
================================================
dnl Checks for required headers and functions
dnl
dnl Version: 20200713

dnl Function to detect if libfsrefs dependencies are available
AC_DEFUN([AX_LIBFSREFS_CHECK_LOCAL],
  [dnl Check for internationalization functions in libfsrefs/libfsrefs_i18n.c
  AC_CHECK_FUNCS([bindtextdomain])
])

dnl Function to detect if fsrefstools dependencies are available
AC_DEFUN([AX_FSREFSTOOLS_CHECK_LOCAL],
  [AC_CHECK_HEADERS([signal.h sys/signal.h unistd.h])

  AC_CHECK_FUNCS([close getopt setvbuf])

  AS_IF(
   [test "x$ac_cv_func_close" != xyes],
   [AC_MSG_FAILURE(
     [Missing function: close],
     [1])
  ])
])

dnl Function to check if DLL support is needed
AC_DEFUN([AX_LIBFSREFS_CHECK_DLL_SUPPORT],
  [AS_IF(
    [test "x$enable_shared" = xyes && test "x$ac_cv_enable_static_executables" = xno],
    [AS_CASE(
      [$host],
      [*cygwin* | *mingw* | *msys*],
      [AC_DEFINE(
        [HAVE_DLLMAIN],
        [1],
        [Define to 1 to enable the DllMain function.])
      AC_SUBST(
        [HAVE_DLLMAIN],
        [1])

      AC_SUBST(
        [LIBFSREFS_DLL_EXPORT],
        ["-DLIBFSREFS_DLL_EXPORT"])

      AC_SUBST(
        [LIBFSREFS_DLL_IMPORT],
        ["-DLIBFSREFS_DLL_IMPORT"])
      ])
    ])
  ])



================================================
FILE: appveyor.yml
================================================
environment:
  matrix:
  - TARGET: vs2008
    BUILD_ENVIRONMENT: msbuild
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
    VisualStudioVersion: 9.0
    platform: Win32
    configuration: Release
    PYTHON_PATH: "C:\\Python37"
  - TARGET: vs2010
    BUILD_ENVIRONMENT: msbuild
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
    VisualStudioVersion: 10.0
    platform: Win32
    configuration: Release
    PYTHON_PATH: "C:\\Python37"
  - TARGET: vs2012
    BUILD_ENVIRONMENT: msbuild
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
    VisualStudioVersion: 11.0
    platform: Win32
    configuration: Release
    PYTHON_PATH: "C:\\Python37"
  - TARGET: vs2013
    BUILD_ENVIRONMENT: msbuild
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
    VisualStudioVersion: 12.0
    platform: Win32
    configuration: Release
    PYTHON_PATH: "C:\\Python37"
  - TARGET: vs2015
    BUILD_ENVIRONMENT: msbuild
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
    VisualStudioVersion: 14.0
    platform: Win32
    configuration: Release
    PYTHON_PATH: "C:\\Python38"
  - TARGET: vs2017
    BUILD_ENVIRONMENT: msbuild
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
    VisualStudioVersion: 15.0
    platform: Win32
    configuration: Release
    PYTHON_PATH: "C:\\Python38"
  - TARGET: vs2019
    BUILD_ENVIRONMENT: msbuild
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
    VisualStudioVersion: 16.0
    platform: Win32
    configuration: Release
    PYTHON_PATH: "C:\\Python311"
  - TARGET: vs2022
    BUILD_ENVIRONMENT: msbuild
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
    VisualStudioVersion: 17.0
    platform: Win32
    configuration: Release
    PYTHON_PATH: "C:\\Python311"
  - TARGET: vs2022-vsdebug
    BUILD_ENVIRONMENT: msbuild
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
    VisualStudioVersion: 17.0
    platform: Win32
    configuration: VSDebug
    PYTHON_PATH: "C:\\Python311"
  - TARGET: vs2022-x64
    BUILD_ENVIRONMENT: msbuild
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
    VisualStudioVersion: 17.0
    platform: x64
    configuration: Release
    PYTHON_PATH: "C:\\Python311"
  - TARGET: macos-x64-clang
    BUILD_ENVIRONMENT: xcode
    APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma
    HOMEBREW_NO_INSTALL_CLEANUP: 1
    CC: clang
    CFLAGS: "-I/usr/local/include"
    LDFLAGS: "-L/usr/local/lib"
    CONFIGURE_OPTIONS: ""
  - TARGET: macos-x64-gcc
    BUILD_ENVIRONMENT: xcode
    APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma
    HOMEBREW_NO_INSTALL_CLEANUP: 1
    CC: gcc
    CFLAGS: "-I/usr/local/include"
    LDFLAGS: "-L/usr/local/lib"
    CONFIGURE_OPTIONS: ""
  - TARGET: macos-pkgbuild
    BUILD_ENVIRONMENT: xcode
    APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma
    HOMEBREW_NO_INSTALL_CLEANUP: 1
    CONFIGURE_OPTIONS: "--disable-dependency-tracking --prefix=/usr/local --with-pyprefix"
  - TARGET: cygwin64-gcc
    BUILD_ENVIRONMENT: cygwin64
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
    CONFIGURE_OPTIONS: ""
  - TARGET: cygwin64-gcc-no-optimization
    BUILD_ENVIRONMENT: cygwin64
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
    CONFIGURE_OPTIONS: "--enable-shared=no"
    CFLAGS: "--coverage -O0"
    CPPFLAGS: "-DOPTIMIZATION_DISABLED"
    LDFLAGS: "--coverage"
  - TARGET: cygwin64-gcc-static-executables
    BUILD_ENVIRONMENT: cygwin64
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
    CONFIGURE_OPTIONS: "--enable-static-executables"
  - TARGET: mingw-w64-gcc
    BUILD_ENVIRONMENT: mingw-w64
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
    CONFIGURE_OPTIONS: ""
  - TARGET: mingw-w64-gcc-no-optimization
    BUILD_ENVIRONMENT: mingw-w64
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
    CONFIGURE_OPTIONS: "--enable-shared=no"
    CFLAGS: "--coverage -O0"
    CPPFLAGS: "-DOPTIMIZATION_DISABLED"
    LDFLAGS: "--coverage"
  - TARGET: mingw-w64-gcc-static-executables
    BUILD_ENVIRONMENT: mingw-w64
    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
    CONFIGURE_OPTIONS: "--enable-static-executables"

install:
- cmd: if [%BUILD_ENVIRONMENT%]==[msbuild] (
    git clone https://github.com/libyal/vstools.git ..\vstools )
- sh: if ( test `uname -s` = "Darwin" && test ${BUILD_ENVIRONMENT} = "python-tox" ) || test ${BUILD_ENVIRONMENT} = "xcode"; then brew untap homebrew/homebrew-cask-versions && brew update -q; fi
- sh: if ( test `uname -s` = "Darwin" && test ${BUILD_ENVIRONMENT} = "python-tox" ) || test ${BUILD_ENVIRONMENT} = "xcode"; then brew install -q autoconf automake gettext gnu-sed libtool pkg-config || true; fi
- ps: If ($env:BUILD_ENVIRONMENT -eq "cygwin64") {
    (New-Object Net.WebClient).DownloadFile("https://cygwin.com/setup-x86_64.exe", "C:\\cygwin64\\setup-x86_64.exe") }
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (
    C:\cygwin64\setup-x86_64.exe -qgnNdO -l C:\cygwin64\var\cache\setup -R c:\cygwin64 -s http://cygwin.mirror.constant.com -P gettext-devel -P wget )
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
    C:\msys64\usr\bin\pacman -S --noconfirm --needed autoconf automake gettext-devel libtool make mingw-w64-x86_64-gcc pkg-config )
- ps: If ( ( "cygwin64-gcc-no-optimization", "mingw-w64-gcc-no-optimization" ).Contains( $env:TARGET ) ) {
    $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile ..\codecov.exe }

build_script:
- ps: If ($env:BUILD_ENVIRONMENT -eq "msbuild" -or ($env:BUILD_ENVIRONMENT -eq "python-tox" -and $isWindows)) {
    .\synclibs.ps1;
    .\autogen.ps1 }
- ps: If ($env:TARGET -eq "vs2008") {
    .\build.ps1 -VisualStudioVersion 2008 -PythonPath $env:PYTHON_PATH -VSToolsOptions "--no-python-dll" }
- ps: If ( ( "vs2010", "vs2012", "vs2013", "vs2015" ).Contains( $env:TARGET ) ) {
    .\build.ps1 -VisualStudioVersion $env:TARGET.Substring(2, 4) -Configuration $env:CONFIGURATION -Platform $env:PLATFORM -PythonPath $env:PYTHON_PATH -VSToolsOptions "--extend-with-x64 --no-python-dll" }
- ps: If ( ( "vs2017", "vs2019", "vs2022", "vs2022-vsdebug", "vs2022-x64" ).Contains( $env:TARGET ) ) {
    .\build.ps1 -VisualStudioVersion $env:TARGET.Substring(2, 4) -Configuration $env:CONFIGURATION -Platform $env:PLATFORM -PythonPath $env:PYTHON_PATH -VSToolsOptions "--extend-with-x64 --no-python-dll --with-dokany" }
- sh: if test ${BUILD_ENVIRONMENT} = "xcode"; then export PATH="/usr/local/opt/gettext/bin:$PATH"; export SED="/usr/local/bin/gsed"; tests/build.sh ${CONFIGURE_OPTIONS}; fi
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (
    xcopy /i /q /s C:\projects\libfsrefs C:\cygwin64\home\appveyor\libfsrefs &&
    C:\cygwin64\bin\bash -e -l -c "cd libfsrefs && wget -q 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' -O './config.guess' && wget -q 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' -O './config.sub'" &&
    C:\cygwin64\bin\bash -e -l -c "cd libfsrefs && tests/build.sh ${CONFIGURE_OPTIONS}" )
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
    xcopy /i /q /s C:\projects\libfsrefs C:\msys64\home\appveyor\libfsrefs &&
    C:\msys64\usr\bin\bash -e -l -c "cd libfsrefs && tests/build.sh ${CONFIGURE_OPTIONS}" )

test_script:
- cmd: rem Run tests
- ps: If ($env:BUILD_ENVIRONMENT -eq "msbuild") {
    .\runtests.ps1 }
- sh: if test ${BUILD_ENVIRONMENT} = "xcode" && test ${TARGET} != "macos-pkgbuild"; then tests/runtests.sh; fi
- sh: if test ${TARGET} = "macos-pkgbuild"; then tests/pkgbuild.sh; fi
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (
    C:\cygwin64\bin\bash -l -c "cd libfsrefs && tests/runtests.sh" )
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
    C:\msys64\usr\bin\bash -l -c "cd libfsrefs && tests/runtests.sh" )

after_test:
- cmd: if [%TARGET%]==[cygwin64-gcc-no-optimization] (
    C:\cygwin64\bin\bash -e -l -c "cd libfsrefs && for DIRECTORY in `find . -maxdepth 1 -type d`; do (cd ${DIRECTORY} && find . -maxdepth 1 -name \*.gcno -type f -exec gcov -pb {} \;) done" &&
    C:\projects\codecov.exe -R \cygwin64\home\appveyor\libfsrefs --name %TARGET% )
- cmd: if [%TARGET%]==[mingw-w64-gcc-no-optimization] (
    C:\msys64\usr\bin\bash -e -l -c "cd libfsrefs && for DIRECTORY in `find . -maxdepth 1 -type d`; do (cd ${DIRECTORY} && find . -maxdepth 1 -name \*.gcno -type f -exec gcov -pb {} \;) done" &&
    C:\projects\codecov.exe -R \msys64\home\appveyor\libfsrefs --name %TARGET% )



================================================
FILE: autogen.ps1
================================================
# Script to generate the necessary files for a msvscpp build
#
# Version: 20241014

$WinFlex = "..\win_flex_bison\win_flex.exe"
$WinBison = "..\win_flex_bison\win_bison.exe"

$Library = Get-Content -Path configure.ac | select -skip 3 -first 1 | % { $_ -Replace "  \[","" } | % { $_ -Replace "\],","" }
$Version = Get-Content -Path configure.ac | select -skip 4 -first 1 | % { $_ -Replace "  \[","" } | % { $_ -Replace "\],","" }
$Prefix = ${Library}.Substring(3)

Get-Content -Path "include\${Library}.h.in" | Out-File -Encoding ascii "include\${Library}.h"
Get-Content -Path "include\${Library}\definitions.h.in" | % { $_ -Replace "@VERSION@","${Version}" } | Out-File -Encoding ascii "include\${Library}\definitions.h"
Get-Content -Path "include\${Library}\features.h.in" | % { $_ -Replace "@[A-Z0-9_]*@","0" } | Out-File -Encoding ascii "include\${Library}\features.h"
Get-Content -Path "include\${Library}\types.h.in" | % { $_ -Replace "@[A-Z0-9_]*@","0" } | Out-File -Encoding ascii "include\${Library}\types.h"
Get-Content -Path "common\types.h.in" | % { $_ -Replace "@PACKAGE@","${Library}" } | Out-File -Encoding ascii "common\types.h"
Get-Content -Path "${Library}\${Library}_definitions.h.in" | % { $_ -Replace "@VERSION@","${Version}" } | Out-File -Encoding ascii "${Library}\${Library}_definitions.h"
Get-Content -Path "${Library}\${Library}.rc.in" | % { $_ -Replace "@VERSION@","${Version}" } | Out-File -Encoding ascii "${Library}\${Library}.rc"

If (Test-Path "setup.cfg.in")
{
	Get-Content -Path "setup.cfg.in" | % { $_ -Replace "@VERSION@","${Version}" } | Out-File -Encoding ascii "setup.cfg"
}

If (Test-Path "${Prefix}.net")
{
	Get-Content -Path "${Prefix}.net\${Prefix}.net.rc.in" | % { $_ -Replace "@VERSION@","${Version}" } | Out-File -Encoding ascii "${Prefix}.net\${Prefix}.net.rc"
}

$NamePrefix = ""

ForEach (${Library} in Get-ChildItem -Directory -Path "lib*")
{
	ForEach (${DirectoryElement} in Get-ChildItem -Path "${Library}\*.l")
	{
		$OutputFile = ${DirectoryElement} -Replace ".l$",".c"

		$NamePrefix = Split-Path -path ${DirectoryElement} -leaf
		$NamePrefix = ${NamePrefix} -Replace ".l$","_"

		Write-Host "Running: ${WinFlex} -Cf ${DirectoryElement}"

		# PowerShell will raise NativeCommandError if win_flex writes to stdout or stderr
		# therefore 2>&1 is added and the output is stored in a variable.
		$Output = Invoke-Expression -Command "& '${WinFlex}' -Cf ${DirectoryElement} 2>&1"
		Write-Host ${Output}

		# Moving manually since `win_flex -o filename' does not provide the expected behavior.
		Move-Item "lex.yy.c" ${OutputFile} -force
	}

	ForEach (${DirectoryElement} in Get-ChildItem -Path "${Library}\*.y")
	{
		$OutputFile = ${DirectoryElement} -Replace ".y$",".c"

		Write-Host "Running: ${WinBison} -d -v -l -p ${NamePrefix} -o ${OutputFile} ${DirectoryElement}"

		# PowerShell will raise NativeCommandError if win_bison writes to stdout or stderr
		# therefore 2>&1 is added and the output is stored in a variable.
		$Output = Invoke-Expression -Command "& '${WinBison}' -d -v -l -p ${NamePrefix} -o ${OutputFile} ${DirectoryElement} 2>&1"
		Write-Host ${Output}
	}
}



================================================
FILE: autogen.sh
================================================
#!/bin/sh
# Script to generate configure and Makefile using the autotools.
#
# Version: 20241013

EXIT_SUCCESS=0;
EXIT_FAILURE=1;

BINDIR=`which aclocal`;
BINDIR=`dirname ${BINDIR}`;

if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/usr/bin";
then
	BINDIR="/usr/bin";
fi
if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/usr/local/bin";
then
	BINDIR="/usr/local/bin";
fi
if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/opt/local/bin";
then
	# Default location of MacPorts installed binaries.
	BINDIR="/opt/local/bin";
fi
if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/opt/homebrew/bin";
then
	# Default location of Homebrew installed binaries.
	BINDIR="/opt/homebrew/bin";
fi
if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/mingw32/bin";
then
	# Default location of 32-bit MSYS2-MinGW installed binaries.
	BINDIR="/mingw32/bin";
fi
if ! test -x "${BINDIR}/aclocal" && test "${BINDIR}" != "/mingw64/bin";
then
	# Default location of 64-bit MSYS2-MinGW installed binaries.
	BINDIR="/mingw64/bin";
fi

if ! test -x "${BINDIR}/aclocal";
then
	echo "Unable to find autotools";

	exit ${EXIT_FAILURE};
fi

ACLOCAL="${BINDIR}/aclocal";
AUTOCONF="${BINDIR}/autoconf";
AUTOHEADER="${BINDIR}/autoheader";
AUTOMAKE="${BINDIR}/automake";
AUTOPOINT="${BINDIR}/autopoint";
AUTORECONF="${BINDIR}/autoreconf";
LIBTOOLIZE="${BINDIR}/libtoolize";
PKGCONFIG="${BINDIR}/pkg-config";

if test "${OSTYPE}" = "msys";
then
	# Work-around for autopoint failing to detect gettext version
	# using func_trace (which is not available) on MSYS by writing
	# the gettext version to intl/VERSION.
	if ! test -d intl;
	then
		mkdir intl;
	fi
	GETTEXT_VERSION=`gettext --version | head -n1 | sed 's/^.* //'`;

	echo "gettext-${GETTEXT_VERSION}" > intl/VERSION;

elif ! test -x "${PKGCONFIG}";
then
	if test "${BINDIR}" != "/usr/bin";
	then
		# On OpenBSD most of the autotools are located in
		# /usr/local/bin while pkg-config is located in /usr/bin
		PKGCONFIG="/usr/bin/pkg-config";
	fi
	if ! test -x "${PKGCONFIG}";
	then
		echo "Unable to find: pkg-config";

		exit ${EXIT_FAILURE};
	fi
fi

if test -x "${AUTORECONF}";
then
	${AUTORECONF} --force --install
	if test $? -ne 0;
	then
		exit $?;
	fi
else
	if ! test -x "${ACLOCAL}";
	then
		echo "Unable to find: aclocal";

		exit ${EXIT_FAILURE};
	fi
	if ! test -x "${AUTOCONF}";
		then
		echo "Unable to find: autoconf";

		exit ${EXIT_FAILURE};
	fi
	if ! test -x "${AUTOHEADER}";
	then
		echo "Unable to find: autoheader";

		exit ${EXIT_FAILURE};
	fi
	if ! test -x "${AUTOMAKE}";
	then
		echo "Unable to find: automake";

		exit ${EXIT_FAILURE};
	fi
	if ! test -x "${AUTOPOINT}";
	then
		echo "Unable to find: autopoint";

		exit ${EXIT_FAILURE};
	fi
	if ! test -x "${LIBTOOLIZE}";
	then
		echo "Unable to find: libtoolize";

		exit ${EXIT_FAILURE};
	fi

	${AUTOPOINT} --force;
	if test $? -ne 0;
	then
		exit $?;
	fi

	${ACLOCAL} --force --install -I m4;
	if test $? -ne 0;
	then
		exit $?;
	fi

	${LIBTOOLIZE} --force;
	if test $? -ne 0;
	then
		exit $?;
	fi

	${AUTOHEADER} --force;
	if test $? -ne 0;
	then
		exit $?;
	fi

	${AUTOCONF} --force;
	if test $? -ne 0;
	then
		exit $?;
	fi

	${AUTOMAKE} --force --add-missing;
	if test $? -ne 0;
	then
		exit $?;
	fi

fi

exit ${EXIT_SUCCESS};



================================================
FILE: build.ps1
================================================
# Script that builds libfsrefs
#
# Version: 20251125

Param (
	[string]$Configuration = ${Env:Configuration},
	[string]$Platform = ${Env:Platform},
	[string]$PlatformToolset = "",
	[string]$PythonPath = "C:\Python311",
	[string]$VisualStudioVersion = "",
	[string]$VSToolsOptions = "--extend-with-x64",
	[string]$VSToolsPath = "..\vstools"
)

$ExitSuccess = 0
$ExitFailure = 1

$Python = "${PythonPath}\python.exe"

$Git = "git"
$GitUrl = "https://github.com/libyal/vstools.git"

$MSVSCppConvert = "${VSToolsPath}\vstools\scripts\msvscpp_convert.py"

If (-Not (Test-Path $Python))
{
    Write-Host "Missing Python: ${Python}" -foreground Red

    Exit ${ExitFailure}
}
If (-Not (Test-Path ${VSToolsPath}))
{
	# PowerShell will raise NativeCommandError if git writes to stdout or stderr
	# therefore 2>&1 is added and the output is stored in a variable.
	$Output = Invoke-Expression -Command "${Git} clone ${GitUrl} ${VSToolsPath} 2>&1" | %{ "$_" }
}
Else
{
	Push-Location "${VSToolsPath}"

	Try
	{
		# Make sure vstools are up to date.
		$Output = Invoke-Expression -Command "${Git} pull 2>&1" | %{ "$_" }
	}
	Finally
	{
		Pop-Location
	}
}
If (-Not (Test-Path ${MSVSCppConvert}))
{
	Write-Host "Missing msvscpp_convert.py: ${MSVSCppConvert}" -foreground Red

	Exit ${ExitFailure}
}
If (-Not ${VisualStudioVersion})
{
	$VisualStudioVersion = "2022"

	Write-Host "Visual Studio version not set defauting to: ${VisualStudioVersion}" -foreground Red
}
If ((${VisualStudioVersion} -ne "2008") -And (${VisualStudioVersion} -ne "2010") -And (${VisualStudioVersion} -ne "2012") -And (${VisualStudioVersion} -ne "2013") -And (${VisualStudioVersion} -ne "2015") -And (${VisualStudioVersion} -ne "2017") -And (${VisualStudioVersion} -ne "2019") -And (${VisualStudioVersion} -ne "2022"))
{
	Write-Host "Unsupported Visual Studio version: ${VisualStudioVersion}" -foreground Red

	Exit ${ExitFailure}
}
$MSBuild = ""

If (${VisualStudioVersion} -eq "2008")
{
	$MSBuild = "C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe"
}
ElseIf ((${VisualStudioVersion} -eq "2010") -Or (${VisualStudioVersion} -eq "2012"))
{
	$MSBuild = "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe"
}
ElseIf (${VisualStudioVersion} -eq "2013")
{
	$MSBuild = "C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe"
}
ElseIf (${VisualStudioVersion} -eq "2015")
{
	$MSBuild = "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe"
}
ElseIf (${VisualStudioVersion} -eq "2017")
{
	$Results = Get-ChildItem -Path "C:\Program Files\Microsoft Visual Studio\${VisualStudioVersion}\*\MSBuild\15.0\Bin\MSBuild.exe" -Recurse -ErrorAction SilentlyContinue -Force

	If ($Results.Count -eq 0)
	{
		$Results = Get-ChildItem -Path "C:\Program Files (x86)\Microsoft Visual Studio\${VisualStudioVersion}\*\MSBuild\15.0\Bin\MSBuild.exe" -Recurse -ErrorAction SilentlyContinue -Force
	}
	If ($Results.Count -gt 0)
	{
		$MSBuild = $Results[0].FullName
	}
}
ElseIf (${VisualStudioVersion} -eq "2019" -Or ${VisualStudioVersion} -eq "2022")
{
	$Results = Get-ChildItem -Path "C:\Program Files\Microsoft Visual Studio\${VisualStudioVersion}\*\MSBuild\Current\Bin\MSBuild.exe" -Recurse -ErrorAction SilentlyContinue -Force

	If ($Results.Count -eq 0)
	{
		$Results = Get-ChildItem -Path "C:\Program Files (x86)\Microsoft Visual Studio\${VisualStudioVersion}\*\MSBuild\Current\Bin\MSBuild.exe" -Recurse -ErrorAction SilentlyContinue -Force
	}
	If ($Results.Count -gt 0)
	{
		$MSBuild = $Results[0].FullName
	}
}
If (-Not ${MSBuild})
{
	Write-Host "Unable to determine path to msbuild.exe" -foreground Red

	Exit ${ExitFailure}
}
ElseIf (-Not (Test-Path ${MSBuild}))
{
	Write-Host "Missing msbuild.exe: ${MSBuild}" -foreground Red

	Exit ${ExitFailure}
}

If (${VisualStudioVersion} -eq "2008")
{
	$VSSolutionPath = "msvscpp"
}
Else
{
	$VSSolutionPath = "vs${VisualStudioVersion}"

	If (-Not (Test-Path "${VSSolutionPath}"))
	{
		${Env:PYTHONPATH} = ${VSToolsPath}

		Invoke-Expression -Command "& '${Python}' ${MSVSCppConvert} --output-format ${VisualStudioVersion} ${VSToolsOptions} msvscpp\libfsrefs.sln 2>&1" | %{ "$_" }
	}
}
$VSSolutionFile = "${VSSolutionPath}\libfsrefs.sln"

If (-Not (Test-Path "${VSSolutionFile}"))
{
	Write-Host "Missing Visual Studio ${VisualStudioVersion} solution file: ${VSSolutionFile}" -foreground Red

	Exit ${ExitFailure}
}
If (-Not ${Configuration})
{
	$Configuration = "Release"

	Write-Host "Configuration not set defauting to: ${Configuration}"
}
If (-Not ${Platform})
{
	$Platform = "Win32"

	Write-Host "Platform not set defauting to: ${Platform}"
}
$PlatformToolset = ""

If (-Not ${PlatformToolset})
{
	If (${VisualStudioVersion} -eq "2015")
	{
		$PlatformToolset = "v140"
	}
	ElseIf (${VisualStudioVersion} -eq "2017")
	{
		$PlatformToolset = "v141"
	}
	ElseIf (${VisualStudioVersion} -eq "2019")
	{
		$PlatformToolset = "v142"
	}
	ElseIf (${VisualStudioVersion} -eq "2022")
	{
		$PlatformToolset = "v143"
	}
	Write-Host "PlatformToolset not set defauting to: ${PlatformToolset}"
}
$MSBuildOptions = "/verbosity:quiet /target:Build /property:Configuration=${Configuration},Platform=${Platform}"

If (${PlatformToolset})
{
	$MSBuildOptions = "${MSBuildOptions} /property:PlatformToolset=${PlatformToolset}"
}
If (${Env:APPVEYOR} -eq "True")
{
	Invoke-Expression -Command "& '${MSBuild}' ${MSBuildOptions} ${VSSolutionFile} /logger:'C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll' 2>&1" | %{ "$_" }
}
Else
{
	Invoke-Expression -Command "& '${MSBuild}' ${MSBuildOptions} ${VSSolutionFile} 2>&1" | %{ "$_" }
}

Exit ${ExitSuccess}


================================================
FILE: common/Makefile.am
================================================
AM_CPPFLAGS = \
	-I../include -I$(top_srcdir)/include

EXTRA_DIST = \
	byte_stream.h \
	common.h \
	config.h \
	config_borlandc.h \
	config_msc.h \
	config_winapi.h \
	file_stream.h \
	memory.h \
	narrow_string.h \
	system_string.h \
	types.h \
	types.h.in \
	wide_string.h

DISTCLEANFILES = \
	config.h \
	types.h \
	Makefile \
	Makefile.in



================================================
FILE: common/byte_stream.h
================================================
/*
 * Byte stream functions
 *
 * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>
 *
 * Refer to AUTHORS for acknowledgements.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

#if !defined( _BYTE_STREAM_H )
#define _BYTE_STREAM_H

#include "common.h"
#include "types.h"

#if defined( __cplusplus )
extern "C" {
#endif

#define _BYTE_STREAM_HOST_IS_ENDIAN_BIG		( *((uint32_t *) "\x01\x02\x03\x04" ) == 0x01020304 )
#define _BYTE_STREAM_HOST_IS_ENDIAN_LITTLE	( *((uint32_t *) "\x01\x02\x03\x04" ) == 0x04030201 )
#define _BYTE_STREAM_HOST_IS_ENDIAN_MIDDLE	( *((uint32_t *) "\x01\x02\x03\x04" ) == 0x02010403 )

#define _BYTE_STREAM_ENDIAN_BIG			(uint8_t) 'b'
#define _BYTE_STREAM_ENDIAN_LITTLE		(uint8_t) 'l'
#define _BYTE_STREAM_ENDIAN_MIDDLE		(uint8_t) 'm'

typedef union byte_stream_float32
{
	float floating_point;
	uint32_t integer;

} byte_stream_float32_t;

typedef union byte_stream_float64
{
	double floating_point;
	uint64_t integer;

} byte_stream_float64_t;

#define byte_stream_copy_to_uint16_big_endian( byte_stream, value ) \
	( value )   = ( byte_stream )[ 0 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 1 ];

#define byte_stream_copy_to_uint16_little_endian( byte_stream, value ) \
	( value )   = ( byte_stream )[ 1 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 0 ];

#define byte_stream_copy_to_uint24_big_endian( byte_stream, value ) \
	( value )   = ( byte_stream )[ 0 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 1 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 2 ];

#define byte_stream_copy_to_uint24_little_endian( byte_stream, value ) \
	( value )   = ( byte_stream )[ 2 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 1 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 0 ];

#define byte_stream_copy_to_uint32_big_endian( byte_stream, value ) \
	( value )   = ( byte_stream )[ 0 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 1 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 2 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 3 ];

#define byte_stream_copy_to_uint32_little_endian( byte_stream, value ) \
	( value )   = ( byte_stream )[ 3 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 2 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 1 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 0 ];

#define byte_stream_copy_to_uint48_big_endian( byte_stream, value ) \
	( value )   = ( byte_stream )[ 0 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 1 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 2 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 3 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 4 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 5 ];

#define byte_stream_copy_to_uint48_little_endian( byte_stream, value ) \
	( value )  |= ( byte_stream )[ 5 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 4 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 3 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 2 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 1 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 0 ];

#define byte_stream_copy_to_uint64_big_endian( byte_stream, value ) \
	( value )   = ( byte_stream )[ 0 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 1 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 2 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 3 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 4 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 5 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 6 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 7 ];

#define byte_stream_copy_to_uint64_little_endian( byte_stream, value ) \
	( value )   = ( byte_stream )[ 7 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 6 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 5 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 4 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 3 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 2 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 1 ]; \
	( value ) <<= 8; \
	( value )  |= ( byte_stream )[ 0 ];

#define byte_stream_copy_from_uint16_big_endian( byte_stream, value ) \
	( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
	( byte_stream )[ 1 ] = (uint8_t) ( ( value ) & 0x0ff )

#define byte_stream_copy_from_uint16_little_endian( byte_stream, value ) \
	( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
	( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff )

#define byte_stream_copy_from_uint24_big_endian( byte_stream, value ) \
	( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \
	( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
	( byte_stream )[ 2 ] = (uint8_t) ( ( value ) & 0x0ff )

#define byte_stream_copy_from_uint24_little_endian( byte_stream, value ) \
	( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \
	( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
	( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff )

#define byte_stream_copy_from_uint32_big_endian( byte_stream, value ) \
	( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \
	( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \
	( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
	( byte_stream )[ 3 ] = (uint8_t) ( ( value ) & 0x0ff )

#define byte_stream_copy_from_uint32_little_endian( byte_stream, value ) \
	( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \
	( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \
	( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
	( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff )

#define byte_stream_copy_from_uint48_big_endian( byte_stream, value ) \
	( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 40 ) & 0x0ff ); \
	( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 32 ) & 0x0ff ); \
	( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \
	( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \
	( byte_stream )[ 4 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
	( byte_stream )[ 5 ] = (uint8_t) ( ( value ) & 0x0ff )

#define byte_stream_copy_from_uint48_little_endian( byte_stream, value ) \
	( byte_stream )[ 5 ] = (uint8_t) ( ( ( value ) >> 40 ) & 0x0ff ); \
	( byte_stream )[ 4 ] = (uint8_t) ( ( ( value ) >> 32 ) & 0x0ff ); \
	( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \
	( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \
	( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
	( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff )

#define byte_stream_copy_from_uint64_big_endian( byte_stream, value ) \
	( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 56 ) & 0x0ff ); \
	( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 48 ) & 0x0ff ); \
	( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 40 ) & 0x0ff ); \
	( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 32 ) & 0x0ff ); \
	( byte_stream )[ 4 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \
	( byte_stream )[ 5 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \
	( byte_stream )[ 6 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
	( byte_stream )[ 7 ] = (uint8_t) ( ( value ) & 0x0ff )

#define byte_stream_copy_from_uint64_little_endian( byte_stream, value ) \
	( byte_stream )[ 7 ] = (uint8_t) ( ( ( value ) >> 56 ) & 0x0ff ); \
	( byte_stream )[ 6 ] = (uint8_t) ( ( ( value ) >> 48 ) & 0x0ff ); \
	( byte_stream )[ 5 ] = (uint8_t) ( ( ( value ) >> 40 ) & 0x0ff ); \
	( byte_stream )[ 4 ] = (uint8_t) ( ( ( value ) >> 32 ) & 0x0ff ); \
	( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \
	( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \
	( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \
	( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff )

#define byte_stream_bit_rotate_left_8bit( byte_stream, number_of_bits ) \
	( ( ( byte_stream ) << ( number_of_bits ) ) | ( ( byte_stream ) >> ( 8 - ( number_of_bits ) ) ) )

#define byte_stream_bit_rotate_right_8bit( byte_stream, number_of_bits ) \
	( ( ( byte_stream ) >> ( number_of_bits ) ) | ( ( byte_stream ) << ( 8 - ( number_of_bits ) ) ) )

#define byte_stream_bit_rotate_left_16bit( byte_stream, number_of_bits ) \
	( ( ( byte_stream ) << ( number_of_bits ) ) | ( ( byte_stream ) >> ( 16 - ( number_of_bits ) ) ) )

#define byte_stream_bit_rotate_right_16bit( byte_stream, number_of_bits ) \
	( ( ( byte_stream ) >> ( number_of_bits ) ) | ( ( byte_stream ) << ( 16 - ( number_of_bits ) ) ) )

#define byte_stream_bit_rotate_left_32bit( byte_stream, number_of_bits ) \
	( ( ( byte_stream ) << ( number_of_bits ) ) | ( ( byte_stream ) >> ( 32 - ( number_of_bits ) ) ) )

#define byte_stream_bit_rotate_right_32bit( byte_stream, number_of_bits ) \
	( ( ( byte_stream ) >> ( number_of_bits ) ) | ( ( byte_stream ) << ( 32 - ( number_of_bits ) ) ) )

#define byte_stream_bit_rotate_left_64bit( byte_stream, number_of_bits ) \
	( ( ( byte_stream ) << ( number_of_bits ) ) | ( ( byte_stream ) >> ( 64 - ( number_of_bits ) ) ) )

#define byte_stream_bit_rotate_right_64bit( byte_stream, number_of_bits ) \
	( ( ( byte_stream ) >> ( number_of_bits ) ) | ( ( byte_stream ) << ( 64 - ( number_of_bits ) ) ) )

#define byte_stream_bit_rotate_left( value, number_of_bits ) \
	( ( ( value ) << ( number_of_bits ) ) | ( ( value ) >> ( ( sizeof( value ) << 3 ) - ( number_of_bits ) ) ) )

#define byte_stream_bit_rotate_right( value, number_of_bits ) \
	( ( ( value ) >> ( number_of_bits ) ) | ( ( value ) << ( ( sizeof( value ) << 3 ) - ( number_of_bits ) ) ) )

#if defined( __cplusplus )
}
#endif

#endif /* !defined( _BYTE_STREAM_H ) */



================================================
FILE: common/common.h
================================================
/*
 * Common include file
 *
 * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>
 *
 * Refer to AUTHORS for acknowledgements.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

#if !defined( _COMMON_H )
#define _COMMON_H

#if defined( HAVE_CONFIG_H )
#include "config.h"
#endif

/* Include the Borland/CodeGear C++ Builder compiler specific configuration
 */
#if defined( __BORLANDC__ )
#include "config_borlandc.h"

/* Include the Microsoft Visual Studio C++ compiler specific configuration
 */
#elif defined( _MSC_VER )
#include "config_msc.h"
#endif

#include "config_winapi.h"

#endif /* !defined( _COMMON_H ) */



================================================
FILE: common/config_borlandc.h
================================================
/*
 * Configuration for the Borland/CodeGear C++ Builder compiler
 *
 * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>
 *
 * Refer to AUTHORS for acknowledgements.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

#if !defined( _CONFIG_BORLANDC_H )
#define _CONFIG_BORLANDC_H

#endif /* !defined( _CONFIG_BORLANDC_H ) */



================================================
FILE: common/config_msc.h
================================================
/*
 * Configuration for the Microsoft Visual Studio C++ compiler
 *
 * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>
 *
 * Refer to AUTHORS for acknowledgements.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

#if !defined( _CONFIG_MSC_H )
#define _CONFIG_MSC_H

/* Disable warning C4127: conditional expression is constant
 */
#pragma warning( disable : 4127 )

/* Disable warning C4201: nonstandard extension used : nameless struct/union
 */
#pragma warning( disable : 4201 )

#endif /* !defined( _CONFIG_MSC_H ) */



================================================
FILE: common/config_winapi.h
================================================
/*
 * Configuration file for WINAPI
 *
 * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>
 *
 * Refer to AUTHORS for acknowledgements.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

#if !defined( _CONFIG_WINAPI_H )
#define _CONFIG_WINAPI_H

/* Define the earliest supported WINAPI version
#define WINVER				0x0501
 */

/* If necessary make sure WINAPI is defined
 */
#if defined( HAVE_WINDOWS_H ) || defined( __BORLANDC__ ) || defined( _MSC_VER )
#include <windows.h>
#endif

#if defined( WINAPI )

/* Define to the address where bug reports for this package should be sent.
 */
#define PACKAGE_BUGREPORT		"joachim.metz@gmail.com"

/* Define the size of the integer for WINAPI
 */
#if !defined( SIZEOF_INT )
#define SIZEOF_INT			4
#endif

/* Define the size of size_t for WINAPI
 * Do not define when pyconfig.h has been included via python.h
 */
#if !defined( HAVE_PYCONFIG_H )

#if !defined( SIZEOF_SIZE_T )
#if __WORDSIZE == 64
#define SIZEOF_SIZE_T			8
#else
#define SIZEOF_SIZE_T			4
#endif
#endif

#endif /* !defined( HAVE_PYCONFIG_H ) */

/* Define the size of the wide character for WINAPI
 */
#if !defined( SIZEOF_WCHAR_T )
#define SIZEOF_WCHAR_T			2
#endif

/* Enable the DllMain function
 */
#define HAVE_DLLMAIN			1

/* Enable verbose output
#define HAVE_VERBOSE_OUTPUT		1
 */

/* Enable debug output
#define HAVE_DEBUG_OUTPUT		1
 */

/* Enable both the narrow and wide character functions
 */
#if !defined( HAVE_WIDE_CHARACTER_TYPE )
#define HAVE_WIDE_CHARACTER_TYPE	1
#endif

/* If not controlled by config.h enable multi-thread support
 */
#if !defined( HAVE_CONFIG_H ) && !defined( HAVE_MULTI_THREAD_SUPPORT )
#define HAVE_MULTI_THREAD_SUPPORT	1
#endif

#endif /* defined( WINAPI ) */

#endif /* !defined( _CONFIG_WINAPI_H ) */



================================================
FILE: common/file_stream.h
================================================
/*
 * FILE stream functions
 *
 * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>
 *
 * Refer to AUTHORS for acknowledgements.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

#if !defined( _FILE_STREAM_H )
#define _FILE_STREAM_H

#include "common.h"

#if defined( HAVE_GLIB_H )
#include <glib.h>
#include <glib/gstdio.h>
#endif

#include <stdio.h>

#if defined( __cplusplus )
extern "C" {
#endif

#define FILE_STREAM_OPEN_APPEND			"a"
#define FILE_STREAM_OPEN_READ			"r"
#define FILE_STREAM_OPEN_WRITE			"w"

#if defined( WINAPI )
#define FILE_STREAM_BINARY_OPEN_APPEND		"ab"
#define FILE_STREAM_BINARY_OPEN_READ		"rb"
#define FILE_STREAM_BINARY_OPEN_WRITE		"wb"

#else
#define FILE_STREAM_BINARY_OPEN_APPEND		"a"
#define FILE_STREAM_BINARY_OPEN_READ		"r"
#define FILE_STREAM_BINARY_OPEN_WRITE		"w"

#endif

/* narrow character FILE stream open
 */
#if defined( HAVE_GLIB_H )
#define file_stream_open( filename, mode ) \
	g_fopen( filename, mode )

#elif defined( HAVE_FOPEN ) || defined( WINAPI )
#define file_stream_open( filename, mode ) \
	fopen( filename, mode )
#endif

/* wide character FILE stream open
 */
#if defined( WINAPI )
#define file_stream_open_wide( filename, mode ) \
	_wfopen( filename, mode )
#endif

/* FILE stream close
 */
#if defined( HAVE_FCLOSE ) || defined( WINAPI )
#define file_stream_close( stream ) \
	fclose( stream )
#endif

/* FILE stream read
 */
#if defined( HAVE_FREAD ) || defined( WINAPI )
#define file_stream_read( stream, data, size ) \
	fread( data, 1, size, stream )
#endif

/* FILE stream write
 */
#if defined( HAVE_FWRITE ) || defined( WINAPI )
#define file_stream_write( stream, data, size ) \
	fwrite( data, 1, size, stream )
#endif

/* FILE stream seek
 */
#if defined( WINAPI )
#define file_stream_seek_offset( stream, offset, whence ) \
	fseek( stream, offset, whence )

#elif defined( HAVE_FSEEKO )
#define file_stream_seek_offset( stream, offset, whence ) \
	fseeko( stream, offset, whence )

#elif defined( HAVE_FSEEKO64 )
#define file_stream_seek_offset( stream, offset, whence ) \
	fseeko64( stream, offset, whence )
#endif

/* End of FILE stream
 */
#if defined( HAVE_FEOF ) || defined( WINAPI )
#define file_stream_at_end( stream ) \
        feof( stream )
#endif

/* Get narrow character string from FILE stream
 */
#if defined( HAVE_FGETS ) || defined( WINAPI )
#define file_stream_get_string( stream, string, size ) \
        fgets( string, size, stream )
#endif

/* Get wide characters string from FILE stream
 */
#if defined( HAVE_FGETWS ) || defined( WINAPI )
#define file_stream_get_string_wide( stream, string, size ) \
        fgetws( string, size, stream )
#endif

/* Variable arguments formatted print to stream function
 */
#if defined( HAVE_GLIB_H )
#define file_stream_vfprintf( stream, format, ... ) \
	g_vfprintf( stream, format, __VA_ARGS__ )

/* Borland BCC previous to version 5.6.0 cannot handle the macro form: MACRO( ... )
 */
#elif defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )
#define file_stream_vfprintf \
	vfprintf

#elif defined( HAVE_VFPRINTF ) || defined( WINAPI )
#define file_stream_vfprintf( stream, format, ... ) \
	vfprintf( stream, format, __VA_ARGS__ )
#endif

#if defined( __cplusplus )
}
#endif

#endif /* !defined( _FILE_STREAM_H ) */



================================================
FILE: common/memory.h
================================================
/*
 * Memory functions
 *
 * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>
 *
 * Refer to AUTHORS for acknowledgements.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

#if !defined( _MEMORY_H )
#define _MEMORY_H

#include "common.h"

#if defined( HAVE_GLIB_H )
#include <glib.h>
#endif

#if defined( HAVE_STDLIB_H ) || defined( WINAPI )
#include <stdlib.h>
#endif

#if defined( HAVE_STRING_H ) || defined( WINAPI )
#include <string.h>
#endif

#if defined( __cplusplus )
extern "C" {
#endif

/* Note that 128 MiB is an arbitrary selected upper limit here
 */
#define MEMORY_MAXIMUM_ALLOCATION_SIZE \
	( 128 * 1024 * 1024 )

/* Memory allocation
 */
#if defined( HAVE_GLIB_H )
#define memory_allocate( size ) \
	g_malloc( (gsize) size )

#elif defined( WINAPI )
#define memory_allocate( size ) \
	HeapAlloc( GetProcessHeap(), 0, (SIZE_T) size )

#elif defined( HAVE_MALLOC )
#define memory_allocate( size ) \
	malloc( size )
#endif

#define memory_allocate_structure( type ) \
	(type *) memory_allocate( sizeof( type ) )

#define memory_allocate_structure_as_value( type ) \
	(intptr_t *) memory_allocate( sizeof( type ) )

/* Memory reallocation
 */
#if defined( HAVE_GLIB_H )
#define memory_reallocate( buffer, size ) \
	g_realloc( (gpointer) buffer, (gsize) size )

#elif defined( WINAPI )
/* HeapReAlloc does not allocate empty (NULL) buffers as realloc does
 */
#define memory_reallocate( buffer, size ) \
	( buffer == NULL ) ? \
	HeapAlloc( GetProcessHeap(), 0, (SIZE_T) size ) : \
	HeapReAlloc( GetProcessHeap(), 0, (LPVOID) buffer, (SIZE_T) size )

#elif defined( HAVE_REALLOC )
#define memory_reallocate( buffer, size ) \
	realloc( (void *) buffer, size )
#endif

/* Memory free
 */
#if defined( HAVE_GLIB_H )
#define memory_free( buffer ) \
	g_free( (gpointer) buffer )

#elif defined( WINAPI )
#define memory_free( buffer ) \
	( buffer == NULL ) ? TRUE : HeapFree( GetProcessHeap(), 0, (LPVOID) buffer )

#elif defined( HAVE_FREE )
#define memory_free( buffer ) \
	free( (void *) buffer )
#endif

/* Memory compare
 */
#if defined( HAVE_MEMCMP ) || defined( WINAPI )
#define memory_compare( buffer1, buffer2, size ) \
	memcmp( (const void *) buffer1, (const void *) buffer2, size )
#endif

/* Memory copy
 */
#if defined( HAVE_MEMCPY ) || defined( WINAPI )
#define memory_copy( destination, source, count ) \
	memcpy( (void *) destination, (void *) source, count )
#endif

/* Memory set
 */
#if defined( HAVE_MEMSET ) || defined( WINAPI )
#define memory_set( buffer, value, count ) \
	memset( (void *) buffer, (int) value, count )
#endif

#if defined( __cplusplus )
}
#endif

#endif /* !defined( _MEMORY_H ) */



================================================
FILE: common/narrow_string.h
================================================
/*
 * Narrow character string functions
 *
 * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>
 *
 * Refer to AUTHORS for acknowledgements.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

#if !defined( _NARROW_STRING_H )
#define _NARROW_STRING_H

#include "common.h"
#include "memory.h"
#include "types.h"

#if defined( HAVE_GLIB_H )
#include <glib.h>
#endif

#if defined( HAVE_STDLIB_H ) || defined( WINAPI )
#include <stdlib.h>
#endif

#if defined( HAVE_STRING_H ) || defined( WINAPI )
#include <string.h>
#endif

#if defined( __cplusplus )
extern "C" {
#endif

/* String allocation
 */
#define narrow_string_allocate( size ) \
	(char *) memory_allocate( sizeof( char ) * ( size ) )

/* String reallocation
 */
#define narrow_string_reallocate( string, size ) \
	(char *) memory_reallocate( string, ( sizeof( char ) * ( size ) ) )

/* String length
 */
#if defined( HAVE_STRLEN ) || defined( WINAPI )
#define narrow_string_length( string ) \
	strlen( string )
#endif

/* String compare
 */
#if defined( HAVE_MEMCMP ) || defined( WINAPI )
#define narrow_string_compare( string1, string2, size ) \
	memcmp( (void *) string1, (void *) string2, size )

#elif defined( HAVE_STRNCMP )
#define narrow_string_compare( string1, string2, size ) \
	strncmp( string1, string2, size )
#endif

/* Caseless string compare
 */
#if defined( HAVE_GLIB_H )
#define narrow_string_compare_no_case( string1, string2, size ) \
	g_ascii_strncasecmp( string1, string2, size )

#elif defined( _MSC_VER )
#define narrow_string_compare_no_case( string1, string2, size ) \
	_strnicmp( string1, string2, size )

#elif ( defined( WINAPI ) && !defined( __CYGWIN__ ) ) || defined( HAVE_STRNICMP )
#define narrow_string_compare_no_case( string1, string2, size ) \
	strnicmp( string1, string2, size )

#elif defined( HAVE_STRNCASECMP )
#define narrow_string_compare_no_case( string1, string2, size ) \
	strncasecmp( string1, string2, size )

#elif defined( HAVE_STRCASECMP )
#define narrow_string_compare_no_case( string1, string2, size ) \
	strcasecmp( string1, string2 )
#endif

/* String copy
 */
#if defined( HAVE_MEMCPY ) || defined( WINAPI )
#define narrow_string_copy( destination, source, size ) \
	(char *) memcpy( (void *) destination, (void *) source, size )

#elif defined( HAVE_STRNCPY )
#define narrow_string_copy( destination, source, size ) \
	strncpy( destination, source, size )
#endif

/* String character search
 */
#if defined( HAVE_MEMCHR ) || defined( WINAPI )
#define narrow_string_search_character( string, character, size ) \
	(char *) memchr( (void *) string, (int) character, size )

#elif defined( HAVE_STRCHR )
#define narrow_string_search_character( string, character, size ) \
	strchr( string, (int) character )
#endif

/* String reverse character search
 */
#if defined( HAVE_MEMRCHR ) && ( HAVE_DECL_MEMRCHR == 1 )
#define narrow_string_search_character_reverse( string, character, size ) \
	(char *) memrchr( (void *) string, (int) character, size )

#elif defined( HAVE_STRRCHR ) || defined( WINAPI )
/* (void)(size) is used to suppress unused variable warnings */
#define narrow_string_search_character_reverse( string, character, size ) \
	strrchr( string, (int) character ); (void)(size)
#endif

/* String sub-string search
 */
#if defined( HAVE_STRSTR ) || defined( WINAPI )
#define narrow_string_search_string( string, substring, size ) \
	strstr( string, substring )
#endif

/* String formatted print (snprintf)
 */
#if defined( HAVE_GLIB_H )
#define narrow_string_snprintf( target, size, ... ) \
	g_snprintf( target, size, __VA_ARGS__ )

#elif defined( _MSC_VER )
#define narrow_string_snprintf( target, size, ... ) \
	sprintf_s( target, size, __VA_ARGS__ )

#elif defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )
#define narrow_string_snprintf \
	snprintf

#elif defined( HAVE_SNPRINTF ) || defined( WINAPI )
#define narrow_string_snprintf( target, size, ... ) \
	snprintf( target, size, __VA_ARGS__ )
#endif

/* String input conversion (sscanf)
 */
#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )
#define narrow_string_sscanf \
	sscanf

#elif defined( HAVE_SSCANF ) || defined( WINAPI )
#define narrow_string_sscanf( string, format, ... ) \
	sscanf( string, format, __VA_ARGS__ )
#endif

/* Variable arguments formatted print to string function (vsnprintf)
 */
#if defined( HAVE_GLIB_H )
#define narrow_string_vsnprintf( string, size, format, ... ) \
	g_vsnprintf( string, size, format, __VA_ARGS__ )

#elif defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )
#define narrow_string_vsnprintf \
	vsnprintf

#elif defined( HAVE_VSNPRINTF ) || defined( WINAPI )
#define narrow_string_vsnprintf( string, size, format, ... ) \
	vsnprintf( string, size, format, __VA_ARGS__ )
#endif

#if defined( __cplusplus )
}
#endif

#endif /* !defined( _NARROW_STRING_H ) */



================================================
FILE: common/system_string.h
================================================
/*
 * System character string functions
 *
 * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>
 *
 * Refer to AUTHORS for acknowledgements.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

#if !defined( _SYSTEM_STRING_H )
#define _SYSTEM_STRING_H

#include "common.h"
#include "narrow_string.h"
#include "types.h"
#include "wide_string.h"

#if defined( _cplusplus )
extern "C" {
#endif

#if defined( HAVE_WIDE_SYSTEM_CHARACTER )

#if SIZEOF_WCHAR_T != 2
#error Unsupported wide system character size
#endif

/* Intermediate version of the macro required
 * for correct evaluation predefined string
 */
#define _SYSTEM_STRING_INTERMEDIATE( string ) \
	L ## string

#define _SYSTEM_STRING( string ) \
	_SYSTEM_STRING_INTERMEDIATE( string )

#define system_string_allocate( size ) \
	wide_string_allocate( size )

#define system_string_reallocate( string, size ) \
	wide_string_reallocate( string, size )

#define system_string_compare( destination, source, size ) \
	wide_string_compare( destination, source, size )

#define system_string_compare_no_case( destination, source, size ) \
	wide_string_compare_no_case( destination, source, size )

#define system_string_copy( destination, source, size ) \
	wide_string_copy( destination, source, size )

#define system_string_length( string ) \
	wide_string_length( string )

#define system_string_search_character( string, character, size ) \
	wide_string_search_character( string, character, size )

#define system_string_search_character_reverse( string, character, size ) \
	wide_string_search_character_reverse( string, character, size )

#define system_string_search_string( string, substring, size ) \
	wide_string_search_string( string, substring, size )

#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )
#define system_string_sprintf \
	wide_string_snwprintf

#else
#define system_string_sprintf( string, size, format, ... ) \
	wide_string_snwprintf( string, size, format, __VA_ARGS__ )
#endif

#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )
#define system_string_vsnprintf \
	wide_string_vsnwprintf

#else
#define system_string_vsnprintf( string, size, format, ... ) \
	wide_string_vsnwprintf( string, size, format, __VA_ARGS__ )
#endif

#else

#define _SYSTEM_STRING( string ) \
	string

#define system_string_allocate( size ) \
	narrow_string_allocate( size )

#define system_string_reallocate( string, size ) \
	narrow_string_reallocate( string, size )

#define system_string_compare( destination, source, size ) \
	narrow_string_compare( destination, source, size )

#define system_string_compare_no_case( destination, source, size ) \
	narrow_string_compare_no_case( destination, source, size )

#define system_string_copy( destination, source, size ) \
	narrow_string_copy( destination, source, size )

#define system_string_length( string ) \
	narrow_string_length( string )

#define system_string_search_character( string, character, size ) \
	narrow_string_search_character( string, character, size )

#define system_string_search_character_reverse( string, character, size ) \
	narrow_string_search_character_reverse( string, character, size )

#define system_string_search_string( string, substring, size ) \
	narrow_string_search_string( string, substring, size )

#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )
#define system_string_sprintf \
	narrow_string_snprintf

#else
#define system_string_sprintf( string, size, format, ... ) \
	narrow_string_snprintf( string, size, format, __VA_ARGS__ )
#endif

#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )
#define system_string_vsnprintf \
	narrow_string_vsnprintf

#else
#define system_string_vsnprintf( string, size, format, ... ) \
	narrow_string_vsnprintf( string, size, format, __VA_ARGS__ )
#endif

#endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */

/* For backwards compatibility */
#define system_string_vsprintf system_string_vsnprintf

#if defined( _cplusplus )
}
#endif

#endif /* !defined( _SYSTEM_STRING_H ) */



================================================
FILE: common/types.h.in
================================================
/*
 * Type and type-support definitions
 *
 * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>
 *
 * Refer to AUTHORS for acknowledgements.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

#if !defined( _TYPES_H )
#define _TYPES_H

#include "common.h"

#if defined( HAVE_LIMITS_H ) || defined( WINAPI )
#include <limits.h>
#endif

/* Make sure to include inttypes.h or stdint.h before
 * PRI definitions are defined
 */
#include <@PACKAGE@/types.h>

#if defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) )

#define HAVE_WIDE_SYSTEM_CHARACTER 1

/* The system character type is wide
 * A system string contains either UTF-16 or UTF-32
 */
typedef wchar_t system_character_t;
typedef wint_t system_integer_t;

#define PRIc_SYSTEM "lc"
#define PRIs_SYSTEM "ls"

#else

/* The system character type is narrow
 * A system string contains either UTF-8 or extended ASCII with a codepage
 */
typedef char system_character_t;
typedef int system_integer_t;

#define PRIc_SYSTEM "c"
#define PRIs_SYSTEM "s"

#endif /* defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) ) */

/* Fallback for systems without PRI definitions
 * Do not define when pyconfig.h has been included via python.h
 */
#if !defined( HAVE_PYCONFIG_H )

#if !defined( PRId8 )
#define PRId8 "d"
#endif

#if !defined( PRId16 )
#define PRId16 "d"
#endif

#if !defined( PRId32 )
#if defined( WINAPI )
#define PRId32 "I32d"

#else
#define PRId32 "d"

#endif
#endif /* !defined( PRId32 ) */

#if !defined( PRId64 )
#if defined( WINAPI )
#define PRId64 "I64d"

#elif __WORDSIZE == 64
#define PRId64 "ld"

#else
#define PRId64 "lld"

#endif
#endif /* !defined( PRId64 ) */

#if !defined( PRIi8 )
#define PRIi8 "i"
#endif

#if !defined( PRIi16 )
#define PRIi16 "i"
#endif

#if !defined( PRIi32 )
#if defined( WINAPI )
#define PRIi32 "I32i"

#else
#define PRIi32 "i"

#endif
#endif /* !defined( PRIi32 ) */

#if !defined( PRIi64 )
#if defined( WINAPI )
#define PRIi64 "I64i"

#elif __WORDSIZE == 64
#define PRIi64 "li"

#else
#define PRIi64 "lli"

#endif
#endif /* !defined( PRIi64 ) */

#if !defined( PRIu8 )
#define PRIu8 "u"
#endif

#if !defined( PRIu16 )
#define PRIu16 "u"
#endif

#if !defined( PRIu32 )
#if defined( WINAPI )
#define PRIu32 "I32u"

#else
#define PRIu32 "u"

#endif
#endif /* !defined( PRIu32 ) */

#if !defined( PRIu64 )
#if defined( WINAPI )
#define PRIu64 "I64u"

#elif __WORDSIZE == 64
#define PRIu64 "lu"

#else
#define PRIu64 "llu"

#endif
#endif /* !defined( PRIu64 ) */

#if !defined( PRIo8 )
#define PRIo8 "o"
#endif

#if !defined( PRIo16 )
#define PRIo16 "o"
#endif

#if !defined( PRIo32 )
#if defined( WINAPI )
#define PRIo32 "I32o"

#else
#define PRIo32 "o"

#endif
#endif /* !defined( PRIo32 ) */

#if !defined( PRIo64 )
#if defined( WINAPI )
#define PRIo64 "I64o"

#elif __WORDSIZE == 64
#define PRIo64 "lo"

#else
#define PRIo64 "llo"

#endif
#endif /* !defined( PRIo64 ) */

#if !defined( PRIx8 )
#define PRIx8 "x"
#endif

#if !defined( PRIx16 )
#define PRIx16 "x"
#endif

#if !defined( PRIx32 )
#if defined( WINAPI )
#define PRIx32 "I32x"

#else
#define PRIx32 "x"

#endif
#endif /* !defined( PRIx32 ) */

#if !defined( PRIx64 )
#if defined( WINAPI )
#define PRIx64 "I64x"

#elif __WORDSIZE == 64
#define PRIx64 "lx"

#else
#define PRIx64 "llx"

#endif
#endif /* !defined( PRIx64 ) */

#endif /* !defined( HAVE_PYCONFIG_H ) */

/* Fallback for systems without printf %jd definition
 */
#if defined( HAVE_PRINTF_JD )
#define PRIjd	"jd"
#define PRIji	"ji"
#define PRIju	"ju"
#define PRIjx	"jx"

#elif SIZEOF_OFF_T == 8
#define PRIjd	PRId64
#define PRIji	PRIi64
#define PRIju	PRIu64
#define PRIjx	PRIx64

#else
#define PRIjd	PRId32
#define PRIji	PRIi32
#define PRIju	PRIu32
#define PRIjx	PRIx32

#endif /* defined( HAVE_PRINTF_JD ) */

/* Fallback for systems without printf %zd definition
 */
#if defined( HAVE_PRINTF_ZD )
#define PRIzd	"zd"
#define PRIzi	"zi"
#define PRIzu	"zu"
#define PRIzx	"zx"

#elif defined( _MSC_VER )
#define PRIzd	"Id"
#define PRIzi	"Ii"
#define PRIzu	"Iu"
#define PRIzx	"Ix"

#elif SIZEOF_SIZE_T == 8
#define PRIzd	PRId64
#define PRIzi	PRIi64
#define PRIzu	PRIu64
#define PRIzx	PRIx64

#else
#define PRIzd	PRId32
#define PRIzi	PRIi32
#define PRIzu	PRIu32
#define PRIzx	PRIx32

#endif /* defined( HAVE_PRINTF_ZD ) */

/* Fallback for systems without (U)INTx_MAX definitions
 */

/* The maximum signed 8-bit integer is 127 (0x7f)
 */
#if !defined( INT8_MAX )
#define INT8_MAX (0x7f)
#endif

/* The maximum unsigned 8-bit integer is 256 (0xff)
 */
#if !defined( UINT8_MAX )
#define UINT8_MAX (0xff)
#endif

/* The maximum signed 16-bit integer is 32767 (0x7ffff)
 */
#if !defined( INT16_MAX )
#define INT16_MAX (0x7fff)
#endif

/* The maximum unsigned 16-bit integer is 65535 (0xffff)
 */
#if !defined( UINT16_MAX )
#define UINT16_MAX (0xffff)
#endif

/* The maximum signed 32-bit integer is 2147483647 (0x7fffffff)
 */
#if !defined( INT32_MAX )
#define INT32_MAX (0x7fffffffL)
#endif

/* The maximum unsigned 32-bit integer is 4294967295 (0xffffffff)
 */
#if !defined( UINT32_MAX )
#define UINT32_MAX (0xffffffffUL)
#endif

/* The minimum signed 64-bit integer is -9223372036854775808 (0x8000000000000000)
 */
#if !defined( INT64_MIN )
#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )
#define INT64_MIN (0x8000000000000000UL)
#else
#define INT64_MIN (0x8000000000000000ULL)
#endif
#endif /* !defined( INT64_MIN ) */

/* The maximum signed 64-bit integer is 9223372036854775807 (0x7fffffffffffffff)
 */
#if !defined( INT64_MAX )
#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )
#define INT64_MAX (0x7fffffffffffffffUL)
#else
#define INT64_MAX (0x7fffffffffffffffULL)
#endif
#endif /* !defined( INT64_MAX ) */

/* The maximum unsigned 64-bit integer is 18446744073709551615 (0xffffffffffffffff)
 */
#if !defined( UINT64_MAX )
#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )
#define UINT64_MAX (0xffffffffffffffffUL)
#else
#define UINT64_MAX (0xffffffffffffffffULL)
#endif
#endif /* !defined( UINT64_MAX ) */

/* The maximum signed integer
 */
#if !defined( INT_MAX )
#define INT_MAX INT32_MAX
#endif

/* The maximum unsigned integer
 */
#if !defined( UINT_MAX )
#define UINT_MAX UINT32_MAX
#endif

/* The maximum signed long integer
 */
#if !defined( LONG_MAX )
#define LONG_MAX INT32_MAX
#endif

/* The maximum unsigned long integer
 */
#if !defined( ULONG_MAX )
#define ULONG_MAX UINT32_MAX
#endif

/* The maximum signed size type is platform dependent
 */
#if !defined( SSIZE_MAX )

#if defined( WINAPI )

#if defined( _WIN64 )
#define SSIZE_MAX INT64_MAX
#else
#define SSIZE_MAX INT32_MAX
#endif

#else

#if __WORDSIZE == 64
#define SSIZE_MAX INT64_MAX
#else
#define SSIZE_MAX INT32_MAX
#endif

#endif /* WINAPI */

#endif /* SSIZE_MAX */

#endif /* !defined( _TYPES_H ) */



================================================
FILE: common/wide_string.h
================================================
/*
 * Wide character string functions
 *
 * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>
 *
 * Refer to AUTHORS for acknowledgements.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

#if !defined( _WIDE_STRING_H )
#define _WIDE_STRING_H

#include "common.h"
#include "memory.h"
#include "types.h"

#if defined( HAVE_WCHAR_H ) || defined( WINAPI )
#include <wchar.h>
#endif

#if defined( __cplusplus )
extern "C" {
#endif

/* Intermediate version of the macro required
 * for correct evaluation predefined string
 */
#define _WIDE_STRING_INTERMEDIATE( string ) \
	L ## string

#define _WIDE_STRING( string ) \
	_WIDE_STRING_INTERMEDIATE( string )

/* String allocation
 */
#define wide_string_allocate( size ) \
	(wchar_t *) memory_allocate( sizeof( wchar_t ) * ( size ) )

/* String reallocation
 */
#define wide_string_reallocate( string, size ) \
	(wchar_t *) memory_reallocate( string, ( sizeof( wchar_t ) * ( size ) ) )

/* String length
 */
#if defined( HAVE_WCSLEN ) || defined( WINAPI )
#define wide_string_length( string ) \
	wcslen( string )
#endif

/* String compare
 */
#if defined( HAVE_WMEMCMP )
#define wide_string_compare( string1, string2, size ) \
	wmemcmp( (void *) string1, (void *) string2, size )

#elif defined( HAVE_WCSNCMP ) || defined( WINAPI )
#define wide_string_compare( string1, string2, size ) \
	wcsncmp( string1, string2, size )
#endif

/* Caseless string compare
 */
#if defined( _MSC_VER ) || ( defined( __BORLANDC__ ) && ( __BORLANDC__ >= 0x0551 ) )
#define wide_string_compare_no_case( string1, string2, size ) \
	_wcsnicmp( string1, string2, size )

#elif ( defined( WINAPI ) && !defined( __CYGWIN__ ) ) || defined( HAVE_WCSNICMP )
#define wide_string_compare_no_case( string1, string2, size ) \
	wcsnicmp( string1, string2, size )

#elif defined( HAVE_WCSNCASECMP )
#define wide_string_compare_no_case( string1, string2, size ) \
	wcsncasecmp( string1, string2, size )

#elif defined( HAVE_WCSCASECMP )
#define wide_string_compare_no_case( string1, string2, size ) \
	wcscasecmp( string1, string2 )
#endif

/* String copy
 */
#if defined( HAVE_WMEMCPY )
#define wide_string_copy( destination, source, size ) \
	(wchar_t *) wmemcpy( (void *) destination, (void *) source, size )

#elif defined( HAVE_WCSNCPY ) || defined( WINAPI )
#define wide_string_copy( destination, source, size ) \
	wcsncpy( destination, source, size )
#endif

/* String character search
 */
#if defined( HAVE_WMEMCHR )
#define wide_string_search_character( string, character, size ) \
	(wchar_t *) wmemchr( (void *) string, (wchar_t) character, size )

#elif defined( HAVE_WCSCHR ) || defined( WINAPI )
#define wide_string_search_character( string, character, size ) \
	wcschr( string, (wchar_t) character )

#endif

/* String reverse character search
 */
#if defined( HAVE_WMEMRCHR )
#define wide_string_search_character_reverse( string, character, size ) \
	(wchar_t *) wmemrchr( (void *) string, (wchar_t) character, size )

#elif defined( HAVE_WCSRCHR ) || defined( WINAPI )
/* (void)(size) is used to suppress unused variable warnings */
#define wide_string_search_character_reverse( string, character, size ) \
	wcsrchr( string, (wchar_t) character ); (void)(size)
#endif

/* String sub-string search
 */
#if defined( HAVE_WCSSTR ) || defined( WINAPI )
#define wide_string_search_string( string, substring, size ) \
	wcsstr( string, substring )

#endif

/* String formatted print (snwprintf)
 */
#if defined( _MSC_VER )
#define wide_string_snwprintf( target, size, ... ) \
	swprintf_s( target, size, __VA_ARGS__ )

#elif defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )
#define wide_string_snwprintf \
	snwprintf

#elif defined( WINAPI )
#define wide_string_snwprintf( target, size, ... ) \
	snwprintf( target, size, __VA_ARGS__ )

#elif defined( HAVE_SWPRINTF )
#define wide_string_snwprintf( target, size, ... ) \
	swprintf( target, size, __VA_ARGS__ )
#endif

/* Variable arguments formatted print to string function (vsnwprintf)
 */
#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )
#define wide_string_vsnwprintf \
	_vsnwprintf

#elif defined( WINAPI )
#define wide_string_vsnwprintf( string, size, format, ... ) \
	_vsnwprintf( string, size, format, __VA_ARGS__ )

#elif defined( HAVE_VSWPRINTF )
#define wide_string_vsnwprintf( string, size, format, ... ) \
	vswprintf( string, size, format, __VA_ARGS__ )
#endif

#if defined( __cplusplus )
}
#endif

#endif /* !defined( _WIDE_STRING_H ) */



================================================
FILE: configure.ac
================================================
AC_PREREQ([2.71])

AC_INIT(
  [libfsrefs],
  [20251205],
  [joachim.metz@gmail.com])

AC_CONFIG_SRCDIR(
  [include/libfsrefs.h.in])

AM_INIT_AUTOMAKE([gnu 1.6 tar-ustar])
AM_EXTRA_RECURSIVE_TARGETS([sources splint])

AC_CONFIG_MACRO_DIR([m4])

dnl Check for host type
AC_CANONICAL_HOST

dnl Check for libtool DLL support
LT_INIT([win32-dll])

dnl Checks for programs
AC_PROG_CC
AC_PROG_GCC_TRADITIONAL
AC_PROG_CXX
AC_PROG_MAKE_SET
AC_PROG_INSTALL

dnl Check for libtool
AC_SUBST(LIBTOOL_DEPS)

dnl Check for pkg-config
AC_PATH_PROG(PKGCONFIG,[pkg-config])

dnl Support of internationalization (i18n)
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.21])

dnl Check for compiler language support
AC_C_CONST
AC_C_VOLATILE

dnl Check for large file support
AC_SYS_LARGEFILE

dnl Check if shared library support should be disabled
AX_COMMON_CHECK_DISABLE_SHARED_LIBS

dnl Check if tools should be build as static executables
AX_COMMON_CHECK_ENABLE_STATIC_EXECUTABLES

dnl Check if WINAPI support should be enabled
AX_COMMON_CHECK_ENABLE_WINAPI

dnl Check if wide character type should be enabled
AX_COMMON_CHECK_ENABLE_WIDE_CHARACTER_TYPE

dnl Check if verbose output should be enabled
AX_COMMON_CHECK_ENABLE_VERBOSE_OUTPUT

dnl Check if debug output should be enabled
AX_COMMON_CHECK_ENABLE_DEBUG_OUTPUT

dnl Check for type definitions
AX_TYPES_CHECK_LOCAL

dnl Check if common required headers and functions are available
AX_COMMON_CHECK_LOCAL

dnl Check if libcerror or required headers and functions are available
AX_LIBCERROR_CHECK_ENABLE

dnl Check if libcthreads or required headers and functions are available
AX_LIBCTHREADS_CHECK_ENABLE

dnl Check if libcdata or required headers and functions are available
AX_LIBCDATA_CHECK_ENABLE

dnl Check if libclocale or required headers and functions are available
AX_LIBCLOCALE_CHECK_ENABLE

dnl Check if libcnotify or required headers and functions are available
AX_LIBCNOTIFY_CHECK_ENABLE

dnl Check if libcsplit or required headers and functions are available
AX_LIBCSPLIT_CHECK_ENABLE

dnl Check if libuna or required headers and functions are available
AX_LIBUNA_CHECK_ENABLE

dnl Check if libcfile or required headers and functions are available
AX_LIBCFILE_CHECK_ENABLE

dnl Check if libcpath or required headers and functions are available
AX_LIBCPATH_CHECK_ENABLE

dnl Check if libbfio or required headers and functions are available
AX_LIBBFIO_CHECK_ENABLE

dnl Check if libfcache or required headers and functions are available
AX_LIBFCACHE_CHECK_ENABLE

dnl Check if libfdata or required headers and functions are available
AX_LIBFDATA_CHECK_ENABLE

dnl Check if libfdatetime or required headers and functions are available
AX_LIBFDATETIME_CHECK_ENABLE

dnl Check if libfguid or required headers and functions are available
AX_LIBFGUID_CHECK_ENABLE

dnl Check if libfwnt or required headers and functions are available
AX_LIBFWNT_CHECK_ENABLE

dnl Check if libfsrefs required headers and functions are available
AX_LIBFSREFS_CHECK_LOCAL

dnl Check if libfusn or required headers and functions are available
AX_LIBFUSN_CHECK_ENABLE

dnl Check if fsrefstools required headers and functions are available
AX_FSREFSTOOLS_CHECK_LOCAL

dnl Check if DLL support is needed
AX_LIBFSREFS_CHECK_DLL_SUPPORT

dnl Check if tests required headers and functions are available
AX_TESTS_CHECK_LOCAL
AX_TESTS_CHECK_OSSFUZZ

dnl Set additional compiler flags
CFLAGS="$CFLAGS -Wall";

dnl Check if requires and build requires should be set in spec file
AS_IF(
  [test "x$ac_cv_libcerror" = xyes || test "x$ac_cv_libcthreads" = xyes || test "x$ac_cv_libcdata" = xyes || test "x$ac_cv_libclocale" = xyes || test "x$ac_cv_libcnotify" = xyes || test "x$ac_cv_libcsplit" = xyes || test "x$ac_cv_libuna" = xyes || test "x$ac_cv_libcfile" = xyes || test "x$ac_cv_libcpath" = xyes || test "x$ac_cv_libbfio" = xyes || test "x$ac_cv_libfcache" = xyes || test "x$ac_cv_libfdata" = xyes || test "x$ac_cv_libfdatetime" = xyes || test "x$ac_cv_libfguid" = xyes || test "x$ac_cv_libfwnt" = xyes],
  [AC_SUBST(
    [libfsrefs_spec_requires],
    [Requires:])
  ])

AS_IF(
  [test "x$ac_cv_libfusn" = xyes],
  [AC_SUBST(
    [libfsrefs_spec_tools_build_requires],
    [BuildRequires:])
  ])

dnl Set the date for the dpkg files
AC_SUBST(
  [DPKG_DATE],
  [`date -R 2> /dev/null`])

dnl Set the date for the spec file
AC_SUBST(
  [SPEC_DATE],
  [`date +"%a %b %e %Y" 2> /dev/null`])

dnl Generate Makefiles
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([include/Makefile])
AC_CONFIG_FILES([common/Makefile])
AC_CONFIG_FILES([libcerror/Makefile])
AC_CONFIG_FILES([libcthreads/Makefile])
AC_CONFIG_FILES([libcdata/Makefile])
AC_CONFIG_FILES([libclocale/Makefile])
AC_CONFIG_FILES([libcnotify/Makefile])
AC_CONFIG_FILES([libcsplit/Makefile])
AC_CONFIG_FILES([libuna/Makefile])
AC_CONFIG_FILES([libcfile/Makefile])
AC_CONFIG_FILES([libcpath/Makefile])
AC_CONFIG_FILES([libbfio/Makefile])
AC_CONFIG_FILES([libfcache/Makefile])
AC_CONFIG_FILES([libfdata/Makefile])
AC_CONFIG_FILES([libfdatetime/Makefile])
AC_CONFIG_FILES([libfguid/Makefile])
AC_CONFIG_FILES([libfwnt/Makefile])
AC_CONFIG_FILES([libfsrefs/Makefile])
AC_CONFIG_FILES([libfusn/Makefile])
AC_CONFIG_FILES([fsrefstools/Makefile])
AC_CONFIG_FILES([po/Makefile.in])
AC_CONFIG_FILES([po/Makevars])
AC_CONFIG_FILES([manuals/Makefile])
AC_CONFIG_FILES([tests/Makefile])
AC_CONFIG_FILES([ossfuzz/Makefile])
AC_CONFIG_FILES([msvscpp/Makefile])
dnl Generate header files
AC_CONFIG_FILES([include/libfsrefs.h])
AC_CONFIG_FILES([include/libfsrefs/definitions.h])
AC_CONFIG_FILES([include/libfsrefs/features.h])
AC_CONFIG_FILES([include/libfsrefs/types.h])
AC_CONFIG_FILES([libfsrefs/libfsrefs_definitions.h])
dnl Generate distribution specific files
AC_CONFIG_FILES([common/types.h])
AC_CONFIG_FILES([dpkg/changelog])
AC_CONFIG_FILES([libfsrefs/libfsrefs.rc])
AC_CONFIG_FILES([libfsrefs.pc])
AC_CONFIG_FILES([libfsrefs.spec])
dnl Generate a source configuration file
AC_CONFIG_HEADERS([common/config.h])

AC_OUTPUT

dnl Print a summary
AC_MSG_NOTICE([
Building:
   libcerror support:                           $ac_cv_libcerror
   libcthreads support:                         $ac_cv_libcthreads
   libcdata support:                            $ac_cv_libcdata
   libclocale support:                          $ac_cv_libclocale
   libcnotify support:                          $ac_cv_libcnotify
   libcsplit support:                           $ac_cv_libcsplit
   libuna support:                              $ac_cv_libuna
   libcfile support:                            $ac_cv_libcfile
   libcpath support:                            $ac_cv_libcpath
   libbfio support:                             $ac_cv_libbfio
   libfcache support:                           $ac_cv_libfcache
   libfdata support:                            $ac_cv_libfdata
   libfdatetime support:                        $ac_cv_libfdatetime
   libfguid support:                            $ac_cv_libfguid
   libfwnt support:                             $ac_cv_libfwnt
   libfusn support:                             $ac_cv_libfusn

Features:
   Multi-threading support:                     $ac_cv_libcthreads_multi_threading
   Wide character type support:                 $ac_cv_enable_wide_character_type
   fsrefstools are build as static executables: $ac_cv_enable_static_executables
   Verbose output:                              $ac_cv_enable_verbose_output
   Debug output:                                $ac_cv_enable_debug_output
]);



================================================
FILE: documentation/Resilient File System (ReFS).asciidoc
================================================
= Resilient File System (ReFS)
Analysis of the Windows Resilient File System

:toc:
:toclevels: 4

:numbered!:
[abstract]
== Summary

The Resilient File System (ReFS) was introduced in Windows 8 server pre release,
which became Windows 2012 server, and was added to Windows 8.1. ReFS is a new
file system to the Windows NT platform. This specification is based on available
documentation and was enhanced by analyzing test data.

This document is intended as a working document of the data format specification
for the libfsrefs project.

[preface]
== Document information

[cols="1,5"]
|===
| Author(s): | Joachim Metz <joachim.metz@gmail.com>
| Abstract: | This document contains information about the Resilient File System (ReFS)
| Classification: | Public
| Keywords: | ReFS, Resilient File System
|===

[preface]
== License

....
Copyright (C) 2012-2023, Joachim Metz <joachim.metz@gmail.com>.
Permission is granted to copy, distribute and/or modify this document under the
terms of the GNU Free Documentation License, Version 1.3 or any later version
published by the Free Software Foundation; with no Invariant Sections, no
Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included
in the section entitled "GNU Free Documentation License".
....

[preface]
== Revision history

[cols="1,1,1,5",options="header"]
|===
| Version | Author | Date | Comments
| 0.0.1 | J.B. Metz | May 2012 | Initial version.
| 0.0.2 | J.B. Metz | September 2012 | Additional information about format.
| 0.0.3 | J.B. Metz | November 2013 | Additional information about format.
| 0.0.4 | J.B. Metz | June 2023 | Switched to asciidoc format and additional information about format.
| 0.0.5 | J.B. Metz | July 2023 | Additional information about format.
|===

:numbered:
== Overview

The Resilient File System (ReFS) was introduced in Windows 8 server pre release,
which became Windows 2012 server, and was added to Windows 8.1. ReFS is a new
file system to the Windows NT platform.

A volume consists of:

* a volume header
* metadata blocks
** superblock
* file and directory data
* a copy of the volume header

[cols="1,5",options="header"]
|===
| Characteristics | Description
| Byte order | little-endian
| Date and time values | FILETIME in UTC
| Character strings | ASCII strings are Single Byte Character (SBC) or Multi Byte Character (MBC) string stored with a codepage. Sometimes referred to as ANSI string representation. +
Though technically maybe incorrect, this document will use term (extended) ASCII string. +
Unicode strings are stored in UTF-16 little-endian without the byte order mark (BOM).
|===

=== Versions

There are multiple version of ReFS.

[cols="1,5",options="header"]
|===
| ReFS version | Remarks
| 1.1 | Used by Windows 8 (preview) and Windows Server 2012
| 1.2 | Used by Windows 8.1, Windows 10 (1507 to 1607) and Windows Server 2012 R2
| |
| 2.0 | Used by Windows Server 2016 (preview)
| |
| 2.2 | Used by Windows 10 (preview)
| |
| 3.0 | Used by Windows Server 2016 (preview)
| 3.1 | Used by Windows Server 2016
| 3.2 | Used by Windows 10 (1703)
| 3.3 | Used by Windows 10 (1709)
| 3.4 | Used by Windows 10 (1803) and Windows server 2019
| 3.5 | Used by Windows 11 (preview)
| 3.6 | Used by Windows 11 (preview)
| 3.7 | Used by Windows 11 and Windows server 2022
|===

=== Test version

The following version of programs were used to test the information within this
document:

* Windows 8
* Windows 2012 Server R2
* Windows 2016 Server
* Windows 2019 Server

== The volume header

The volume header is stored at the start of the volume. A copy of volume header
is stored at the end of the volume.

[NOTE]
The size of the partition can be larger then the number of sectors in the
volume.

The volume header is 512 bytes of size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
4+| _File system recognition structure (FILE_SYSTEM_RECOGNITION_STRUCTURE)_
| 0 | 3 | 0x00 | Boot entry point (or JMP instruction)
| 3 | 8 | "ReFS\x00\x00\x00\x00" | File system signature (or file system name)
| 11 | 5 | 0x00 | [yellow-background]*Unknown (empty values)*
| 16 | 4 | "FSRS" | File system recognition structure identifier
| 20 | 2 | 0x200 | [yellow-background]*Unknown (size of file system recognition structure?)*
| 22 | 2 | | [yellow-background]*Unknown (checksum of file system recognition structure?)*
4+|
| 24 | 8 | | Number of sectors
| 32 | 4 | | Sector size
| 36 | 4 | | Sectors per cluster block (allocation unit)
| 40 | 1 | | Major format version
| 41 | 1 | | Minor format version
| 42 | 2 | 0x00 | [yellow-background]*Unknown (flags?)*
| 44 | 4 | | [yellow-background]*Unknown*
| 48 | 8 | 0x00 | [yellow-background]*Unknown (empty values)*
| 56 | 8 | | Volume serial number
| 64 | 8 | | Container (or band size)
| 72 | 440 | 0x00 | [yellow-background]*Unknown (empty values)*
|===

[NOTE]
Note that currently 4096 and 65536 have been observed as supported cluster block
(allocation unit) byte sizes.

[NOTE]
Note the container size has been first observed in format version 3.4, in previous format versions such as 3.1, which has containers, this value is 0.

== Metadata

Metadata is stored in one or more blocks (or pages).

There are multiple levels of metadata:

[cols="1,1,5",options="header"]
|===
| Level | Block signature | Description
| 0 | "SUPB" | Superblock
| 1 | "CHKP" | Checkpoint
| 2+ | "MSB+" | Ministore tree (B+-tree)
|===

[yellow-background]*TODO: is the metadata block referred to as synchronous ministore (SMS) by Microsoft?*

=== [[metadata_block_header]]Metadata block header

==== Metadata block header - format version 1

The format version 1 metadata block header is 48 bytes of size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 8 | | Block number +
The block number is relative from the start of the volume
| 8 | 8 | | [yellow-background]*Unknown (sequence number?)*
| 16 | 8 | 0x00 | [yellow-background]*Unknown (empty values)*
| 24 | 8 | | [yellow-background]*Unknown*
| 32 | 8 | 0x01 | [yellow-background]*Unknown (flags or level?)*
| 40 | 8 | 0x00 | [yellow-background]*Unknown (empty values)*
|===

[yellow-background]*TODO: It seems that the data in bytes 8 – 23 is used as an identifier. Level 3 table contains an identifier that matches the data in the corresponding level 4 block.*

==== Metadata block header - format version 3

The format version 3 metadata block header is 80 bytes of size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 4 | | Signature
| 4 | 4 | 2 | [yellow-background]*Unknown*
| 8 | 4 | 0x00 | [yellow-background]*Unknown (empty values)*
| 12 | 4 | | [yellow-background]*Unknown (volume signature?)*
| 16 | 8 | | [yellow-background]*Unknown (virtual allocator clock?)*
| 24 | 8 | | [yellow-background]*Unknown (tree update clock?)*
| 32 | 8 | | First block number
| 40 | 8 | | Second block number
| 48 | 8 | | Third block number
| 56 | 8 | | Fourth block number
| 64 | 8 | | [yellow-background]*Unknown (table identifier upper 64-bit?)*
| 72 | 8 | | [yellow-background]*Unknown (table identifier lower 64-bit?)*
|===

[NOTE]
In format version 3 the metadata can span multiple metadata blocks.

=== [[metadata_block_reference]]Metadata block reference

==== Metadata block reference - format version 1

The format version 1 metadata block reference is 24 bytes of size and
consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 8 | | Block number
4+| _Checkum descriptor_
| 8 | 2 | 0x00 | [yellow-background]*Unknown (empty values)*
| 10 | 1 | | Checksum type
| 11 | 1 | | Checksum data offset +
The offset is relative to the start of the checksum descriptor
| 12 | 2 | | Checksum data size
| 14 | 2 | 0x00 | [yellow-background]*Unknown (empty values)*
| 16 | 8 | | Checksum data
|===

==== Metadata block reference - format version 3

The format version 3 metadata block reference is 48 bytes of size and
consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 8 | | First block number
| 8 | 8 | | Second block number
| 16 | 8 | | Third block number
| 24 | 8 | | Fourth block number
4+| _Checkum descriptor_
| 32 | 2 | 0x00 | [yellow-background]*Unknown (empty values)*
| 34 | 1 | | Checksum type
| 35 | 1 | | Checksum data offset +
The offset is relative to the start of the checksum descriptor
| 36 | 2 | | Checksum data size
| 38 | 2 | 0x00 | [yellow-background]*Unknown (empty values)*
| 40 | 8 | | Checksum data
|===

==== Checksum type

[cols="1,1,5",options="header"]
|===
| Value | Identifier | Description
| 1 | | CRC-32C (or CRC32-C), which uses the Castagnoli polynomial (0x1edc6f41)
| 2 | | CRC64-ECMA-182 +
Checksum data size is 8 bytes
|===

== Superblock (level 0) metadata

The superblock metadata consists of:

* <<metadata_block_header,Metadata block header>>
* Superblock
* Checkpoint references data
* Self <<metadata_block_reference,metadata block reference>>

=== Superblock

The superblock is 48 bytes of size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 16 | | Volume identifier
| 16 | 8 | 0x00 | [yellow-background]*Unknown (empty values)*
| 24 | 8 | | [yellow-background]*Unknown (sequence number?)*
| 32 | 4 | | Checkpoint references data offset +
The offset is relative to the start of the metadata block
| 36 | 4 | 2 | [yellow-background]*Unknown (number of checkpoint metadata block numbers?)*
| 40 | 4 | | Self (block) reference data offset +
The offset is relative to the start of the metadata block
| 44 | 4 | | Self (block) reference data size
|===

=== Checkpoint references data

The checkpoint references data is variable of size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | number of entries x 8 | | Checkpoint metadata block number
|===

== Checkpoint (level 1) metadata

The checkpoint metadata consists of:

* <<metadata_block_header,Metadata block header>>
* Superblock
* Checkpoint header
* Checkpoint trailer
* Self <<metadata_block_reference,metadata block reference>
* Ministore tree <<metadata_block_reference,metadata block references>>

=== Checkpoint header

The checkpoint header is 16 bytes of size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 4 | 0x00 | [yellow-background]*Unknown (empty values)*
| 4 | 2 | | Major format version
| 6 | 2 | | Minor format version
| 8 | 4 | | Self (block) reference data offset +
The offset is relative to the start of the metadata block
| 12 | 4 | | Self (block) reference data size
|===

=== Checkpoint trailer

==== Checkpoint trailer - format version 1

The format version 1 checkpoint trailer is variable of size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 8 | | [yellow-background]*Unknown (sequence number?)*
| 8 | 4 | | [yellow-background]*Unknown (checkpoint data size?)*
| 12 | 4 | | [yellow-background]*Unknown (seen: 32)*
| 16 | 8 | | [yellow-background]*Unknown*
| 24 | 4 | | Number of offsets
| 28 | number of offset x 4 | | Array of offsets +
The offset is relative to the start of the metadata block
| ... | ... | 0x00 | [yellow-background]*Unknown (empty values)*
|===

==== Checkpoint trailer - format version 3

The format version 3 checkpoint trailer is variable of size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 8 | | [yellow-background]*Unknown (sequence number or checkpoint clock?)*
| 8 | 8 | | [yellow-background]*Unknown (virtual allocator clock?)*
| 16 | 4 | | [yellow-background]*Unknown (oldest log record?)*
| 20 | 4 | | [yellow-background]*Unknown*
| 24 | 8 | | [yellow-background]*Unknown*
| 32 | 8 | | [yellow-background]*Unknown*
| 40 | 4 | | [yellow-background]*Unknown (checkpoint data size?)*
| 44 | 4 | | [yellow-background]*Unknown (seen: 32)*
| 48 | 4 | | Number of offsets
| 52 | number of offset x 4 | | Array of offsets +
The offset is relative to the start of the metadata block
| ... | ... | 0x00 | [yellow-background]*Unknown (empty values)*
|===

=== Ministore tree block references

[cols="1,1,5",options="header"]
|===
| Index | Identifier | Description
| 0 | | Objects tree
| 1 | | Medium allocator tree
| 2 | | Container allocator tree
| 3 | | Schema tree
| 4 | | Parent-child relationship tree
| 5 | | Copy of object tree
| 6 | | Block reference count tree
3+| _Seen in format version 3_
| 7 | | Container tree
| 8 | | Copy of container tree
| 9 | | Copy of schema tree
| 10 | | Container index tree
| 11 | | Integrity state tree
| 12 | | Small allocator tree
|===

== [[ministore_tree]]Ministore tree (level 2+) metadata

The ministore tree metadata consists of:

* <<metadata_block_header,Metadata block header>>
* Node header offset
* Optional tree header
* Optional header data
* Node header
* Node records
* Unused
* Node record offsets

[NOTE]
Note that in format version 3 the upper 16-bit of the record offsets is set
to 0xffff.

=== Node header offset

The node header offset is 4 bytes in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 4 | | Node header offset +
The offset is relative to the start of the node header offset
|===

=== Tree header

The tree header is 36 bytes in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 2 | 40 | Header data offset +
The offset is relative to the start of the node header offset
| 2 | 2 | | [yellow-background]*Unknown (seen: 0 or 1)*
| 4 | 4 | | [yellow-background]*Unknown (seen: 0)*
| 8 | 4 | | [yellow-background]*Unknown*
| 12 | 4 | | [yellow-background]*Unknown*
| 16 | 4 | | [yellow-background]*Unknown (seen: 2)*
| 20 | 4 | | [yellow-background]*Unknown (number of branch nodes?)*
| 24 | 4 | | [yellow-background]*Unknown*
| 28 | 4 | | [yellow-background]*Unknown (number of leaf values?)*
| 32 | 4 | | [yellow-background]*Unknown*
|===

=== Node header

The node header is 32 bytes of size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 4 | | Data area start offset +
The offset is relative to the start of the node header
| 4 | 4 | | Data area end offset +
The offset is relative to the start of the node header
| 8 | 4 | | Unused data size
| 12 | 1 | | Node level, where 0 is the level of the leaf values
| 13 | 1 | | Node type flags
| 14 | 2 | | [yellow-background]*Unknown (empty values)*
| 16 | 4 | | Record offsets start offset +
The offset is relative to the start of the node information entry
| 20 | 4 | | Number of record offsets
| 24 | 4 | | Record offsets end offset +
The offset is relative to the start of the node information entry or 0 if not set
| 28 | 4 | | [yellow-background]*Unknown (empty values)*
|===

==== Node type flags

[cols="1,1,5",options="header"]
|===
| Value | Identifier | Description
| 0x01 | | Is branch (or inner) node
| 0x02 | | Is root node
| 0x04 | | Is stream node
|===

=== Node record

The node record is variable of size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 4 | | Node record size +
Includes the 4 bytes of the size value
| 4 | 2 | | Key data offset +
The offset is relative to the start of the node record
| 6 | 2 | | Key data size
| 8 | 2 | | Flags +
See section: <<node_record_flags,Node record flags>>
| 10 | 2 | | Value data offset +
The offset is relative to the start of the node record
| 12 | 2 | | Value data size
|===

==== [[node_record_flags]]Node record flags

[cols="1,1,5",options="header"]
|===
| Value | Identifier | Description
| 0x0002 | | [yellow-background]*Unknown (No key data?)*
| 0x0004 | | [yellow-background]*Unknown (Is unallocated (free)?)*
| 0x0008 | | Value data contains an embedded Ministore node
| | |
| 0x0040 | | [yellow-background]*Unknown (Is stream record?)*
|===

==== Branch node record

The key of a branch node contains key of the largest value of the corresponding
branch. Note that the key of the last branch node can be empty.

The value of a branch node contains a <<metadata_block_reference,metadata block reference>>
of the corresponding sub node.

== Objects tree

The objects tree is a <<ministore_tree,Ministore B+-tree>> that contains
object records.

=== Object record

An object record consists of:

* key, containing an <<object_identifiers,object identifier>>
* value, containing a <<metadata_block_reference,metadata block reference>> that reference the corresponding object <<ministore_tree,Ministore B+-tree>>

==== Object record key

The object record key is 16 bytes in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 8 | | Record key (upper 64-bits), which contains 0-byte values
| 8 | 8 | | Record key (lower 64-bits), which contains an <<object_identifiers,object identifier>>
|===

[NOTE]
Note that the record key corresponds to the file system identifier.

==== Object record value - format version 1

The format version 1 object record value is 48 bytes in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 24 | | Block reference +
See section: <<metadata_block_reference,metadata block reference>>
| 24 | 8 | | [yellow-background]*Unknown*
| 32 | 4 | | [yellow-background]*Unknown*
| 36 | 4 | | [yellow-background]*Unknown*
| 40 | 8 | | [yellow-background]*Unknown (related object identifier?)*
|===

===== Object record value - format version 3

The format version 3 object record value is variable in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 8 | | [yellow-background]*Unknown*
| 8 | 4 | | [yellow-background]*Unknown*
| 12 | 4 | | [yellow-background]*Unknown (size of block reference data?)*
| 16 | 4 | | [yellow-background]*Unknown (size of used record data?)*
| 20 | 4 | | [yellow-background]*Unknown*
| 24 | 4 | | [yellow-background]*Unknown*
| 28 | 4 | | [yellow-background]*Unknown*
| 32 | 48 | | Block reference +
See section: <<metadata_block_reference,metadata block reference>>
| ... | ... | | [yellow-background]*Unknown (remnant data?)*
|===

===== [[object_identifiers]]Object identifiers

[cols="1,1,5",options="header"]
|===
| Value | Identifier | Description
| 0x00000007 | | Upcase object +
Introduced in format version 3?
| 0x00000008 | | Copy of Upcase object +
Introduced in format version 3?
| 0x00000009 | | Logfile information object +
Introduced in format version 3?
| 0x0000000a | | Copy of logfile information object +
Introduced in format version 3?
| | |
| 0x0000000d | | Trash stream object +
Introduced in format version 3?
| | |
| 0x00000500 | | <<volume_information_object,Volume information object>>
| 0x00000501 | | Copy of volume information object +
Introduced in format version 3?
| | |
| 0x00000520 | | <<file_system_information_object,File system information object>>
| | |
| 0x00000530 | |
| | |
| 0x00000540 | | +
Introduced in format version 3?
| 0x00000541 | | +
Introduced in format version 3?
| | |
| 0x00000600 | REFS_ROOT_DIRECTORY_ID | <<directory_object,Root directory object>>
| | |
| 0x00000701 | REFS_OBJECT_UNKNOWN_3 | <<directory_object,Directory object>> +
Values 0x00000701 and above are used for sub directories.
|===

== Container tree

The container tree is a <<ministore_tree,Ministore B+-tree>> that contains
container records.

[NOTE]
Note that the container tree has only been observed with format version 3.

=== Container record

A container record consists of:

* key, containing the container (or band) identifier
* value, containing information about the container

==== Container record key

The container record key is the first 16 bytes of the container record value.

==== Container record value

The container record value is 160 bytes in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 8 | | Container (or band) identifier
| 8 | 4 | | [yellow-background]*Unknown*
| 12 | 4 | | [yellow-background]*Unknown*
| 16 | 4 | | [yellow-background]*Unknown (flags?)*
| 20 | 4 | | [yellow-background]*Unknown*
| 24 | 8 | | [yellow-background]*Unknown*
| 32 | 8 | | [yellow-background]*Unknown (number of unused cluster blocks?)*
| 40 | 8 | | [yellow-background]*Unknown*
| 48 | 28 | | [yellow-background]*Unknown (empty values)*
| 76 | 4 | | [yellow-background]*Unknown*
| 80 | 64 | | [yellow-background]*Unknown (empty values)*
| 144 | 8 | | Cluster block number
| 152 | 8 | | Cluster size +
Contains the number of (cluster) blocks
|===

== [[directory_object]]Directory object

The directory object is a <<ministore_tree,Ministore B+-tree>> that contains
multiple directory records.

The format of the directory record value is dependent on the record type in
the directory record key.

A ReFS file system identifier consists of:

* 64-bit file identifier or 0 for the directory
* 64-bit directory object identifier

=== Directory record key

The directory record key is variable in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 2 | | Record type
| 2 | ... | | Data
|===

==== Record types

[cols="1,1,5",options="header"]
|===
| Value | Identifier | Description
| 0x0010 | | Base record
| 0x0020 | | Name record
| 0x0030 | | Entry record
|===

==== Base record (record type: 0x0010)

The directory object base record key is 4 bytes in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 2 | 0x0010 | Record type
| 2 | 2 | | [yellow-background]*Unknown (seen: 0x0000)*
|===

==== Name record (record type: 0x0020)

The directory object name record key is 24 bytes in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 2 | 0x0020 | Record type
| 2 | 2 | | [yellow-background]*Unknown (seen: 0x8000)*
| 4 | 4 | | [yellow-background]*Unknown (empty values?)*
| 8 | 8 | | File system identifier (lower 64-bits)
| 16 | 8 | | File system identifier (upper 64-bits)
|===

The directory object name record value is variable in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 8 | | [yellow-background]*Unknown (empty values?)*
| 8 | 2 | | [yellow-background]*Unknown (seen: 0x0c)*
| 10 | ... | | Name +
Contains an UTF-16 little-endian without end-of-string character
|===

[NOTE]
The name string is not strict UTF-16 since it allows for unpaired surrogates,
such as "U+d800" and "U+dc00".

==== Entry record (record type: 0x0030)

The directory object entry record key is variable in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 2 | 0x0030 | Record type
| 2 | 2 | | Directory entry type +
See section: <<directory_entry_types,Directory entry types>>
| 4 | ... | | Name +
Contains an UTF-16 little-endian without end-of-string character
|===

[NOTE]
The name string is not strict UTF-16 since it allows for unpaired surrogates,
such as "U+d800" and "U+dc00".

The format of the directory object entry record value is dependent on
the directory entry type.

==== [[directory_entry_types]]Directory entry types

[cols="1,1,5",options="header"]
|===
| Value | Identifier | Description
| 0 | | File system metadata file
| 1 | | File +
See section: <<directory_object_entry_record_file_values,Directory object entry record file values>>
| 2 | | Directory +
See section: <<directory_object_entry_record_directory_values,Directory object entry record directory values>>
|===

=== [[directory_object_entry_record_directory_values]]Directory object entry record directory values

The directory object entry record directory values are 72 bytes in size and
consist of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 8 | | Directory object identifier +
See section: <<object_identifiers,object identifiers>>
| 8 | 8 | | [yellow-background]*Unknown (part of the object identifier?)*
| 16 | 8 | | Creation date and time +
Contains a FILETIME
| 24 | 8 | | Last modification date and time +
(Also referred to as last written date and time) +
Contains a FILETIME
| 32 | 8 | | Entry (or metadata) last modification date and time +
Contains a FILETIME
| 40 | 8 | | Last access date and time +
Contains a FILETIME
| 48 | 16 | | [yellow-background]*Unknown (empty values)*
| 64 | 4 | | File attribute flags
| 68 | 4 | | [yellow-background]*Unknown (empty values)*
|===

=== [[directory_object_entry_record_file_values]]Directory object entry record file values

The directory object entry record file values are variable in size and consist
of an embedded Ministore node. The embedded Ministore node contains:

* header data
* one or more <<directory_object_entry_record_attribute,attribute records>>

[NOTE]
Note that although the Ministore node is embedded in the record value it can
branch out to other Ministore nodes stored elsewhere.

The header data is 128 bytes in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 8 | | Creation date and time +
Contains a FILETIME
| 8 | 8 | | Last modification date and time +
(Also referred to as last written date and time) +
Contains a FILETIME
| 16 | 8 | | Entry (or metadata) last modification date and time +
Contains a FILETIME
| 24 | 8 | | Last access date and time +
Contains a FILETIME
| 32 | 4 | | File attribute flags
| 36 | 4 | | [yellow-background]*Unknown*
| 40 | 8 | | File system identifier (lower 64-bits)
| 48 | 8 | | File system identifier (upper 64-bits)
| 56 | 4 | | [yellow-background]*Unknown*
| 60 | 4 | | [yellow-background]*Unknown*
| 64 | 8 | | Data size
| 72 | 8 | | Allocated (or reserved) data size
| 80 | 32 | | [yellow-background]*Unknown*
| 112 | 8 | | [yellow-background]*Unknown*
| 120 | 8 | | [yellow-background]*Unknown*
|===

=== [[directory_object_entry_record_attribute]]Attribute record

key data of default (or nameless) data attribute

....
00000000: 60 01 00 00 00 00 00 00  80 00 00 00 00 00         `....... ......
....

key data of alternate data attribute
....
00000000: 4a 00 00 00 00 00 00 00  b0 00 00 00 6d 00 79 00   J....... ....m.y.
00000010: 61 00 64 00 73 00                                  a.d.s.
....

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 8 | | [yellow-background]*Unknown*
| 8 | 4 | | [yellow-background]*Unknown (attribute type)*
| 12 | ... | | Attribute name string +
Contains an UTF-16 little-endian without end-of-string character or an end-of-string character if the attribute is nameless
|===

[cols="1,1,5",options="header"]
|===
| Value | Identifier | Description
| 0x10 | $STANDARD_INFORMATION |
| 0x30 | $FILENAME |
| 0x38 | $DIR_LINK |
| 0x40 | $OBJECT_ID |
| 0x50 | $OBSOLETE |
| 0x60 | $VOLUME_NAME |
| 0x70 | $VOLUME_INFO |
| 0x80 | $DATA |
| 0x90 | $INDEX_ROOT |
| 0xa0 | $INDEX_ALLOCATION |
| 0xb0 | $NAMED_DATA |
| 0xc0 | $REPARSE_POINT |
| 0xd0 | $EA_INFORMATION |
| 0xe0 | $EA |
|===

==== [[directory_object_entry_record_resident_attribute]]Directory object entry record resident attribute

The directory object entry record resident attribute is variable in size and
consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 4 | | [yellow-background]*Unknown (seen: 0 resident?)*
| 4 | 4 | | (Resident or inline) data offset +
The offset is relative to the start of the record value
| 8 | 4 | | (Resident or inline) data size
| 12 | 4 | | [yellow-background]*Unknown*
| 16 | 8 | | [yellow-background]*Unknown*
| 24 | 8 | | [yellow-background]*Unknown*
| 32 | 8 | | [yellow-background]*Unknown*
| 40 | 8 | | [yellow-background]*Unknown*
| 32 | 8 | | [yellow-background]*Unknown*
| 40 | 4 | | [yellow-background]*Unknown*
| 44 | ... | | (Resident or inline) data
|===

==== [[directory_object_entry_record_non_resident_attribute]]Directory object entry record non-resident attribute

The directory object entry record non-resident attribute is variable in size
and consist of an embedded Ministore node. The embedded Ministore node contains:

* header data
* zero or more <<directory_object_entry_record_data_run,data run records>>

The header data is 96 bytes in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 4 | | [yellow-background]*Unknown (seen: 1 non-resident?)*
| 4 | 8 | | [yellow-background]*Unknown (empty values?)*
| 12 | 8 | | Allocated (or reserved) data size
| 20 | 8 | | Data size
| 28 | 8 | | Valid data size
| 36 | 60 | | [yellow-background]*Unknown (empty values?)*
|===

=== [[directory_object_entry_record_data_run]]Data run record

The directory object entry record data run record key is the first 16 bytes of
the directory object entry record data run record value.

The directory object entry record data run record value is 16 bytes in size and
consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 8 | | Data run logical offset
| 8 | 8 | | Data run size +
Contains the number of metadata blocks
| 16 | 8 | | Data run physical offset +
Contains a metadata block number
| 24 | 8 | | [yellow-background]*Unknown*
|===

== [[file_system_information_object]]File system information object

The file system information object is a <<ministore_tree,Ministore B+-tree>>
that contains a single file system information record.

=== File system information record key

The file system information record key is variable in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 2 | 0x30 | [yellow-background]*Unknown*
| 2 | 2 | 0x01 | [yellow-background]*Unknown*
| 4 | ... | "Volume Direct IO File" | String +
Contains an UTF-16 little-endian without end-of-string character
|===

=== File system information record value

The file system record value is TODO bytes in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
|===

[yellow-background]*TODO: describe*

== [[volume_information_object]]Volume information object

The volume information object is a <<ministore_tree,Ministore B+-tree>> that
contains multiple volume information records.

=== Volume information record key

The volume information record key is 8 bytes in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | 8 | | Object identifier +
See section: <<object_identifiers,object identifiers>>
|===

[cols="1,1,5",options="header"]
|===
| Value | Identifier | Description
| 0x00000510 | | Volume name record +
Comparable to NTFS volume name attribute ($VOLUME_NAME)
| | |
| 0x00000520 | | [yellow-background]*TODO: describe*
| | |
| 0x00000530 | | [yellow-background]*TODO: describe*
| | |
| 0x00000540 | | [yellow-background]*TODO: describe*
|===

=== Volume name record value

The volume name record value is variable in size and consists of:

[cols="1,1,1,5",options="header"]
|===
| Offset | Size | Value | Description
| 0 | ... | | Volume name +
Contains an UTF-16 little-endian without end-of-string character
|===

:numbered!:
[appendix]
== References

`[BALLENTHIN12]`

[cols="1,5",options="header"]
|===
| Title: | The Microsoft ReFS On-Disk Layout
| Author(s): | Willi Ballenthin
| Date: | 2012
| URL: | http://www.williballenthin.com/forensics/refs/index.html
|===

`[GREEN13]`

[cols="1,5",options="header"]
|===
| Title: | Resilient File System (ReFS) - Analysis of the File System found on Windows Server 2012 and Windows 8.1
| Author(s): | Paul K. Green
| Version: | 0.6
| Date: | September 2013
| URL: | https://docs.google.com/uc?export=download&id=0B7_P1Njdyx3hdnNtYlpVZ2taaU0
|===

`[PRADE19]`

[cols="1,5",options="header"]
|===
| Title: | Forensic Analysis of the Resilient File System (ReFS) Version 3.4
| Author(s): | Paul Prade, Tobias Groß, Andreas Dewald
| Date: | December 2019
| URL: | https://www.sciencedirect.com/science/article/pii/S266628172030010X
|===

`[MSDN]`

[cols="1,5",options="header"]
|===
| Title: | http://www.williballenthin.com/forensics/refs/index.html
| URL: | http://blogs.msdn.com/b/b8/archive/2012/01/16/building-the-next-generation-file-system-for-windows-refs.aspx
|===

[cols="1,5",options="header"]
|===
| Title: | FILE_SYSTEM_RECOGNITION_STRUCTURE structure
| URL: | https://learn.microsoft.com/en-us/windows/win32/fileio/file-system-recognition-structure
|===

`[WIKIPEDIA]`

[cols="1,5",options="header"]
|===
| Title: | Wikipedia: ReFS
| URL: | https://en.wikipedia.org/wiki/ReFS
|===

[appendix]
== GNU Free Documentation License

Version 1.3, 3 November 2008
Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
<http://fsf.org/>

Everyone is permitted to copy and distribute verbatim copies of this license
document, but changing it is not allowed.

=== 0. PREAMBLE

The purpose of this License is to make a manual, textbook, or other functional
and useful document "free" in the sense of freedom: to assure everyone the
effective freedom to copy and redistribute it, with or without modifying it,
either commercially or noncommercially. Secondarily, this License preserves for
the author and publisher a way to get credit for their work, while not being
considered responsible for modifications made by others.

This License is a kind of "copyleft", which means that derivative works of the
document must themselves be free in the same sense. It complements the GNU
General Public License, which is a copyleft license designed for free software.

We have designed this License in order to use it for manuals for free software,
because free software needs free documentation: a free program should come with
manuals providing the same freedoms that the software does. But this License is
not limited to software manuals; it can be used for any textual work,
regardless of subject matter or whether it is published as a printed book. We
recommend this License principally for works whose purpose is instruction or
reference.

=== 1. APPLICABILITY AND DEFINITIONS

This License applies to any manual or other work, in any medium, that contains
a notice placed by the copyright holder saying it can be distributed under the
terms of this License. Such a notice grants a world-wide, royalty-free license,
unlimited in duration, to use that work under the conditions stated herein. The
"Document", below, refers to any such manual or work. Any member of the public
is a licensee, and is addressed as "you". You accept the license if you copy,
modify or distribute the work in a way requiring permission under copyright law.

A "Modified Version" of the Document means any work containing the Document or
a portion of it, either copied verbatim, or with modifications and/or
translated into another language.

A "Secondary Section" is a named appendix or a front-matter section of the
Document that deals exclusively with the relationship of the publishers or
authors of the Document to the Document's overall subject (or to related
matters) and contains nothing that could fall directly within that overall
subject. (Thus, if the Document is in part a textbook of mathematics, a
Secondary Section may not explain any mathematics.) The relationship could be a
matter of historical connection with the subject or with related matters, or of
legal, commercial, philosophical, ethical or political position regarding them.

The "Invariant Sections" are certain Secondary Sections whose titles are
designated, as being those of Invariant Sections, in the notice that says that
the Document is released under this License. If a section does not fit the
above definition of Secondary then it is not allowed to be designated as
Invariant. The Document may contain zero Invariant Sections. If the Document
does not identify any Invariant Sections then there are none.

The "Cover Texts" are certain short passages of text that are listed, as
Front-Cover Texts or Back-Cover Texts, in the notice that says that the
Document is released under this License. A Front-Cover Text may be at most 5
words, and a Back-Cover Text may be at most 25 words.

A "Transparent" copy of the Document means a machine-readable copy, represented
in a format whose specification is available to the general public, that is
suitable for revising the document straightforwardly with generic text editors
or (for images composed of pixels) generic paint programs or (for drawings)
some widely available drawing editor, and that is suitable for input to text
formatters or for automatic translation to a variety of formats suitable for
input to text formatters. A copy made in an otherwise Transparent file format
whose markup, or absence of markup, has been arranged to thwart or discourage
subsequent modification by readers is not Transparent. An image format is not
Transparent if used for any substantial amount of text. A copy that is not
"Transparent" is called "Opaque".

Examples of suitable formats for Transparent copies include plain ASCII without
markup, Texinfo input format, LaTeX input format, SGML or XML using a publicly
available DTD, and standard-conforming simple HTML, PostScript or PDF designed
for human modification. Examples of transparent image formats include PNG, XCF
and JPG. Opaque formats include proprietary formats that can be read and edited
only by proprietary word processors, SGML or XML for which the DTD and/or
processing tools are not generally available, and the machine-generated HTML,
PostScript or PDF produced by some word processors for output purposes only.

The "Title Page" means, for a printed book, the title page itself, plus such
following pages as are needed to hold, legibly, the material this License
requires to appear in the title page. For works in formats which do not have
any title page as such, "Title Page" means the text near the most prominent
appearance of the work's title, preceding the beginning of the body of the text.

The "publisher" means any person or entity that distributes copies of the
Document to the public.

A section "Entitled XYZ" means a named subunit of the Document whose title
either is precisely XYZ or contains XYZ in parentheses following text that
translates XYZ in another language. (Here XYZ stands for a specific section
name mentioned below, such as "Acknowledgements", "Dedications",
"Endorsements", or "History".) To "Preserve the Title" of such a section when
you modify the Document means that it remains a section "Entitled XYZ"
according to this definition.

The Document may include Warranty Disclaimers next to the notice which states
that this License applies to the Document. These Warranty Disclaimers are
considered to be included by reference in this License, but only as regards
disclaiming warranties: any other implication that these Warranty Disclaimers
may have is void and has no effect on the meaning of this License.

=== 2. VERBATIM COPYING

You may copy and distribute the Document in any medium, either commercially or
noncommercially, provided that this License, the copyright notices, and the
license notice saying this License applies to the Document are reproduced in
all copies, and that you add no other conditions whatsoever to those of this
License. You may not use technical measures to obstruct or control the reading
or further copying of the copies you make or distribute. However, you may
accept compensation in exchange for copies. If you distribute a large enough
number of copies you must also follow the conditions in section 3.

You may also lend copies, under the same conditions stated above, and you may
publicly display copies.

=== 3. COPYING IN QUANTITY

If you publish printed copies (or copies in media that commonly have printed
covers) of the Document, numbering more than 100, and the Document's license
notice requires Cover Texts, you must enclose the copies in covers that carry,
clearly and legibly, all these Cover Texts: Front-Cover Texts on the front
cover, and Back-Cover Texts on the back cover. Both covers must also clearly
and legibly identify you as the publisher of these copies. The front cover must
present the full title with all words of the title equally prominent and
visible. You may add other material on the covers in addition. Copying with
changes limited to the covers, as long as they preserve the title of the
Document and satisfy these conditions, can be treated as verbatim copying in
other respects.

If the required texts for either cover are too voluminous to fit legibly, you
should put the first ones listed (as many as fit reasonably) on the actual
cover, and continue the rest onto adjacent pages.

If you publish or distribute Opaque copies of the Document numbering more than
100, you must either include a machine-readable Transparent copy along with
each Opaque copy, or state in or with each Opaque copy a computer-network
location from which the general network-using public has access to download
using public-standard network protocols a complete Transparent copy of the
Document, free of added material. If you use the latter option, you must take
reasonably prudent steps, when you begin distribution of Opaque copies in
quantity, to ensure that this Transparent copy will remain thus accessible at
the stated location until at least one year after the last time you distribute
an Opaque copy (directly or through your agents or retailers) of that edition
to the public.

It is requested, but not required, that you contact the authors of the Document
well before redistributing any large number of copies, to give them a chance to
provide you with an updated version of the Document.

=== 4. MODIFICATIONS

You may copy and distribute a Modified Version of the Document under the
conditions of sections 2 and 3 above, provided that you release the Modified
Version under precisely this License, with the Modified Version filling the
role of the Document, thus licensing distribution and modification of the
Modified Version to whoever possesses a copy of it. In addition, you must do
these things in the Modified Version:

A. Use in the Title Page (and on the covers, if any) a title distinct from that
of the Document, and from those of previous versions (which should, if there
were any, be listed in the History section of the Document). You may use the
same title as a previous version if the original publisher of that version
gives permission.

B. List on the Title Page, as authors, one or more persons or entities
responsible for authorship of the modifications in the Modified Version,
together with at least five of the principal authors of the Document (all of
its principal authors, if it has fewer than five), unless they release you from
this requirement.

C. State on the Title page the name of the publisher of the Modified Version,
as the publisher.

D. Preserve all the copyright notices of the Document.

E. Add an appropriate copyright notice for your modifications adjacent to the
other copyright notices.

F. Include, immediately after the copyright notices, a license notice giving
the public permission to use the Modified Version under the terms of this
License, in the form shown in the Addendum below.

G. Preserve in that license notice the full lists of Invariant Sections and
required Cover Texts given in the Document's license notice.

H. Include an unaltered copy of this License.

I. Preserve the section Entitled "History", Preserve its Title, and add to it
an item stating at least the title, year, new authors, and publisher of the
Modified Version as given on the Title Page. If there is no section Entitled
"History" in the Document, create one stating the title, year, authors, and
publisher of the Document as given on its Title Page, then add an item
describing the Modified Version as stated in the previous sentence.

J. Preserve the network location, if any, given in the Document for public
access to a Transparent copy of the Document, and likewise the network
locations given in the Document for previous versions it was based on. These
may be placed in the "History" section. You may omit a network location for a
work that was published at least four years before the Document itself, or if
the original publisher of the version it refers to gives permission.

K. For any section Entitled "Acknowledgements" or "Dedications", Preserve the
Title of the section, and preserve in the section all the substance and tone of
each of the contributor acknowledgements and/or dedications given therein.

L. Preserve all the Invariant Sections of the Document, unaltered in their text
and in their titles. Section numbers or the equivalent are not considered part
of the section titles.

M. Delete any section Entitled "Endorsements". Such a section may not be
included in the Modified Version.

N. Do not retitle any existing section to be Entitled "Endorsements" or to
conflict in title with any Invariant Section.

O. Preserve any Warranty Disclaimers.

If the Modified Version includes new front-matter sections or appendices that
qualify as Secondary Sections and contain no material copied from the Document,
you may at your option designate some or all of these sections as invariant. To
do this, add their titles to the list of Invariant Sections in the Modified
Version's license notice. These titles must be distinct from any other section
titles.

You may add a section Entitled "Endorsements", provided it contains nothing but
endorsements of your Modified Version by various parties—for example,
statements of peer review or that the text has been approved by an organization
as the authoritative definition of a standard.

You may add a passage of up to five words as a Front-Cover Text, and a passage
of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts
in the Modified Version. Only one passage of Front-Cover Text and one of
Back-Cover Text may be added by (or through arrangements made by) any one
entity. If the Document already includes a cover text for the same cover,
previously added by you or by arrangement made by the same entity you are
acting on behalf of, you may not add another; but you may replace the old one,
on explicit permission from the previous publisher that added the old one.

The author(s) and publisher(s) of the Document do not by this License give
permission to use their names for publicity for or to assert or imply
endorsement of any Modified Version.

=== 5. COMBINING DOCUMENTS

You may combine the Document with other documents released under this License,
under the terms defined in section 4 above for modified versions, provided that
you include in the combination all of the Invariant Sections of all of the
original documents, unmodified, and list them all as Invariant Sections of your
combined work in its license notice, and that you preserve all their Warranty
Disclaimers.

The combined work need only contain one copy of this License, and multiple
identical Invariant Sections may be replaced with a single copy. If there are
multiple Invariant Sections with the same name but different contents, make the
title of each such section unique by adding at the end of it, in parentheses,
the name of the original author or publisher of that section if known, or else
a unique number. Make the same adjustment to the section titles in the list of
Invariant Sections in the license notice of the combined work.

In the combination, you must combine any sections Entitled "History" in the
various original documents, forming one section Entitled "History"; likewise
combine any sections Entitled "Acknowledgements", and any sections Entitled
"Dedications". You must delete all sections Entitled "Endorsements".

=== 6. COLLECTIONS OF DOCUMENTS

You may make a collection consisting of the Document and other documents
released under this License, and replace the individual copies of this License
in the various documents with a single copy that is included in the collection,
provided that you follow the rules of this License for verbatim copying of each
of the documents in all other respects.

You may extract a single document from such a collection, and distribute it
individually under this License, provided you insert a copy of this License
into the extracted document, and follow this License in all other respects
regarding verbatim copying of that document.

=== 7. AGGREGATION WITH INDEPENDENT WORKS

A compilation of the Document or its derivatives with other separate and
independent documents or works, in or on a volume of a storage or distribution
medium, is called an "aggregate" if the copyright resulting from the
compilation is not used to limit the legal rights of the compilation's users
beyond what the individual works permit. When the Document is included in an
aggregate, this License does not apply to the other works in the aggregate
which are not themselves derivative works of the Document.

If the Cover Text requirement of section 3 is applicable to these copies of the
Document, then if the Document is less than one half of the entire aggregate,
the Document's Cover Texts may be placed on covers that bracket the Document
within the aggregate, or the electronic equivalent of covers if the Document is
in electronic form. Otherwise they must appear on printed covers that bracket
the whole aggregate.

=== 8. TRANSLATION

Translation is considered a kind of modification, so you may distribute
translations of the Document under the terms of section 4. Replacing Invariant
Sections with translations requires special permission from their copyright
holders, but you may include translations of some or all Invariant Sections in
addition to the original versions of these Invariant Sections. You may include
a translation of this License, and all the license notices in the Document, and
any Warranty Disclaimers, provided that you also include the original English
version of this License and the original versions of those notices and
disclaimers. In case of a disagreement between the translation and the original
version of this License or a notice or disclaimer, the original version will
prevail.

If a section in the Document is Entitled "Acknowledgements", "Dedications", or
"History", the requirement (section 4) to Preserve its Title (section 1) will
typically require changing the actual title.

=== 9. TERMINATION

You may not copy, modify, sublicense, or distribute the Document except as
expressly provided under this License. Any attempt otherwise to copy, modify,
sublicense, or distribute it is void, and will automatically terminate your
rights under this License.

However, if you cease all violation of this License, then your license from a
particular copyright holder is reinstated (a) provisionally, unless and until
the copyright holder explicitly and finally terminates your license, and (b)
permanently, if the copyright holder fails to notify you of the violation by
some reasonable means prior to 60 days after the cessation.

Moreover, your license from a particular copyright holder is reinstated
permanently if the copyright holder notifies you of the violation by some
reasonable means, this is the first time you have received notice of violation
of this License (for any work) from that copyright holder, and you cure the
violation prior to 30 days after your receipt of the notice.

Termination of your rights under this section does not terminate the licenses
of parties who have received copies or rights from you under this License. If
your rights have been terminated and not permanently reinstated, receipt of a
copy of some or all of the same material does not give you any rights to use it.

=== 10. FUTURE REVISIONS OF THIS LICENSE

The Free Software Foundation may publish new, revised versions of the GNU Free
Documentation License from time to time. Such new versions will be similar in
spirit to the present version, but may differ in detail to address new problems
or concerns. See http://www.gnu.org/copyleft/.

Each version of the License is given a distinguishing version number. If the
Document specifies that a particular numbered version of this License "or any
later version" applies to it, you have the option of following the terms and
conditions either of that specified version or of any later version that has
been published (not as a draft) by the Free Software Foundation. If the
Document does not specify a version number of this License, you may choose any
version ever published (not as a draft) by the Free Software Foundation. If the
Document specifies that a proxy can decide which future versions of this
License can be used, that proxy's public statement of acceptance of a version
permanently authorizes you to choose that version for the Document.

=== 11. RELICENSING

"Massive Multiauthor Collaboration Site" (or "MMC Site") means any World Wide
Web server that publishes copyrightable works and also provides prominent
facilities for anybody to edit those works. A public wiki that anybody can edit
is an example of such a server. A "Massive Multiauthor Collaboration" (or
"MMC") contained in the site means any set of copyrightable works thus
published on the MMC site.

"CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0 license
published by Creative Commons Corporation, a not-for-profit corporation with a
principal place of business in San Francisco, California, as well as future
copyleft versions of that license published by that same organization.

"Incorporate" means to publish or republish a Document, in whole or in part, as
part of another Document.

An MMC is "eligible for relicensing" if it is licensed under this License, and
if all works that were first published under this License somewhere other than
this MMC, and subsequently incorporated in whole or in part into the MMC, (1)
had no cover texts or invariant sections, and (2) were thus incorporated prior
to November 1, 2008.

The operator of an MMC Site may republish an MMC contained in the site under
CC-BY-SA on the same site at any time before August 1, 2009, provided the MMC
is eligible for relicensing.



================================================
FILE: dpkg/changelog.in
================================================
libfsrefs (@VERSION@-1) unstable; urgency=low

  * Auto-generated

 -- Joachim Metz <joachim.metz@gmail.com>  @DPKG_DATE@


================================================
FILE: dpkg/compat
================================================
10


================================================
FILE: dpkg/control
================================================
Source: libfsrefs
Priority: extra
Maintainer: Joachim Metz <joachim.metz@gmail.com>
Build-Depends: debhelper (>= 9), dh-autoreconf, pkg-config
Standards-Version: 4.1.4
Section: libs
Homepage: https://github.com/libyal/libfsrefs
Vcs-Git: https://github.com/libyal/libfsrefs.git

Package: libfsrefs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Conflicts: libfsrefs1
Replaces: libfsrefs1
Suggests: libfsrefs-dbg
Description: Library to access the Resiliant File System (ReFS) format
 libfsrefs is a library to access the Resiliant File System (ReFS) format.

Package: libfsrefs-dbg
Architecture: any
Section: debug
Depends: libfsrefs (= ${binary:Version}), ${misc:Depends}
Description: Debugging symbols for libfsrefs
 Debugging symbols for libfsrefs.

Package: libfsrefs-dev
Section: libdevel
Architecture: any
Depends: libfsrefs (= ${binary:Version}), ${misc:Depends}
Description: Header files and libraries for developing applications for libfsrefs
 Header files and libraries for developing applications for libfsrefs.

Package: libfsrefs-tools
Section: utils
Architecture: any
Depends: libfsrefs (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
Conflicts: libfsrefs-utils
Replaces: libfsrefs-utils
Description: Several tools for reading Resiliant File System (ReFS) volumes
 Several tools for reading Resiliant File System (ReFS) volumes.

Package: libfsrefs-tools-dbg
Section: debug
Architecture: any
Depends: libfsrefs-tools (= ${binary:Version}), ${misc:Depends}
Description: Debugging symbols for libfsrefs-tools
 Debugging symbols for libfsrefs-tools.



================================================
FILE: dpkg/copyright
================================================
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: libfsrefs
Source: https://github.com/libyal/libfsrefs

Files: *
Copyright: 2012-2025, Joachim Metz <joachim.metz@gmail.com>
License: LGPL-3.0+

License: LGPL-3.0+
 This package is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 3 of the License, or (at your option) any later version.
 .
 This package is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 Lesser General Public License for more details.
 .
 You should have received a copy of the GNU General Public License
 along with this program. If not, see <http://www.gnu.org/licenses/>.
 .
 On Debian systems, the complete text of the GNU Lesser General
 Public License can be found in "/usr/share/common-licenses/LGPL-3".



================================================
FILE: dpkg/libfsrefs-dev.install
================================================
usr/include/*
usr/lib/*-*/lib*.a
usr/lib/*-*/lib*.so
usr/lib/*-*/pkgconfig/*
usr/share/man/man3


================================================
FILE: dpkg/libfsrefs-tools.install
================================================
usr/bin
usr/share/man/man1


================================================
FILE: dpkg/libfsrefs.install
================================================
usr/lib/*-*/lib*.so.*


================================================
FILE: dpkg/rules
================================================
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment for debhelper verbose output.
# export DH_VERBOSE=1

%:
	dh $@ --buildsystem=autoconf --with=autoreconf

.PHONY: override_dh_auto_configure
override_dh_auto_configure:
	dh_auto_configure -- CFLAGS="-g"

.PHONY: override_dh_install
override_dh_install:
	dh_install --fail-missing -X.la

.PHONY: override_dh_strip
override_dh_strip:
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
	dh_strip -plibfsrefs --dbg-package=libfsrefs-dbg
	dh_strip -plibfsrefs-tools --dbg-package=libfsrefs-tools-dbg
endif



================================================
FILE: dpkg/source/format
================================================
3.0 (quilt)


================================================
FILE: fsrefstools/Makefile.am
================================================
AM_CPPFLAGS = \
	-I../include -I$(top_srcdir)/include \
	-I../common -I$(top_srcdir)/common \
	@LIBCERROR_CPPFLAGS@ \
	@LIBCDATA_CPPFLAGS@ \
	@LIBCLOCALE_CPPFLAGS@ \
	@LIBCNOTIFY_CPPFLAGS@ \
	@LIBCSPLIT_CPPFLAGS@ \
	@LIBUNA_CPPFLAGS@ \
	@LIBCFILE_CPPFLAGS@ \
	@LIBCPATH_CPPFLAGS@ \
	@LIBBFIO_CPPFLAGS@ \
	@LIBFCACHE_CPPFLAGS@ \
	@LIBFDATA_CPPFLAGS@ \
	@LIBFDATETIME_CPPFLAGS@ \
	@LIBFGUID_CPPFLAGS@ \
	@LIBFWNT_CPPFLAGS@ \
	@LIBFSREFS_DLL_IMPORT@

AM_LDFLAGS = @STATIC_LDFLAGS@

bin_PROGRAMS = \
	fsrefsinfo

fsrefsinfo_SOURCES = \
	fsrefsinfo.c \
	fsrefstools_getopt.c fsrefstools_getopt.h \
	fsrefstools_i18n.h \
	fsrefstools_libbfio.h \
	fsrefstools_libcerror.h \
	fsrefstools_libclocale.h \
	fsrefstools_libcnotify.h \
	fsrefstools_libfcache.h \
	fsrefstools_libfdata.h \
	fsrefstools_libfdatetime.h \
	fsrefstools_libfguid.h \
	fsrefstools_libfsrefs.h \
	fsrefstools_libfwnt.h \
	fsrefstools_libuna.h \
	fsrefstools_output.c fsrefstools_output.h \
	fsrefstools_signal.c fsrefstools_signal.h \
	fsrefstools_unused.h \
	info_handle.c info_handle.h

fsrefsinfo_LDADD = \
	@LIBBFIO_LIBADD@ \
	@LIBCPATH_LIBADD@ \
	@LIBCFILE_LIBADD@ \
	@LIBUNA_LIBADD@ \
	@LIBCSPLIT_LIBADD@ \
	@LIBCNOTIFY_LIBADD@ \
	@LIBCLOCALE_LIBADD@ \
	@LIBCDATA_LIBADD@ \
	../libfsrefs/libfsrefs.la \
	@LIBCERROR_LIBADD@ \
	@LIBINTL@

DISTCLEANFILES = \
	Makefile \
	Makefile.in

splint-local:
	@echo "Running splint on fsrefsinfo ..."
	-splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(fsrefsinfo_SOURCES)



================================================
FILE: fsrefstools/fsrefsinfo.c
================================================
/*
 * Shows information obtained from a Resiliant File System (ReFS) volume.
 *
 * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>
 *
 * Refer to AUTHORS for acknowledgements.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

#include <common.h>
#include <file_stream.h>
#include <memory.h>
#include <system_string.h>
#include <types.h>

#include <stdio.h>

#if defined( HAVE_IO_H ) || defined( WINAPI )
#include <io.h>
#endif

#if defined( HAVE_STDLIB_H ) || defined( WINAPI )
#include <stdlib.h>
#endif

#if defined( HAVE_UNISTD_H )
#include <unistd.h>
#endif

#include "fsrefstools_getopt.h"
#include "fsrefstools_libcerror.h"
#include "fsrefstools_libclocale.h"
#include "fsrefstools_libcnotify.h"
#include "fsrefstools_libfsrefs.h"
#include "fsrefstools_output.h"
#include "fsrefstools_signal.h"
#include "fsrefstools_unused.h"
#include "info_handle.h"

enum FSREFSINFO_MODES
{
	FSREFSINFO_MODE_FILE_ENTRY,
	FSREFSINFO_MODE_FILE_SYSTEM_HIERARCHY,
	FSREFSINFO_MODE_USN_CHANGE_JOURNAL,
	FSREFSINFO_MODE_VOLUME
};

info_handle_t *fsrefsinfo_info_handle = NULL;
int fsrefsinfo_abort                  = 0;

/* Prints usage information
 */
void usage_fprint(
      FILE *stream )
{
	if( stream == NULL )
	{
		return;
	}
	fprintf( stream, "Use fsrefsinfo to determine information about a Resiliant\n"
	                 " File System (ReFS).\n\n" );

	fprintf( stream, "Usage: fsrefsinfo [ -o offset ] [ -hHvV ] source\n\n" );

	fprintf( stream, "\tsource: the source file or device\n\n" );

	fprintf( stream, "\t-h:     shows this help\n" );
	fprintf( stream, "\t-H:     shows the file system hierarchy\n" );
	fprintf( stream, "\t-o:     specify the volume offset\n" );
	fprintf( stream, "\t-v:     verbose output to stderr\n" );
	fprintf( stream, "\t-V:     print version\n" );
}

/* Signal handler for fsrefsinfo
 */
void fsrefsinfo_signal_handler(
      fsrefstools_signal_t signal FSREFSTOOLS_ATTRIBUTE_UNUSED )
{
	libcerror_error_t *error = NULL;
	static char *function    = "fsrefsinfo_signal_handler";

	FSREFSTOOLS_UNREFERENCED_PARAMETER( signal )

	fsrefsinfo_abort = 1;

	if( fsrefsinfo_info_handle != NULL )
	{
		if( info_handle_signal_abort(
		     fsrefsinfo_info_handle,
		     &error ) != 1 )
		{
			libcnotify_printf(
			 "%s: unable to signal info handle to abort.\n",
			 function );

			libcnotify_print_error_backtrace(
			 error 
Download .txt
gitextract_vkfx4bi5/

├── .codecov.yml
├── .github/
│   └── workflows/
│       ├── build.yml
│       ├── build_freebsd.yml
│       ├── build_macos.yml
│       ├── build_ossfuzz.yml
│       └── build_shared.yml
├── .gitignore
├── AUTHORS
├── COPYING
├── COPYING.LESSER
├── ChangeLog
├── Makefile.am
├── NEWS
├── README
├── acinclude.m4
├── appveyor.yml
├── autogen.ps1
├── autogen.sh
├── build.ps1
├── common/
│   ├── Makefile.am
│   ├── byte_stream.h
│   ├── common.h
│   ├── config_borlandc.h
│   ├── config_msc.h
│   ├── config_winapi.h
│   ├── file_stream.h
│   ├── memory.h
│   ├── narrow_string.h
│   ├── system_string.h
│   ├── types.h.in
│   └── wide_string.h
├── configure.ac
├── documentation/
│   └── Resilient File System (ReFS).asciidoc
├── dpkg/
│   ├── changelog.in
│   ├── compat
│   ├── control
│   ├── copyright
│   ├── libfsrefs-dev.install
│   ├── libfsrefs-tools.install
│   ├── libfsrefs.install
│   ├── rules
│   └── source/
│       └── format
├── fsrefstools/
│   ├── Makefile.am
│   ├── fsrefsinfo.c
│   ├── fsrefstools_getopt.c
│   ├── fsrefstools_getopt.h
│   ├── fsrefstools_i18n.h
│   ├── fsrefstools_libbfio.h
│   ├── fsrefstools_libcerror.h
│   ├── fsrefstools_libclocale.h
│   ├── fsrefstools_libcnotify.h
│   ├── fsrefstools_libfcache.h
│   ├── fsrefstools_libfdata.h
│   ├── fsrefstools_libfdatetime.h
│   ├── fsrefstools_libfguid.h
│   ├── fsrefstools_libfsrefs.h
│   ├── fsrefstools_libfwnt.h
│   ├── fsrefstools_libuna.h
│   ├── fsrefstools_output.c
│   ├── fsrefstools_output.h
│   ├── fsrefstools_signal.c
│   ├── fsrefstools_signal.h
│   ├── fsrefstools_unused.h
│   ├── info_handle.c
│   └── info_handle.h
├── include/
│   ├── Makefile.am
│   ├── libfsrefs/
│   │   ├── codepage.h
│   │   ├── definitions.h.in
│   │   ├── error.h
│   │   ├── extern.h
│   │   ├── features.h.in
│   │   └── types.h.in
│   └── libfsrefs.h.in
├── libfsrefs/
│   ├── Makefile.am
│   ├── fsrefs_checkpoint.h
│   ├── fsrefs_directory_object.h
│   ├── fsrefs_metadata_block.h
│   ├── fsrefs_ministore_tree.h
│   ├── fsrefs_superblock.h
│   ├── fsrefs_volume_header.h
│   ├── libfsrefs.c
│   ├── libfsrefs.rc.in
│   ├── libfsrefs_attribute_values.c
│   ├── libfsrefs_attribute_values.h
│   ├── libfsrefs_block_descriptor.c
│   ├── libfsrefs_block_descriptor.h
│   ├── libfsrefs_block_reference.c
│   ├── libfsrefs_block_reference.h
│   ├── libfsrefs_block_tree.c
│   ├── libfsrefs_block_tree.h
│   ├── libfsrefs_block_tree_node.c
│   ├── libfsrefs_block_tree_node.h
│   ├── libfsrefs_checkpoint.c
│   ├── libfsrefs_checkpoint.h
│   ├── libfsrefs_data_run.c
│   ├── libfsrefs_data_run.h
│   ├── libfsrefs_debug.c
│   ├── libfsrefs_debug.h
│   ├── libfsrefs_definitions.h.in
│   ├── libfsrefs_directory_entry.c
│   ├── libfsrefs_directory_entry.h
│   ├── libfsrefs_directory_object.c
│   ├── libfsrefs_directory_object.h
│   ├── libfsrefs_error.c
│   ├── libfsrefs_error.h
│   ├── libfsrefs_extern.h
│   ├── libfsrefs_file_entry.c
│   ├── libfsrefs_file_entry.h
│   ├── libfsrefs_file_system.c
│   ├── libfsrefs_file_system.h
│   ├── libfsrefs_io_handle.c
│   ├── libfsrefs_io_handle.h
│   ├── libfsrefs_libbfio.h
│   ├── libfsrefs_libcdata.h
│   ├── libfsrefs_libcerror.h
│   ├── libfsrefs_libclocale.h
│   ├── libfsrefs_libcnotify.h
│   ├── libfsrefs_libcthreads.h
│   ├── libfsrefs_libfcache.h
│   ├── libfsrefs_libfdata.h
│   ├── libfsrefs_libfdatetime.h
│   ├── libfsrefs_libfguid.h
│   ├── libfsrefs_libfwnt.h
│   ├── libfsrefs_libuna.h
│   ├── libfsrefs_metadata_block_header.c
│   ├── libfsrefs_metadata_block_header.h
│   ├── libfsrefs_ministore_node.c
│   ├── libfsrefs_ministore_node.h
│   ├── libfsrefs_node_header.c
│   ├── libfsrefs_node_header.h
│   ├── libfsrefs_node_record.c
│   ├── libfsrefs_node_record.h
│   ├── libfsrefs_notify.c
│   ├── libfsrefs_notify.h
│   ├── libfsrefs_objects_tree.c
│   ├── libfsrefs_objects_tree.h
│   ├── libfsrefs_superblock.c
│   ├── libfsrefs_superblock.h
│   ├── libfsrefs_support.c
│   ├── libfsrefs_support.h
│   ├── libfsrefs_tree_header.c
│   ├── libfsrefs_tree_header.h
│   ├── libfsrefs_types.h
│   ├── libfsrefs_unused.h
│   ├── libfsrefs_volume.c
│   ├── libfsrefs_volume.h
│   ├── libfsrefs_volume_header.c
│   └── libfsrefs_volume_header.h
├── libfsrefs.ini
├── libfsrefs.pc.in
├── libfsrefs.spec.in
├── m4/
│   ├── common.m4
│   ├── libbfio.m4
│   ├── libcdata.m4
│   ├── libcerror.m4
│   ├── libcfile.m4
│   ├── libclocale.m4
│   ├── libcnotify.m4
│   ├── libcpath.m4
│   ├── libcsplit.m4
│   ├── libcthreads.m4
│   ├── libfcache.m4
│   ├── libfdata.m4
│   ├── libfdatetime.m4
│   ├── libfguid.m4
│   ├── libfusn.m4
│   ├── libfwnt.m4
│   ├── libuna.m4
│   ├── pthread.m4
│   ├── tests.m4
│   └── types.m4
├── manuals/
│   ├── Makefile.am
│   ├── fsrefsinfo.1
│   └── libfsrefs.3
├── msvscpp/
│   ├── Makefile.am
│   ├── fsrefs_test_attribute_values/
│   │   └── fsrefs_test_attribute_values.vcproj
│   ├── fsrefs_test_block_descriptor/
│   │   └── fsrefs_test_block_descriptor.vcproj
│   ├── fsrefs_test_block_reference/
│   │   └── fsrefs_test_block_reference.vcproj
│   ├── fsrefs_test_block_tree/
│   │   └── fsrefs_test_block_tree.vcproj
│   ├── fsrefs_test_block_tree_node/
│   │   └── fsrefs_test_block_tree_node.vcproj
│   ├── fsrefs_test_checkpoint/
│   │   └── fsrefs_test_checkpoint.vcproj
│   ├── fsrefs_test_data_run/
│   │   └── fsrefs_test_data_run.vcproj
│   ├── fsrefs_test_directory_entry/
│   │   └── fsrefs_test_directory_entry.vcproj
│   ├── fsrefs_test_directory_object/
│   │   └── fsrefs_test_directory_object.vcproj
│   ├── fsrefs_test_error/
│   │   └── fsrefs_test_error.vcproj
│   ├── fsrefs_test_file_entry/
│   │   └── fsrefs_test_file_entry.vcproj
│   ├── fsrefs_test_file_system/
│   │   └── fsrefs_test_file_system.vcproj
│   ├── fsrefs_test_io_handle/
│   │   └── fsrefs_test_io_handle.vcproj
│   ├── fsrefs_test_metadata_block_header/
│   │   └── fsrefs_test_metadata_block_header.vcproj
│   ├── fsrefs_test_ministore_node/
│   │   └── fsrefs_test_ministore_node.vcproj
│   ├── fsrefs_test_node_header/
│   │   └── fsrefs_test_node_header.vcproj
│   ├── fsrefs_test_node_record/
│   │   └── fsrefs_test_node_record.vcproj
│   ├── fsrefs_test_notify/
│   │   └── fsrefs_test_notify.vcproj
│   ├── fsrefs_test_objects_tree/
│   │   └── fsrefs_test_objects_tree.vcproj
│   ├── fsrefs_test_superblock/
│   │   └── fsrefs_test_superblock.vcproj
│   ├── fsrefs_test_support/
│   │   └── fsrefs_test_support.vcproj
│   ├── fsrefs_test_tools_info_handle/
│   │   └── fsrefs_test_tools_info_handle.vcproj
│   ├── fsrefs_test_tools_output/
│   │   └── fsrefs_test_tools_output.vcproj
│   ├── fsrefs_test_tools_signal/
│   │   └── fsrefs_test_tools_signal.vcproj
│   ├── fsrefs_test_tree_header/
│   │   └── fsrefs_test_tree_header.vcproj
│   ├── fsrefs_test_volume/
│   │   └── fsrefs_test_volume.vcproj
│   ├── fsrefs_test_volume_header/
│   │   └── fsrefs_test_volume_header.vcproj
│   ├── fsrefsinfo/
│   │   └── fsrefsinfo.vcproj
│   ├── libbfio/
│   │   └── libbfio.vcproj
│   ├── libcdata/
│   │   └── libcdata.vcproj
│   ├── libcerror/
│   │   └── libcerror.vcproj
│   ├── libcfile/
│   │   └── libcfile.vcproj
│   ├── libclocale/
│   │   └── libclocale.vcproj
│   ├── libcnotify/
│   │   └── libcnotify.vcproj
│   ├── libcpath/
│   │   └── libcpath.vcproj
│   ├── libcsplit/
│   │   └── libcsplit.vcproj
│   ├── libcthreads/
│   │   └── libcthreads.vcproj
│   ├── libfcache/
│   │   └── libfcache.vcproj
│   ├── libfdata/
│   │   └── libfdata.vcproj
│   ├── libfdatetime/
│   │   └── libfdatetime.vcproj
│   ├── libfguid/
│   │   └── libfguid.vcproj
│   ├── libfsrefs/
│   │   └── libfsrefs.vcproj
│   ├── libfsrefs.sln
│   ├── libfusn/
│   │   └── libfusn.vcproj
│   ├── libfwnt/
│   │   └── libfwnt.vcproj
│   └── libuna/
│       └── libuna.vcproj
├── ossfuzz/
│   ├── Makefile.am
│   ├── ossfuzz_libbfio.h
│   ├── ossfuzz_libfsrefs.h
│   └── volume_fuzzer.cc
├── po/
│   ├── ChangeLog
│   ├── Makevars.in
│   └── POTFILES.in
├── runtests.ps1
├── runtests.sh
├── synclibs.ps1
├── synclibs.sh
└── tests/
    ├── Makefile.am
    ├── build.sh
    ├── data/
    │   ├── block_descriptor.1
    │   ├── block_descriptor.2
    │   ├── checkpoint.1
    │   ├── checkpoint.2
    │   ├── data_run.1
    │   ├── node_header.1
    │   ├── node_record.1
    │   ├── superblock.1
    │   ├── superblock.2
    │   ├── tree_header.1
    │   └── volume_header.1
    ├── fsrefs_test_attribute_values.c
    ├── fsrefs_test_block_descriptor.c
    ├── fsrefs_test_block_reference.c
    ├── fsrefs_test_block_tree.c
    ├── fsrefs_test_block_tree_node.c
    ├── fsrefs_test_checkpoint.c
    ├── fsrefs_test_data_run.c
    ├── fsrefs_test_directory_entry.c
    ├── fsrefs_test_directory_object.c
    ├── fsrefs_test_error.c
    ├── fsrefs_test_file_entry.c
    ├── fsrefs_test_file_system.c
    ├── fsrefs_test_functions.c
    ├── fsrefs_test_functions.h
    ├── fsrefs_test_getopt.c
    ├── fsrefs_test_getopt.h
    ├── fsrefs_test_io_handle.c
    ├── fsrefs_test_libbfio.h
    ├── fsrefs_test_libcerror.h
    ├── fsrefs_test_libclocale.h
    ├── fsrefs_test_libcnotify.h
    ├── fsrefs_test_libfsrefs.h
    ├── fsrefs_test_libuna.h
    ├── fsrefs_test_macros.h
    ├── fsrefs_test_memory.c
    ├── fsrefs_test_memory.h
    ├── fsrefs_test_metadata_block_header.c
    ├── fsrefs_test_ministore_node.c
    ├── fsrefs_test_ministore_tree.c
    ├── fsrefs_test_node_header.c
    ├── fsrefs_test_node_record.c
    ├── fsrefs_test_notify.c
    ├── fsrefs_test_objects_tree.c
    ├── fsrefs_test_superblock.c
    ├── fsrefs_test_support.c
    ├── fsrefs_test_tools_info_handle.c
    ├── fsrefs_test_tools_output.c
    ├── fsrefs_test_tools_signal.c
    ├── fsrefs_test_tree_header.c
    ├── fsrefs_test_unused.h
    ├── fsrefs_test_volume.c
    ├── fsrefs_test_volume_header.c
    ├── lsan.suppressions
    ├── pkgbuild.sh
    ├── runtests.sh
    ├── syncsharedlibs.sh
    ├── test_fsrefsinfo.ps1
    ├── test_fsrefsinfo.sh
    ├── test_library.ps1
    ├── test_library.sh
    ├── test_manpage.sh
    ├── test_runner.sh
    ├── test_tools.ps1
    └── test_tools.sh
Download .txt
SYMBOL INDEX (414 symbols across 95 files)

FILE: common/byte_stream.h
  type byte_stream_float32_t (line 40) | typedef union byte_stream_float32
  type byte_stream_float64_t (line 47) | typedef union byte_stream_float64

FILE: fsrefstools/fsrefsinfo.c
  type FSREFSINFO_MODES (line 52) | enum FSREFSINFO_MODES
  function usage_fprint (line 65) | void usage_fprint(
  function fsrefsinfo_signal_handler (line 88) | void fsrefsinfo_signal_handler(
  function main (line 135) | int main( int argc, char * const argv[] )

FILE: fsrefstools/fsrefstools_getopt.c
  function system_integer_t (line 59) | system_integer_t fsrefstools_getopt(

FILE: fsrefstools/fsrefstools_output.c
  function fsrefstools_output_initialize (line 44) | int fsrefstools_output_initialize(
  function fsrefstools_output_copyright_fprint (line 101) | void fsrefstools_output_copyright_fprint(
  function fsrefstools_output_version_fprint (line 133) | void fsrefstools_output_version_fprint(
  function fsrefstools_output_version_detailed_fprint (line 154) | void fsrefstools_output_version_detailed_fprint(

FILE: fsrefstools/fsrefstools_signal.c
  function BOOL (line 42) | BOOL WINAPI fsrefstools_signal_handler(
  function fsrefstools_signal_initialize_memory_debug (line 70) | void fsrefstools_signal_initialize_memory_debug(
  function fsrefstools_signal_attach (line 95) | int fsrefstools_signal_attach(
  function fsrefstools_signal_detach (line 176) | int fsrefstools_signal_detach(
  function fsrefstools_signal_attach (line 204) | int fsrefstools_signal_attach(
  function fsrefstools_signal_detach (line 240) | int fsrefstools_signal_detach(

FILE: fsrefstools/fsrefstools_signal.h
  type fsrefstools_signal_t (line 39) | typedef unsigned long fsrefstools_signal_t;
  type fsrefstools_signal_t (line 42) | typedef int fsrefstools_signal_t;

FILE: fsrefstools/info_handle.c
  function fsrefstools_system_string_copy_from_64_bit_in_decimal (line 53) | int fsrefstools_system_string_copy_from_64_bit_in_decimal(
  function info_handle_initialize (line 164) | int info_handle_initialize(
  function info_handle_free (line 272) | int info_handle_free(
  function info_handle_signal_abort (line 329) | int info_handle_signal_abort(
  function info_handle_set_bodyfile (line 370) | int info_handle_set_bodyfile(
  function info_handle_set_volume_offset (line 436) | int info_handle_set_volume_offset(
  function info_handle_open_input (line 482) | int info_handle_open_input(
  function info_handle_close_input (line 563) | int info_handle_close_input(
  function info_handle_name_value_fprint (line 599) | int info_handle_name_value_fprint(
  function info_handle_file_entry_fprint (line 837) | int info_handle_file_entry_fprint(
  function info_handle_file_system_hierarchy_fprint_file_entry (line 924) | int info_handle_file_system_hierarchy_fprint_file_entry(
  function info_handle_file_system_hierarchy_fprint (line 1211) | int info_handle_file_system_hierarchy_fprint(
  function info_handle_volume_fprint (line 1302) | int info_handle_volume_fprint(

FILE: fsrefstools/info_handle.h
  type info_handle_t (line 37) | typedef struct info_handle info_handle_t;
  type info_handle (line 39) | struct info_handle

FILE: include/libfsrefs/codepage.h
  type LIBFSREFS_CODEPAGES (line 33) | enum LIBFSREFS_CODEPAGES

FILE: include/libfsrefs/error.h
  type libfsrefs_error_t (line 29) | typedef intptr_t libfsrefs_error_t;
  type LIBFSREFS_ERROR_DOMAINS (line 33) | enum LIBFSREFS_ERROR_DOMAINS
  type LIBFSREFS_ARGUMENT_ERROR (line 48) | enum LIBFSREFS_ARGUMENT_ERROR
  type LIBFSREFS_CONVERSION_ERROR (line 93) | enum LIBFSREFS_CONVERSION_ERROR
  type LIBFSREFS_COMPRESSION_ERROR (line 109) | enum LIBFSREFS_COMPRESSION_ERROR
  type LIBFSREFS_IO_ERROR (line 125) | enum LIBFSREFS_IO_ERROR
  type LIBFSREFS_INPUT_ERROR (line 169) | enum LIBFSREFS_INPUT_ERROR
  type LIBFSREFS_MEMORY_ERROR (line 194) | enum LIBFSREFS_MEMORY_ERROR
  type LIBFSREFS_OUTPUT_ERROR (line 213) | enum LIBFSREFS_OUTPUT_ERROR
  type LIBFSREFS_RUNTIME_ERROR (line 225) | enum LIBFSREFS_RUNTIME_ERROR

FILE: libfsrefs/fsrefs_checkpoint.h
  type fsrefs_checkpoint_header_t (line 32) | typedef struct fsrefs_checkpoint_header fsrefs_checkpoint_header_t;
  type fsrefs_checkpoint_header (line 34) | struct fsrefs_checkpoint_header
  type fsrefs_checkpoint_trailer_v1_t (line 62) | typedef struct fsrefs_checkpoint_trailer_v1 fsrefs_checkpoint_trailer_v1_t;
  type fsrefs_checkpoint_trailer_v1 (line 64) | struct fsrefs_checkpoint_trailer_v1
  type fsrefs_checkpoint_trailer_v3_t (line 92) | typedef struct fsrefs_checkpoint_trailer_v3 fsrefs_checkpoint_trailer_v3_t;
  type fsrefs_checkpoint_trailer_v3 (line 94) | struct fsrefs_checkpoint_trailer_v3

FILE: libfsrefs/fsrefs_directory_object.h
  type fsrefs_attribute_non_resident_t (line 32) | typedef struct fsrefs_attribute_non_resident fsrefs_attribute_non_reside...
  type fsrefs_attribute_non_resident (line 34) | struct fsrefs_attribute_non_resident
  type fsrefs_attribute_resident_t (line 67) | typedef struct fsrefs_attribute_resident fsrefs_attribute_resident_t;
  type fsrefs_attribute_resident (line 69) | struct fsrefs_attribute_resident
  type fsrefs_data_run_t (line 122) | typedef struct fsrefs_data_run fsrefs_data_run_t;
  type fsrefs_data_run (line 124) | struct fsrefs_data_run
  type fsrefs_directory_values_t (line 147) | typedef struct fsrefs_directory_values fsrefs_directory_values_t;
  type fsrefs_directory_values (line 149) | struct fsrefs_directory_values
  type fsrefs_file_values_t (line 201) | typedef struct fsrefs_file_values fsrefs_file_values_t;
  type fsrefs_file_values (line 203) | struct fsrefs_file_values

FILE: libfsrefs/fsrefs_metadata_block.h
  type fsrefs_metadata_block_header_v1_t (line 32) | typedef struct fsrefs_metadata_block_header_v1 fsrefs_metadata_block_hea...
  type fsrefs_metadata_block_header_v1 (line 34) | struct fsrefs_metadata_block_header_v1
  type fsrefs_metadata_block_header_v3_t (line 62) | typedef struct fsrefs_metadata_block_header_v3 fsrefs_metadata_block_hea...
  type fsrefs_metadata_block_header_v3 (line 64) | struct fsrefs_metadata_block_header_v3
  type fsrefs_metadata_block_reference_v1_t (line 127) | typedef struct fsrefs_metadata_block_reference_v1 fsrefs_metadata_block_...
  type fsrefs_metadata_block_reference_v1 (line 129) | struct fsrefs_metadata_block_reference_v1
  type fsrefs_metadata_block_reference_v3_t (line 162) | typedef struct fsrefs_metadata_block_reference_v3 fsrefs_metadata_block_...
  type fsrefs_metadata_block_reference_v3 (line 164) | struct fsrefs_metadata_block_reference_v3

FILE: libfsrefs/fsrefs_ministore_tree.h
  type fsrefs_ministore_tree_header_t (line 32) | typedef struct fsrefs_ministore_tree_header fsrefs_ministore_tree_header_t;
  type fsrefs_ministore_tree_header (line 34) | struct fsrefs_ministore_tree_header
  type fsrefs_ministore_tree_node_header_t (line 87) | typedef struct fsrefs_ministore_tree_node_header fsrefs_ministore_tree_n...
  type fsrefs_ministore_tree_node_header (line 89) | struct fsrefs_ministore_tree_node_header
  type fsrefs_ministore_tree_node_record_t (line 142) | typedef struct fsrefs_ministore_tree_node_record fsrefs_ministore_tree_n...
  type fsrefs_ministore_tree_node_record (line 144) | struct fsrefs_ministore_tree_node_record

FILE: libfsrefs/fsrefs_superblock.h
  type fsrefs_superblock_t (line 32) | typedef struct fsrefs_superblock fsrefs_superblock_t;
  type fsrefs_superblock (line 34) | struct fsrefs_superblock

FILE: libfsrefs/fsrefs_volume_header.h
  type fsrefs_volume_header_t (line 32) | typedef struct fsrefs_volume_header fsrefs_volume_header_t;
  type fsrefs_volume_header (line 34) | struct fsrefs_volume_header

FILE: libfsrefs/libfsrefs.c
  function BOOL (line 42) | BOOL WINAPI DllMain(
  function libfsrefs_is_dll (line 71) | int libfsrefs_is_dll(

FILE: libfsrefs/libfsrefs_attribute_values.c
  function libfsrefs_attribute_values_initialize (line 44) | int libfsrefs_attribute_values_initialize(
  function libfsrefs_attribute_values_free (line 135) | int libfsrefs_attribute_values_free(
  function libfsrefs_attribute_values_read_non_resident (line 185) | int libfsrefs_attribute_values_read_non_resident(
  function libfsrefs_attribute_values_read_resident (line 453) | int libfsrefs_attribute_values_read_resident(
  function libfsrefs_attribute_values_read_node_record (line 657) | int libfsrefs_attribute_values_read_node_record(
  function libfsrefs_attribute_values_get_utf8_name_size (line 884) | int libfsrefs_attribute_values_get_utf8_name_size(
  function libfsrefs_attribute_values_get_utf8_name (line 925) | int libfsrefs_attribute_values_get_utf8_name(
  function libfsrefs_attribute_values_get_utf16_name_size (line 968) | int libfsrefs_attribute_values_get_utf16_name_size(
  function libfsrefs_attribute_values_get_utf16_name (line 1009) | int libfsrefs_attribute_values_get_utf16_name(

FILE: libfsrefs/libfsrefs_attribute_values.h
  type libfsrefs_attribute_values_t (line 37) | typedef struct libfsrefs_attribute_values libfsrefs_attribute_values_t;
  type libfsrefs_attribute_values (line 39) | struct libfsrefs_attribute_values

FILE: libfsrefs/libfsrefs_block_descriptor.c
  function libfsrefs_block_descriptor_initialize (line 33) | int libfsrefs_block_descriptor_initialize(
  function libfsrefs_block_descriptor_free (line 105) | int libfsrefs_block_descriptor_free(

FILE: libfsrefs/libfsrefs_block_descriptor.h
  type libfsrefs_block_descriptor_t (line 34) | typedef struct libfsrefs_block_descriptor libfsrefs_block_descriptor_t;
  type libfsrefs_block_descriptor (line 36) | struct libfsrefs_block_descriptor

FILE: libfsrefs/libfsrefs_block_reference.c
  function libfsrefs_block_reference_initialize (line 38) | int libfsrefs_block_reference_initialize(
  function libfsrefs_block_reference_free (line 110) | int libfsrefs_block_reference_free(
  function libfsrefs_block_reference_read_data (line 140) | int libfsrefs_block_reference_read_data(

FILE: libfsrefs/libfsrefs_block_reference.h
  type libfsrefs_block_reference_t (line 35) | typedef struct libfsrefs_block_reference libfsrefs_block_reference_t;
  type libfsrefs_block_reference (line 37) | struct libfsrefs_block_reference

FILE: libfsrefs/libfsrefs_block_tree.c
  function libfsrefs_block_tree_initialize (line 39) | int libfsrefs_block_tree_initialize(
  function libfsrefs_block_tree_free (line 136) | int libfsrefs_block_tree_free(
  function libfsrefs_block_tree_get_block_descriptor_by_offset (line 187) | int libfsrefs_block_tree_get_block_descriptor_by_offset(
  function libfsrefs_block_tree_insert_block_descriptor_by_offset (line 289) | int libfsrefs_block_tree_insert_block_descriptor_by_offset(

FILE: libfsrefs/libfsrefs_block_tree.h
  type libfsrefs_block_tree_t (line 36) | typedef struct libfsrefs_block_tree libfsrefs_block_tree_t;
  type libfsrefs_block_tree (line 38) | struct libfsrefs_block_tree

FILE: libfsrefs/libfsrefs_block_tree_node.c
  function libfsrefs_block_tree_node_initialize (line 34) | int libfsrefs_block_tree_node_initialize(
  function libfsrefs_block_tree_node_free (line 178) | int libfsrefs_block_tree_node_free(
  function libfsrefs_block_tree_node_get_sub_node_at_offset (line 284) | int libfsrefs_block_tree_node_get_sub_node_at_offset(
  function libfsrefs_block_tree_node_set_sub_node_at_offset (line 363) | int libfsrefs_block_tree_node_set_sub_node_at_offset(
  function libfsrefs_block_tree_node_get_leaf_value_at_offset (line 442) | int libfsrefs_block_tree_node_get_leaf_value_at_offset(
  function libfsrefs_block_tree_node_set_leaf_value_at_offset (line 538) | int libfsrefs_block_tree_node_set_leaf_value_at_offset(

FILE: libfsrefs/libfsrefs_block_tree_node.h
  type libfsrefs_block_tree_node_t (line 36) | typedef struct libfsrefs_block_tree_node libfsrefs_block_tree_node_t;
  type libfsrefs_block_tree_node (line 38) | struct libfsrefs_block_tree_node

FILE: libfsrefs/libfsrefs_checkpoint.c
  function libfsrefs_checkpoint_initialize (line 43) | int libfsrefs_checkpoint_initialize(
  function libfsrefs_checkpoint_free (line 134) | int libfsrefs_checkpoint_free(
  function libfsrefs_checkpoint_read_data (line 179) | int libfsrefs_checkpoint_read_data(
  function libfsrefs_checkpoint_read_file_io_handle (line 715) | int libfsrefs_checkpoint_read_file_io_handle(
  function libfsrefs_checkpoint_get_number_of_ministore_tree_block_references (line 952) | int libfsrefs_checkpoint_get_number_of_ministore_tree_block_references(
  function libfsrefs_checkpoint_get_ministore_tree_block_reference_by_index (line 990) | int libfsrefs_checkpoint_get_ministore_tree_block_reference_by_index(

FILE: libfsrefs/libfsrefs_checkpoint.h
  type libfsrefs_checkpoint_t (line 38) | typedef struct libfsrefs_checkpoint libfsrefs_checkpoint_t;
  type libfsrefs_checkpoint (line 40) | struct libfsrefs_checkpoint

FILE: libfsrefs/libfsrefs_data_run.c
  function libfsrefs_data_run_initialize (line 38) | int libfsrefs_data_run_initialize(
  function libfsrefs_data_run_free (line 110) | int libfsrefs_data_run_free(
  function libfsrefs_data_run_read_data (line 140) | int libfsrefs_data_run_read_data(

FILE: libfsrefs/libfsrefs_data_run.h
  type libfsrefs_data_run_t (line 35) | typedef struct libfsrefs_data_run libfsrefs_data_run_t;
  type libfsrefs_data_run (line 37) | struct libfsrefs_data_run

FILE: libfsrefs/libfsrefs_debug.c
  function libfsrefs_debug_print_file_attribute_flags (line 42) | void libfsrefs_debug_print_file_attribute_flags(
  function libfsrefs_debug_print_node_record_flags (line 137) | void libfsrefs_debug_print_node_record_flags(
  function libfsrefs_debug_print_node_type_flags (line 149) | void libfsrefs_debug_print_node_type_flags(
  function libfsrefs_debug_print_filetime_value (line 172) | int libfsrefs_debug_print_filetime_value(
  function libfsrefs_debug_print_guid_value (line 265) | int libfsrefs_debug_print_guid_value(
  function libfsrefs_debug_print_utf16_string_value (line 358) | int libfsrefs_debug_print_utf16_string_value(
  function libfsrefs_debug_print_read_offsets (line 491) | int libfsrefs_debug_print_read_offsets(

FILE: libfsrefs/libfsrefs_directory_entry.c
  function libfsrefs_directory_entry_initialize (line 44) | int libfsrefs_directory_entry_initialize(
  function libfsrefs_directory_entry_free (line 135) | int libfsrefs_directory_entry_free(
  function libfsrefs_directory_entry_read_directory_values (line 185) | int libfsrefs_directory_entry_read_directory_values(
  function libfsrefs_directory_entry_read_file_values (line 391) | int libfsrefs_directory_entry_read_file_values(
  function libfsrefs_directory_entry_read_node_record (line 805) | int libfsrefs_directory_entry_read_node_record(
  function libfsrefs_directory_entry_get_object_identifier (line 1019) | int libfsrefs_directory_entry_get_object_identifier(
  function libfsrefs_directory_entry_get_utf8_name_size (line 1058) | int libfsrefs_directory_entry_get_utf8_name_size(
  function libfsrefs_directory_entry_get_utf8_name (line 1100) | int libfsrefs_directory_entry_get_utf8_name(
  function libfsrefs_directory_entry_get_utf16_name_size (line 1144) | int libfsrefs_directory_entry_get_utf16_name_size(
  function libfsrefs_directory_entry_get_utf16_name (line 1186) | int libfsrefs_directory_entry_get_utf16_name(
  function libfsrefs_directory_entry_get_creation_time (line 1228) | int libfsrefs_directory_entry_get_creation_time(
  function libfsrefs_directory_entry_get_modification_time (line 1265) | int libfsrefs_directory_entry_get_modification_time(
  function libfsrefs_directory_entry_get_access_time (line 1302) | int libfsrefs_directory_entry_get_access_time(
  function libfsrefs_directory_entry_get_entry_modification_time (line 1339) | int libfsrefs_directory_entry_get_entry_modification_time(
  function libfsrefs_directory_entry_get_file_attribute_flags (line 1376) | int libfsrefs_directory_entry_get_file_attribute_flags(

FILE: libfsrefs/libfsrefs_directory_entry.h
  type libfsrefs_directory_entry_t (line 37) | typedef struct libfsrefs_directory_entry libfsrefs_directory_entry_t;
  type libfsrefs_directory_entry (line 39) | struct libfsrefs_directory_entry

FILE: libfsrefs/libfsrefs_directory_object.c
  function libfsrefs_directory_object_initialize (line 43) | int libfsrefs_directory_object_initialize(
  function libfsrefs_directory_object_free (line 184) | int libfsrefs_directory_object_free(
  function libfsrefs_directory_object_check_if_node_block_first_read (line 262) | int libfsrefs_directory_object_check_if_node_block_first_read(
  function libfsrefs_directory_object_read (line 351) | int libfsrefs_directory_object_read(
  function libfsrefs_directory_object_read_node (line 442) | int libfsrefs_directory_object_read_node(
  function libfsrefs_directory_object_get_number_of_directory_entries (line 784) | int libfsrefs_directory_object_get_number_of_directory_entries(
  function libfsrefs_directory_object_get_directory_entry_by_index (line 833) | int libfsrefs_directory_object_get_directory_entry_by_index(

FILE: libfsrefs/libfsrefs_directory_object.h
  type libfsrefs_directory_object_t (line 40) | typedef struct libfsrefs_directory_object libfsrefs_directory_object_t;
  type libfsrefs_directory_object (line 42) | struct libfsrefs_directory_object

FILE: libfsrefs/libfsrefs_error.c
  function libfsrefs_error_free (line 33) | void libfsrefs_error_free(
  function libfsrefs_error_fprint (line 43) | int libfsrefs_error_fprint(
  function libfsrefs_error_sprint (line 60) | int libfsrefs_error_sprint(
  function libfsrefs_error_backtrace_fprint (line 78) | int libfsrefs_error_backtrace_fprint(
  function libfsrefs_error_backtrace_sprint (line 95) | int libfsrefs_error_backtrace_sprint(

FILE: libfsrefs/libfsrefs_file_entry.c
  function libfsrefs_file_entry_initialize (line 41) | int libfsrefs_file_entry_initialize(
  function libfsrefs_file_entry_free (line 160) | int libfsrefs_file_entry_free(
  function libfsrefs_internal_file_entry_get_directory_object (line 224) | int libfsrefs_internal_file_entry_get_directory_object(
  function libfsrefs_file_entry_get_creation_time (line 329) | int libfsrefs_file_entry_get_creation_time(
  function libfsrefs_file_entry_get_modification_time (line 406) | int libfsrefs_file_entry_get_modification_time(
  function libfsrefs_file_entry_get_access_time (line 483) | int libfsrefs_file_entry_get_access_time(
  function libfsrefs_file_entry_get_entry_modification_time (line 560) | int libfsrefs_file_entry_get_entry_modification_time(
  function libfsrefs_file_entry_get_file_attribute_flags (line 637) | int libfsrefs_file_entry_get_file_attribute_flags(
  function libfsrefs_file_entry_get_utf8_name_size (line 715) | int libfsrefs_file_entry_get_utf8_name_size(
  function libfsrefs_file_entry_get_utf8_name (line 793) | int libfsrefs_file_entry_get_utf8_name(
  function libfsrefs_file_entry_get_utf16_name_size (line 873) | int libfsrefs_file_entry_get_utf16_name_size(
  function libfsrefs_file_entry_get_utf16_name (line 951) | int libfsrefs_file_entry_get_utf16_name(
  function libfsrefs_file_entry_get_number_of_sub_file_entries (line 1030) | int libfsrefs_file_entry_get_number_of_sub_file_entries(
  function libfsrefs_file_entry_get_sub_file_entry_by_index (line 1121) | int libfsrefs_file_entry_get_sub_file_entry_by_index(

FILE: libfsrefs/libfsrefs_file_entry.h
  type libfsrefs_internal_file_entry_t (line 42) | typedef struct libfsrefs_internal_file_entry libfsrefs_internal_file_ent...
  type libfsrefs_internal_file_entry (line 44) | struct libfsrefs_internal_file_entry

FILE: libfsrefs/libfsrefs_file_system.c
  function libfsrefs_file_system_initialize (line 38) | int libfsrefs_file_system_initialize(
  function libfsrefs_file_system_free (line 115) | int libfsrefs_file_system_free(
  function libfsrefs_file_system_read_superblock (line 178) | int libfsrefs_file_system_read_superblock(
  function libfsrefs_file_system_read_checkpoints (line 255) | int libfsrefs_file_system_read_checkpoints(
  function libfsrefs_file_system_read_container_trees (line 435) | int libfsrefs_file_system_read_container_trees(
  function libfsrefs_file_system_get_block_offsets (line 552) | int libfsrefs_file_system_get_block_offsets(
  function libfsrefs_file_system_get_number_of_ministore_trees (line 622) | int libfsrefs_file_system_get_number_of_ministore_trees(
  function libfsrefs_file_system_get_ministore_tree (line 660) | int libfsrefs_file_system_get_ministore_tree(

FILE: libfsrefs/libfsrefs_file_system.h
  type libfsrefs_file_system_t (line 39) | typedef struct libfsrefs_file_system libfsrefs_file_system_t;
  type libfsrefs_file_system (line 41) | struct libfsrefs_file_system

FILE: libfsrefs/libfsrefs_io_handle.c
  function libfsrefs_io_handle_initialize (line 38) | int libfsrefs_io_handle_initialize(
  function libfsrefs_io_handle_free (line 110) | int libfsrefs_io_handle_free(
  function libfsrefs_io_handle_clear (line 141) | int libfsrefs_io_handle_clear(

FILE: libfsrefs/libfsrefs_io_handle.h
  type libfsrefs_io_handle_t (line 36) | typedef struct libfsrefs_io_handle libfsrefs_io_handle_t;
  type libfsrefs_io_handle (line 38) | struct libfsrefs_io_handle

FILE: libfsrefs/libfsrefs_metadata_block_header.c
  function libfsrefs_metadata_block_header_initialize (line 39) | int libfsrefs_metadata_block_header_initialize(
  function libfsrefs_metadata_block_header_free (line 111) | int libfsrefs_metadata_block_header_free(
  function libfsrefs_metadata_block_header_read_data (line 141) | int libfsrefs_metadata_block_header_read_data(
  function libfsrefs_metadata_block_header_read_file_io_handle (line 415) | int libfsrefs_metadata_block_header_read_file_io_handle(

FILE: libfsrefs/libfsrefs_metadata_block_header.h
  type libfsrefs_metadata_block_header_t (line 36) | typedef struct libfsrefs_metadata_block_header libfsrefs_metadata_block_...
  type libfsrefs_metadata_block_header (line 38) | struct libfsrefs_metadata_block_header

FILE: libfsrefs/libfsrefs_ministore_node.c
  function libfsrefs_ministore_node_initialize (line 45) | int libfsrefs_ministore_node_initialize(
  function libfsrefs_ministore_node_free (line 136) | int libfsrefs_ministore_node_free(
  function libfsrefs_ministore_node_read_data (line 188) | int libfsrefs_ministore_node_read_data(
  function libfsrefs_ministore_node_read_file_io_handle (line 659) | int libfsrefs_ministore_node_read_file_io_handle(
  function libfsrefs_ministore_node_get_number_of_records (line 901) | int libfsrefs_ministore_node_get_number_of_records(
  function libfsrefs_ministore_node_get_record_by_index (line 950) | int libfsrefs_ministore_node_get_record_by_index(
  function libfsrefs_ministore_node_get_record_by_key (line 1002) | int libfsrefs_ministore_node_get_record_by_key(

FILE: libfsrefs/libfsrefs_ministore_node.h
  type libfsrefs_ministore_node_t (line 39) | typedef struct libfsrefs_ministore_node libfsrefs_ministore_node_t;
  type libfsrefs_ministore_node (line 41) | struct libfsrefs_ministore_node

FILE: libfsrefs/libfsrefs_node_header.c
  function libfsrefs_node_header_initialize (line 38) | int libfsrefs_node_header_initialize(
  function libfsrefs_node_header_free (line 110) | int libfsrefs_node_header_free(
  function libfsrefs_node_header_read_data (line 140) | int libfsrefs_node_header_read_data(

FILE: libfsrefs/libfsrefs_node_header.h
  type libfsrefs_node_header_t (line 34) | typedef struct libfsrefs_node_header libfsrefs_node_header_t;
  type libfsrefs_node_header (line 36) | struct libfsrefs_node_header

FILE: libfsrefs/libfsrefs_node_record.c
  function libfsrefs_node_record_initialize (line 38) | int libfsrefs_node_record_initialize(
  function libfsrefs_node_record_free (line 110) | int libfsrefs_node_record_free(
  function libfsrefs_node_record_read_data (line 142) | int libfsrefs_node_record_read_data(

FILE: libfsrefs/libfsrefs_node_record.h
  type libfsrefs_node_record_t (line 34) | typedef struct libfsrefs_node_record libfsrefs_node_record_t;
  type libfsrefs_node_record (line 36) | struct libfsrefs_node_record

FILE: libfsrefs/libfsrefs_notify.c
  function libfsrefs_notify_set_verbose (line 38) | void libfsrefs_notify_set_verbose(
  function libfsrefs_notify_set_stream (line 48) | int libfsrefs_notify_set_stream(
  function libfsrefs_notify_stream_open (line 74) | int libfsrefs_notify_stream_open(
  function libfsrefs_notify_stream_close (line 99) | int libfsrefs_notify_stream_close(

FILE: libfsrefs/libfsrefs_objects_tree.c
  function libfsrefs_objects_tree_initialize (line 38) | int libfsrefs_objects_tree_initialize(
  function libfsrefs_objects_tree_free (line 129) | int libfsrefs_objects_tree_free(
  function libfsrefs_objects_tree_read (line 178) | int libfsrefs_objects_tree_read(
  function libfsrefs_objects_tree_get_ministore_tree_by_identifier (line 262) | int libfsrefs_objects_tree_get_ministore_tree_by_identifier(

FILE: libfsrefs/libfsrefs_objects_tree.h
  type libfsrefs_objects_tree_t (line 39) | typedef struct libfsrefs_objects_tree libfsrefs_objects_tree_t;
  type libfsrefs_objects_tree (line 41) | struct libfsrefs_objects_tree

FILE: libfsrefs/libfsrefs_superblock.c
  function libfsrefs_superblock_initialize (line 44) | int libfsrefs_superblock_initialize(
  function libfsrefs_superblock_free (line 116) | int libfsrefs_superblock_free(
  function libfsrefs_superblock_read_data (line 146) | int libfsrefs_superblock_read_data(
  function libfsrefs_superblock_read_file_io_handle (line 532) | int libfsrefs_superblock_read_file_io_handle(

FILE: libfsrefs/libfsrefs_superblock.h
  type libfsrefs_superblock_t (line 36) | typedef struct libfsrefs_superblock libfsrefs_superblock_t;
  type libfsrefs_superblock (line 38) | struct libfsrefs_superblock

FILE: libfsrefs/libfsrefs_support.c
  function libfsrefs_get_access_flags_read (line 48) | int libfsrefs_get_access_flags_read(
  function libfsrefs_get_codepage (line 58) | int libfsrefs_get_codepage(
  function libfsrefs_set_codepage (line 84) | int libfsrefs_set_codepage(
  function libfsrefs_check_volume_signature (line 111) | int libfsrefs_check_volume_signature(
  function libfsrefs_check_volume_signature_wide (line 218) | int libfsrefs_check_volume_signature_wide(
  function libfsrefs_check_volume_signature_file_io_handle (line 325) | int libfsrefs_check_volume_signature_file_io_handle(

FILE: libfsrefs/libfsrefs_tree_header.c
  function libfsrefs_tree_header_initialize (line 37) | int libfsrefs_tree_header_initialize(
  function libfsrefs_tree_header_free (line 109) | int libfsrefs_tree_header_free(
  function libfsrefs_tree_header_read_data (line 139) | int libfsrefs_tree_header_read_data(

FILE: libfsrefs/libfsrefs_tree_header.h
  type libfsrefs_tree_header_t (line 34) | typedef struct libfsrefs_tree_header libfsrefs_tree_header_t;
  type libfsrefs_tree_header (line 36) | struct libfsrefs_tree_header

FILE: libfsrefs/libfsrefs_types.h
  type libfsrefs_file_entry_t (line 37) | typedef struct libfsrefs_file_entry {}	libfsrefs_file_entry_t;
  type libfsrefs_volume_t (line 38) | typedef struct libfsrefs_volume {}	libfsrefs_volume_t;
  type libfsrefs_file_entry_t (line 41) | typedef intptr_t libfsrefs_file_entry_t;
  type libfsrefs_volume_t (line 42) | typedef intptr_t libfsrefs_volume_t;

FILE: libfsrefs/libfsrefs_volume.c
  function libfsrefs_volume_initialize (line 51) | int libfsrefs_volume_initialize(
  function libfsrefs_volume_free (line 161) | int libfsrefs_volume_free(
  function libfsrefs_volume_signal_abort (line 239) | int libfsrefs_volume_signal_abort(
  function libfsrefs_volume_open (line 278) | int libfsrefs_volume_open(
  function libfsrefs_volume_open_wide (line 447) | int libfsrefs_volume_open_wide(
  function libfsrefs_volume_open_file_io_handle (line 616) | int libfsrefs_volume_open_file_io_handle(
  function libfsrefs_volume_close (line 788) | int libfsrefs_volume_close(
  function libfsrefs_internal_volume_open_read (line 992) | int libfsrefs_internal_volume_open_read(
  function libfsrefs_volume_get_bytes_per_sector (line 1304) | int libfsrefs_volume_get_bytes_per_sector(
  function libfsrefs_volume_get_cluster_block_size (line 1376) | int libfsrefs_volume_get_cluster_block_size(
  function libfsrefs_internal_volume_get_volume_name_record (line 1448) | int libfsrefs_internal_volume_get_volume_name_record(
  function libfsrefs_volume_get_utf8_name_size (line 1507) | int libfsrefs_volume_get_utf8_name_size(
  function libfsrefs_volume_get_utf8_name (line 1609) | int libfsrefs_volume_get_utf8_name(
  function libfsrefs_volume_get_utf16_name_size (line 1713) | int libfsrefs_volume_get_utf16_name_size(
  function libfsrefs_volume_get_utf16_name (line 1815) | int libfsrefs_volume_get_utf16_name(
  function libfsrefs_volume_get_version (line 1918) | int libfsrefs_volume_get_version(
  function libfsrefs_volume_get_serial_number (line 2012) | int libfsrefs_volume_get_serial_number(
  function libfsrefs_volume_get_root_directory (line 2084) | int libfsrefs_volume_get_root_directory(

FILE: libfsrefs/libfsrefs_volume.h
  type libfsrefs_internal_volume_t (line 46) | typedef struct libfsrefs_internal_volume libfsrefs_internal_volume_t;
  type libfsrefs_internal_volume (line 48) | struct libfsrefs_internal_volume

FILE: libfsrefs/libfsrefs_volume_header.c
  function libfsrefs_volume_header_initialize (line 39) | int libfsrefs_volume_header_initialize(
  function libfsrefs_volume_header_free (line 111) | int libfsrefs_volume_header_free(
  function libfsrefs_volume_header_read_data (line 141) | int libfsrefs_volume_header_read_data(
  function libfsrefs_volume_header_read_file_io_handle (line 476) | int libfsrefs_volume_header_read_file_io_handle(
  function libfsrefs_volume_header_get_bytes_per_sector (line 549) | int libfsrefs_volume_header_get_bytes_per_sector(
  function libfsrefs_volume_header_get_cluster_block_size (line 586) | int libfsrefs_volume_header_get_cluster_block_size(
  function libfsrefs_volume_header_get_volume_size (line 623) | int libfsrefs_volume_header_get_volume_size(
  function libfsrefs_volume_header_get_volume_serial_number (line 660) | int libfsrefs_volume_header_get_volume_serial_number(

FILE: libfsrefs/libfsrefs_volume_header.h
  type libfsrefs_volume_header_t (line 35) | typedef struct libfsrefs_volume_header libfsrefs_volume_header_t;
  type libfsrefs_volume_header (line 37) | struct libfsrefs_volume_header

FILE: ossfuzz/volume_fuzzer.cc
  function LLVMFuzzerTestOneInput (line 46) | int LLVMFuzzerTestOneInput(

FILE: tests/fsrefs_test_attribute_values.c
  function fsrefs_test_attribute_values_initialize (line 43) | int fsrefs_test_attribute_values_initialize(
  function fsrefs_test_attribute_values_free (line 238) | int fsrefs_test_attribute_values_free(
  function main (line 282) | int main(

FILE: tests/fsrefs_test_block_descriptor.c
  function fsrefs_test_block_descriptor_initialize (line 43) | int fsrefs_test_block_descriptor_initialize(
  function fsrefs_test_block_descriptor_free (line 238) | int fsrefs_test_block_descriptor_free(
  function main (line 282) | int main(

FILE: tests/fsrefs_test_block_reference.c
  function fsrefs_test_block_reference_initialize (line 53) | int fsrefs_test_block_reference_initialize(
  function fsrefs_test_block_reference_free (line 248) | int fsrefs_test_block_reference_free(
  function fsrefs_test_block_reference_read_data (line 286) | int fsrefs_test_block_reference_read_data(
  function main (line 604) | int main(

FILE: tests/fsrefs_test_block_tree.c
  function fsrefs_test_block_tree_initialize (line 46) | int fsrefs_test_block_tree_initialize(
  function fsrefs_test_block_tree_free (line 255) | int fsrefs_test_block_tree_free(
  function fsrefs_test_block_tree_get_block_descriptor_by_offset (line 294) | int fsrefs_test_block_tree_get_block_descriptor_by_offset(
  function fsrefs_test_block_tree_insert_block_descriptor_by_offset (line 446) | int fsrefs_test_block_tree_insert_block_descriptor_by_offset(
  function main (line 715) | int main(

FILE: tests/fsrefs_test_block_tree_node.c
  function fsrefs_test_block_tree_node_initialize (line 43) | int fsrefs_test_block_tree_node_initialize(
  function fsrefs_test_block_tree_node_free (line 257) | int fsrefs_test_block_tree_node_free(
  function main (line 302) | int main(

FILE: tests/fsrefs_test_checkpoint.c
  function fsrefs_test_checkpoint_initialize (line 1331) | int fsrefs_test_checkpoint_initialize(
  function fsrefs_test_checkpoint_free (line 1526) | int fsrefs_test_checkpoint_free(
  function fsrefs_test_checkpoint_read_data (line 1564) | int fsrefs_test_checkpoint_read_data(
  function fsrefs_test_checkpoint_read_file_io_handle (line 1876) | int fsrefs_test_checkpoint_read_file_io_handle(
  function fsrefs_test_checkpoint_get_number_of_ministore_tree_block_references (line 2310) | int fsrefs_test_checkpoint_get_number_of_ministore_tree_block_references(
  function main (line 2389) | int main(

FILE: tests/fsrefs_test_data_run.c
  function fsrefs_test_data_run_initialize (line 48) | int fsrefs_test_data_run_initialize(
  function fsrefs_test_data_run_free (line 243) | int fsrefs_test_data_run_free(
  function fsrefs_test_data_run_read_data (line 281) | int fsrefs_test_data_run_read_data(
  function main (line 510) | int main(

FILE: tests/fsrefs_test_directory_entry.c
  function fsrefs_test_directory_entry_initialize (line 43) | int fsrefs_test_directory_entry_initialize(
  function fsrefs_test_directory_entry_free (line 238) | int fsrefs_test_directory_entry_free(
  function main (line 282) | int main(

FILE: tests/fsrefs_test_directory_object.c
  function fsrefs_test_directory_object_initialize (line 46) | int fsrefs_test_directory_object_initialize(
  function fsrefs_test_directory_object_free (line 422) | int fsrefs_test_directory_object_free(
  function main (line 466) | int main(

FILE: tests/fsrefs_test_error.c
  function fsrefs_test_error_free (line 37) | int fsrefs_test_error_free(
  function fsrefs_test_error_fprint (line 51) | int fsrefs_test_error_fprint(
  function fsrefs_test_error_sprint (line 66) | int fsrefs_test_error_sprint(
  function fsrefs_test_error_backtrace_fprint (line 82) | int fsrefs_test_error_backtrace_fprint(
  function fsrefs_test_error_backtrace_sprint (line 97) | int fsrefs_test_error_backtrace_sprint(
  function main (line 117) | int main(

FILE: tests/fsrefs_test_file_entry.c
  function fsrefs_test_file_entry_free (line 43) | int fsrefs_test_file_entry_free(
  function main (line 87) | int main(

FILE: tests/fsrefs_test_file_system.c
  function fsrefs_test_file_system_initialize (line 43) | int fsrefs_test_file_system_initialize(
  function fsrefs_test_file_system_free (line 238) | int fsrefs_test_file_system_free(
  function main (line 282) | int main(

FILE: tests/fsrefs_test_functions.c
  function fsrefs_test_get_narrow_source (line 41) | int fsrefs_test_get_narrow_source(
  function fsrefs_test_get_wide_source (line 241) | int fsrefs_test_get_wide_source(
  function fsrefs_test_system_string_copy_from_64_bit_in_decimal (line 440) | int fsrefs_test_system_string_copy_from_64_bit_in_decimal(
  function fsrefs_test_open_file_io_handle (line 550) | int fsrefs_test_open_file_io_handle(
  function fsrefs_test_close_file_io_handle (line 626) | int fsrefs_test_close_file_io_handle(

FILE: tests/fsrefs_test_getopt.c
  function system_integer_t (line 59) | system_integer_t fsrefs_test_getopt(

FILE: tests/fsrefs_test_io_handle.c
  function fsrefs_test_io_handle_initialize (line 43) | int fsrefs_test_io_handle_initialize(
  function fsrefs_test_io_handle_free (line 238) | int fsrefs_test_io_handle_free(
  function fsrefs_test_io_handle_clear (line 276) | int fsrefs_test_io_handle_clear(
  function main (line 410) | int main(

FILE: tests/fsrefs_test_metadata_block_header.c
  function fsrefs_test_metadata_block_header_initialize (line 58) | int fsrefs_test_metadata_block_header_initialize(
  function fsrefs_test_metadata_block_header_free (line 253) | int fsrefs_test_metadata_block_header_free(
  function fsrefs_test_metadata_block_header_read_file_io_handle (line 291) | int fsrefs_test_metadata_block_header_read_file_io_handle(
  function main (line 661) | int main(

FILE: tests/fsrefs_test_ministore_node.c
  function fsrefs_test_ministore_node_initialize (line 43) | int fsrefs_test_ministore_node_initialize(
  function fsrefs_test_ministore_node_free (line 238) | int fsrefs_test_ministore_node_free(
  function main (line 282) | int main(

FILE: tests/fsrefs_test_ministore_tree.c
  function fsrefs_test_ministore_tree_initialize (line 43) | int fsrefs_test_ministore_tree_initialize(
  function fsrefs_test_ministore_tree_free (line 238) | int fsrefs_test_ministore_tree_free(
  function main (line 282) | int main(

FILE: tests/fsrefs_test_node_header.c
  function fsrefs_test_node_header_initialize (line 47) | int fsrefs_test_node_header_initialize(
  function fsrefs_test_node_header_free (line 242) | int fsrefs_test_node_header_free(
  function fsrefs_test_node_header_read_data (line 280) | int fsrefs_test_node_header_read_data(
  function main (line 445) | int main(

FILE: tests/fsrefs_test_node_record.c
  function fsrefs_test_node_record_initialize (line 56) | int fsrefs_test_node_record_initialize(
  function fsrefs_test_node_record_free (line 251) | int fsrefs_test_node_record_free(
  function fsrefs_test_node_record_read_data (line 289) | int fsrefs_test_node_record_read_data(
  function main (line 454) | int main(

FILE: tests/fsrefs_test_notify.c
  function fsrefs_test_notify_set_verbose (line 38) | int fsrefs_test_notify_set_verbose(
  function fsrefs_test_notify_set_stream (line 52) | int fsrefs_test_notify_set_stream(
  function fsrefs_test_notify_stream_open (line 91) | int fsrefs_test_notify_stream_open(
  function fsrefs_test_notify_stream_close (line 158) | int fsrefs_test_notify_stream_close(
  function main (line 200) | int main(

FILE: tests/fsrefs_test_objects_tree.c
  function fsrefs_test_objects_tree_initialize (line 44) | int fsrefs_test_objects_tree_initialize(
  function fsrefs_test_objects_tree_free (line 306) | int fsrefs_test_objects_tree_free(
  function main (line 350) | int main(

FILE: tests/fsrefs_test_superblock.c
  function fsrefs_test_superblock_initialize (line 1331) | int fsrefs_test_superblock_initialize(
  function fsrefs_test_superblock_free (line 1526) | int fsrefs_test_superblock_free(
  function fsrefs_test_superblock_read_data (line 1564) | int fsrefs_test_superblock_read_data(
  function fsrefs_test_superblock_read_file_io_handle (line 1876) | int fsrefs_test_superblock_read_file_io_handle(
  function main (line 2316) | int main(

FILE: tests/fsrefs_test_support.c
  function fsrefs_test_get_version (line 54) | int fsrefs_test_get_version(
  function fsrefs_test_get_access_flags_read (line 81) | int fsrefs_test_get_access_flags_read(
  function fsrefs_test_get_codepage (line 102) | int fsrefs_test_get_codepage(
  function fsrefs_test_set_codepage (line 154) | int fsrefs_test_set_codepage(
  function fsrefs_test_check_volume_signature (line 205) | int fsrefs_test_check_volume_signature(
  function fsrefs_test_check_volume_signature_wide (line 329) | int fsrefs_test_check_volume_signature_wide(
  function fsrefs_test_check_volume_signature_file_io_handle (line 453) | int fsrefs_test_check_volume_signature_file_io_handle(
  function main (line 723) | int main(

FILE: tests/fsrefs_test_tools_info_handle.c
  function fsrefs_test_tools_info_handle_initialize (line 41) | int fsrefs_test_tools_info_handle_initialize(
  function fsrefs_test_tools_info_handle_free (line 241) | int fsrefs_test_tools_info_handle_free(
  function main (line 283) | int main(

FILE: tests/fsrefs_test_tools_output.c
  function fsrefs_test_tools_output_initialize (line 45) | int fsrefs_test_tools_output_initialize(
  function main (line 82) | int main(

FILE: tests/fsrefs_test_tools_signal.c
  function fsrefs_test_tools_signal_handler_function (line 36) | void fsrefs_test_tools_signal_handler_function(
  function fsrefs_test_tools_signal_handler (line 47) | int fsrefs_test_tools_signal_handler(
  function fsrefs_test_tools_signal_attach (line 87) | int fsrefs_test_tools_signal_attach(
  function fsrefs_test_tools_signal_detach (line 140) | int fsrefs_test_tools_signal_detach(
  function main (line 178) | int main(

FILE: tests/fsrefs_test_tree_header.c
  function fsrefs_test_tree_header_initialize (line 48) | int fsrefs_test_tree_header_initialize(
  function fsrefs_test_tree_header_free (line 243) | int fsrefs_test_tree_header_free(
  function fsrefs_test_tree_header_read_data (line 281) | int fsrefs_test_tree_header_read_data(
  function main (line 446) | int main(

FILE: tests/fsrefs_test_volume.c
  function fsrefs_test_volume_get_narrow_source (line 52) | int fsrefs_test_volume_get_narrow_source(
  function fsrefs_test_volume_get_wide_source (line 252) | int fsrefs_test_volume_get_wide_source(
  function fsrefs_test_volume_open_source (line 452) | int fsrefs_test_volume_open_source(
  function fsrefs_test_volume_close_source (line 534) | int fsrefs_test_volume_close_source(
  function fsrefs_test_volume_initialize (line 584) | int fsrefs_test_volume_initialize(
  function fsrefs_test_volume_free (line 779) | int fsrefs_test_volume_free(
  function fsrefs_test_volume_open (line 817) | int fsrefs_test_volume_open(
  function fsrefs_test_volume_open_wide (line 938) | int fsrefs_test_volume_open_wide(
  function fsrefs_test_volume_close (line 1059) | int fsrefs_test_volume_close(
  function fsrefs_test_volume_open_close (line 1097) | int fsrefs_test_volume_open_close(
  function fsrefs_test_volume_signal_abort (line 1238) | int fsrefs_test_volume_signal_abort(
  function fsrefs_test_volume_get_utf8_name_size (line 1291) | int fsrefs_test_volume_get_utf8_name_size(
  function fsrefs_test_volume_get_utf8_name (line 1369) | int fsrefs_test_volume_get_utf8_name(
  function fsrefs_test_volume_get_utf16_name_size (line 1487) | int fsrefs_test_volume_get_utf16_name_size(
  function fsrefs_test_volume_get_utf16_name (line 1565) | int fsrefs_test_volume_get_utf16_name(
  function main (line 1687) | int main(

FILE: tests/fsrefs_test_volume_header.c
  function fsrefs_test_volume_header_initialize (line 80) | int fsrefs_test_volume_header_initialize(
  function fsrefs_test_volume_header_free (line 275) | int fsrefs_test_volume_header_free(
  function fsrefs_test_volume_header_read_data (line 313) | int fsrefs_test_volume_header_read_data(
  function fsrefs_test_volume_header_read_file_io_handle (line 525) | int fsrefs_test_volume_header_read_file_io_handle(
  function fsrefs_test_volume_header_get_volume_size (line 818) | int fsrefs_test_volume_header_get_volume_size(
  function main (line 902) | int main(
Condensed preview — 299 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (2,204K chars).
[
  {
    "path": ".codecov.yml",
    "chars": 459,
    "preview": "coverage:\n  precision: 2\n  round: down\n  range: 70...100\n  status:\n    project: true\n    patch: true\n    changes: false\n"
  },
  {
    "path": ".github/workflows/build.yml",
    "chars": 3495,
    "preview": "# Build from source.\nname: build\non: [push, pull_request]\npermissions: read-all\njobs:\n  build_ubuntu:\n    runs-on: ubunt"
  },
  {
    "path": ".github/workflows/build_freebsd.yml",
    "chars": 533,
    "preview": "# Build from source on FreeBSD.\nname: build_freebsd\non: [push]\npermissions: read-all\njobs:\n  build_freebsd:\n    runs-on:"
  },
  {
    "path": ".github/workflows/build_macos.yml",
    "chars": 1029,
    "preview": "# Build from source.\nname: build_macos\non: [push, pull_request]\npermissions: read-all\njobs:\n  build_macos:\n    runs-on: "
  },
  {
    "path": ".github/workflows/build_ossfuzz.yml",
    "chars": 1208,
    "preview": "# Build OSSFuzz fuzz targets from source.\nname: build_ossfuzz\non:\n  push:\n    branches: [main]\npermissions: read-all\njob"
  },
  {
    "path": ".github/workflows/build_shared.yml",
    "chars": 1048,
    "preview": "# Build from source with libyal dependencies as shared libraries.\nname: build_shared\non:\n  push:\n    branches: [main]\npe"
  },
  {
    "path": ".gitignore",
    "chars": 3013,
    "preview": "# Files to ignore by git\n#\n# Version: 20231119\n\n# Generic auto-generated build files\n*~\n*.a\n*.gcda\n*.gcno\n*.gcov\n*.la\n*."
  },
  {
    "path": "AUTHORS",
    "chars": 93,
    "preview": "Acknowledgements: libfsrefs\n\nCopyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n\n"
  },
  {
    "path": "COPYING",
    "chars": 35149,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "COPYING.LESSER",
    "chars": 7652,
    "preview": "                   GNU LESSER GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007"
  },
  {
    "path": "ChangeLog",
    "chars": 934,
    "preview": "TODO\n\nFormat support\n* Use checkpoint in determining block offsets\n* Rename metadata block header to block header ?\n* Re"
  },
  {
    "path": "Makefile.am",
    "chars": 2043,
    "preview": "ACLOCAL_AMFLAGS = -I m4\n\nSUBDIRS = \\\n\tinclude \\\n\tcommon \\\n\tlibcerror \\\n\tlibcthreads \\\n\tlibcdata \\\n\tlibclocale \\\n\tlibcnot"
  },
  {
    "path": "NEWS",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "README",
    "chars": 534,
    "preview": "libfsrefs is a library to access the Resilient File System (ReFS).\n\nNote that this project currently only focuses on the"
  },
  {
    "path": "acinclude.m4",
    "chars": 1219,
    "preview": "dnl Checks for required headers and functions\ndnl\ndnl Version: 20200713\n\ndnl Function to detect if libfsrefs dependencie"
  },
  {
    "path": "appveyor.yml",
    "chars": 8365,
    "preview": "environment:\n  matrix:\n  - TARGET: vs2008\n    BUILD_ENVIRONMENT: msbuild\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio "
  },
  {
    "path": "autogen.ps1",
    "chars": 3128,
    "preview": "# Script to generate the necessary files for a msvscpp build\n#\n# Version: 20241014\n\n$WinFlex = \"..\\win_flex_bison\\win_fl"
  },
  {
    "path": "autogen.sh",
    "chars": 3265,
    "preview": "#!/bin/sh\n# Script to generate configure and Makefile using the autotools.\n#\n# Version: 20241013\n\nEXIT_SUCCESS=0;\nEXIT_F"
  },
  {
    "path": "build.ps1",
    "chars": 5531,
    "preview": "# Script that builds libfsrefs\n#\n# Version: 20251125\n\nParam (\n\t[string]$Configuration = ${Env:Configuration},\n\t[string]$"
  },
  {
    "path": "common/Makefile.am",
    "chars": 343,
    "preview": "AM_CPPFLAGS = \\\n\t-I../include -I$(top_srcdir)/include\n\nEXTRA_DIST = \\\n\tbyte_stream.h \\\n\tcommon.h \\\n\tconfig.h \\\n\tconfig_b"
  },
  {
    "path": "common/byte_stream.h",
    "chars": 10437,
    "preview": "/*\n * Byte stream functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS "
  },
  {
    "path": "common/common.h",
    "chars": 1250,
    "preview": "/*\n * Common include file\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS fo"
  },
  {
    "path": "common/config_borlandc.h",
    "chars": 957,
    "preview": "/*\n * Configuration for the Borland/CodeGear C++ Builder compiler\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.m"
  },
  {
    "path": "common/config_msc.h",
    "chars": 1157,
    "preview": "/*\n * Configuration for the Microsoft Visual Studio C++ compiler\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.me"
  },
  {
    "path": "common/config_winapi.h",
    "chars": 2382,
    "preview": "/*\n * Configuration file for WINAPI\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to "
  },
  {
    "path": "common/file_stream.h",
    "chars": 3878,
    "preview": "/*\n * FILE stream functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS "
  },
  {
    "path": "common/memory.h",
    "chars": 3259,
    "preview": "/*\n * Memory functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for a"
  },
  {
    "path": "common/narrow_string.h",
    "chars": 5419,
    "preview": "/*\n * Narrow character string functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer"
  },
  {
    "path": "common/system_string.h",
    "chars": 4611,
    "preview": "/*\n * System character string functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer"
  },
  {
    "path": "common/types.h.in",
    "chars": 7375,
    "preview": "/*\n * Type and type-support definitions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer"
  },
  {
    "path": "common/wide_string.h",
    "chars": 5064,
    "preview": "/*\n * Wide character string functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer t"
  },
  {
    "path": "configure.ac",
    "chars": 7479,
    "preview": "AC_PREREQ([2.71])\n\nAC_INIT(\n  [libfsrefs],\n  [20251205],\n  [joachim.metz@gmail.com])\n\nAC_CONFIG_SRCDIR(\n  [include/libfs"
  },
  {
    "path": "documentation/Resilient File System (ReFS).asciidoc",
    "chars": 54249,
    "preview": "= Resilient File System (ReFS)\nAnalysis of the Windows Resilient File System\n\n:toc:\n:toclevels: 4\n\n:numbered!:\n[abstract"
  },
  {
    "path": "dpkg/changelog.in",
    "chars": 122,
    "preview": "libfsrefs (@VERSION@-1) unstable; urgency=low\n\n  * Auto-generated\n\n -- Joachim Metz <joachim.metz@gmail.com>  @DPKG_DATE"
  },
  {
    "path": "dpkg/compat",
    "chars": 3,
    "preview": "10\n"
  },
  {
    "path": "dpkg/control",
    "chars": 1586,
    "preview": "Source: libfsrefs\nPriority: extra\nMaintainer: Joachim Metz <joachim.metz@gmail.com>\nBuild-Depends: debhelper (>= 9), dh-"
  },
  {
    "path": "dpkg/copyright",
    "chars": 1028,
    "preview": "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\nUpstream-Name: libfsrefs\nSource: https://githu"
  },
  {
    "path": "dpkg/libfsrefs-dev.install",
    "chars": 96,
    "preview": "usr/include/*\nusr/lib/*-*/lib*.a\nusr/lib/*-*/lib*.so\nusr/lib/*-*/pkgconfig/*\nusr/share/man/man3\n"
  },
  {
    "path": "dpkg/libfsrefs-tools.install",
    "chars": 27,
    "preview": "usr/bin\nusr/share/man/man1\n"
  },
  {
    "path": "dpkg/libfsrefs.install",
    "chars": 22,
    "preview": "usr/lib/*-*/lib*.so.*\n"
  },
  {
    "path": "dpkg/rules",
    "chars": 548,
    "preview": "#!/usr/bin/make -f\n# -*- makefile -*-\n\n# Uncomment for debhelper verbose output.\n# export DH_VERBOSE=1\n\n%:\n\tdh $@ --buil"
  },
  {
    "path": "dpkg/source/format",
    "chars": 12,
    "preview": "3.0 (quilt)\n"
  },
  {
    "path": "fsrefstools/Makefile.am",
    "chars": 1510,
    "preview": "AM_CPPFLAGS = \\\n\t-I../include -I$(top_srcdir)/include \\\n\t-I../common -I$(top_srcdir)/common \\\n\t@LIBCERROR_CPPFLAGS@ \\\n\t@"
  },
  {
    "path": "fsrefstools/fsrefsinfo.c",
    "chars": 7471,
    "preview": "/*\n * Shows information obtained from a Resiliant File System (ReFS) volume.\n *\n * Copyright (C) 2012-2025, Joachim Metz"
  },
  {
    "path": "fsrefstools/fsrefstools_getopt.c",
    "chars": 4539,
    "preview": "/*\n * GetOpt functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for a"
  },
  {
    "path": "fsrefstools/fsrefstools_getopt.h",
    "chars": 1818,
    "preview": "/*\n * GetOpt functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for a"
  },
  {
    "path": "fsrefstools/fsrefstools_i18n.h",
    "chars": 1216,
    "preview": "/*\n * Internationalization (i18n) functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * R"
  },
  {
    "path": "fsrefstools/fsrefstools_libbfio.h",
    "chars": 1751,
    "preview": "/*\n * The libbfio header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUT"
  },
  {
    "path": "fsrefstools/fsrefstools_libcerror.h",
    "chars": 1486,
    "preview": "/*\n * The libcerror header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to A"
  },
  {
    "path": "fsrefstools/fsrefstools_libclocale.h",
    "chars": 1507,
    "preview": "/*\n * The libclocale header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to "
  },
  {
    "path": "fsrefstools/fsrefstools_libcnotify.h",
    "chars": 1504,
    "preview": "/*\n * The libcnotify header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to "
  },
  {
    "path": "fsrefstools/fsrefstools_libfcache.h",
    "chars": 1489,
    "preview": "/*\n * The libfcache header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to A"
  },
  {
    "path": "fsrefstools/fsrefstools_libfdata.h",
    "chars": 1593,
    "preview": "/*\n * The libfdata header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AU"
  },
  {
    "path": "fsrefstools/fsrefstools_libfdatetime.h",
    "chars": 1774,
    "preview": "/*\n * The libfdatetime header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer t"
  },
  {
    "path": "fsrefstools/fsrefstools_libfguid.h",
    "chars": 1446,
    "preview": "/*\n * The libfguid header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AU"
  },
  {
    "path": "fsrefstools/fsrefstools_libfsrefs.h",
    "chars": 989,
    "preview": "/*\n * The libfsrefs header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to A"
  },
  {
    "path": "fsrefstools/fsrefstools_libfwnt.h",
    "chars": 1751,
    "preview": "/*\n * The libfwnt header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUT"
  },
  {
    "path": "fsrefstools/fsrefstools_libuna.h",
    "chars": 1784,
    "preview": "/*\n * The libuna header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTH"
  },
  {
    "path": "fsrefstools/fsrefstools_output.c",
    "chars": 4413,
    "preview": "/*\n * Common output functions for the fsrefstools\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n "
  },
  {
    "path": "fsrefstools/fsrefstools_output.h",
    "chars": 1481,
    "preview": "/*\n * Common output functions for the fsrefstools\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n "
  },
  {
    "path": "fsrefstools/fsrefstools_signal.c",
    "chars": 5776,
    "preview": "/*\n * Signal handling functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTH"
  },
  {
    "path": "fsrefstools/fsrefstools_signal.h",
    "chars": 1773,
    "preview": "/*\n * Signal handling functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTH"
  },
  {
    "path": "fsrefstools/fsrefstools_unused.h",
    "chars": 1554,
    "preview": "/*\n * Definitions to silence compiler warnings about unused function attributes/parameters.\n *\n * Copyright (C) 2012-202"
  },
  {
    "path": "fsrefstools/info_handle.c",
    "chars": 35485,
    "preview": "/*\n * Info handle\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknow"
  },
  {
    "path": "fsrefstools/info_handle.h",
    "chars": 3543,
    "preview": "/*\n * Info handle\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknow"
  },
  {
    "path": "include/Makefile.am",
    "chars": 440,
    "preview": "include_HEADERS = \\\n\tlibfsrefs.h\n\npkginclude_HEADERS = \\\n\tlibfsrefs/codepage.h \\\n\tlibfsrefs/definitions.h \\\n\tlibfsrefs/e"
  },
  {
    "path": "include/libfsrefs/codepage.h",
    "chars": 5422,
    "preview": "/*\n * Codepage definitions for libfsrefs\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refe"
  },
  {
    "path": "include/libfsrefs/definitions.h.in",
    "chars": 2715,
    "preview": "/*\n * Definitions for libfsrefs\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTH"
  },
  {
    "path": "include/libfsrefs/error.h",
    "chars": 6826,
    "preview": "/*\n * The error code definitions for libfsrefs\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n "
  },
  {
    "path": "include/libfsrefs/extern.h",
    "chars": 1436,
    "preview": "/*\n * The extern definition\n *\n * This header should be included in header files that export or import\n * library functi"
  },
  {
    "path": "include/libfsrefs/features.h.in",
    "chars": 1563,
    "preview": "/*\n * Features of libfsrefs\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS "
  },
  {
    "path": "include/libfsrefs/types.h.in",
    "chars": 4994,
    "preview": "/*\n * Type definitions for libfsrefs\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to"
  },
  {
    "path": "include/libfsrefs.h.in",
    "chars": 14343,
    "preview": "/*\n * Library to access the Resiliant File System (ReFS) format\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.met"
  },
  {
    "path": "libfsrefs/Makefile.am",
    "chars": 3188,
    "preview": "AM_CPPFLAGS = \\\n\t-I../include -I$(top_srcdir)/include \\\n\t-I../common -I$(top_srcdir)/common \\\n\t@LIBCERROR_CPPFLAGS@ \\\n\t@"
  },
  {
    "path": "libfsrefs/fsrefs_checkpoint.h",
    "chars": 2813,
    "preview": "/*\n * The ReFS checkpoint definition\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to"
  },
  {
    "path": "libfsrefs/fsrefs_directory_object.h",
    "chars": 5264,
    "preview": "/*\n * The ReFS directory object definitions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * R"
  },
  {
    "path": "libfsrefs/fsrefs_metadata_block.h",
    "chars": 4134,
    "preview": "/*\n * The ReFS metadata block definition\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refe"
  },
  {
    "path": "libfsrefs/fsrefs_ministore_tree.h",
    "chars": 3429,
    "preview": "/*\n * The ReFS ministore tree definitions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Ref"
  },
  {
    "path": "libfsrefs/fsrefs_superblock.h",
    "chars": 1759,
    "preview": "/*\n * The ReFS superblock definition\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to"
  },
  {
    "path": "libfsrefs/fsrefs_volume_header.h",
    "chars": 2545,
    "preview": "/*\n * The ReFS volume header definition\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer"
  },
  {
    "path": "libfsrefs/libfsrefs.c",
    "chars": 1840,
    "preview": "/*\n * Library to access the Resiliant File System (ReFS) format\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.met"
  },
  {
    "path": "libfsrefs/libfsrefs.rc.in",
    "chars": 1094,
    "preview": "#include <windows.h>\r\n\r\n#ifdef GCC_WINDRES\r\nVS_VERSION_INFO\t\t\t\tVERSIONINFO\r\n#else\r\nVS_VERSION_INFO\t\t\t\tVERSIONINFO\tMOVEAB"
  },
  {
    "path": "libfsrefs/libfsrefs_attribute_values.c",
    "chars": 25053,
    "preview": "/*\n * Attribute values functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUT"
  },
  {
    "path": "libfsrefs/libfsrefs_attribute_values.h",
    "chars": 3161,
    "preview": "/*\n * Attribute values functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUT"
  },
  {
    "path": "libfsrefs/libfsrefs_block_descriptor.c",
    "chars": 3131,
    "preview": "/*\n * Block descriptor functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUT"
  },
  {
    "path": "libfsrefs/libfsrefs_block_descriptor.h",
    "chars": 1537,
    "preview": "/*\n * Block descriptor functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUT"
  },
  {
    "path": "libfsrefs/libfsrefs_block_reference.c",
    "chars": 10295,
    "preview": "/*\n * Block reference functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTH"
  },
  {
    "path": "libfsrefs/libfsrefs_block_reference.h",
    "chars": 1876,
    "preview": "/*\n * Block reference functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTH"
  },
  {
    "path": "libfsrefs/libfsrefs_block_tree.c",
    "chars": 11445,
    "preview": "/*\n * Block tree functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS f"
  },
  {
    "path": "libfsrefs/libfsrefs_block_tree.h",
    "chars": 2369,
    "preview": "/*\n * Block tree functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS f"
  },
  {
    "path": "libfsrefs/libfsrefs_block_tree_node.c",
    "chars": 15081,
    "preview": "/*\n * Block tree node functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTH"
  },
  {
    "path": "libfsrefs/libfsrefs_block_tree_node.h",
    "chars": 2974,
    "preview": "/*\n * Block tree node functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTH"
  },
  {
    "path": "libfsrefs/libfsrefs_checkpoint.c",
    "chars": 25866,
    "preview": "/*\n * Checkpoint (or level 1 metadata) functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *"
  },
  {
    "path": "libfsrefs/libfsrefs_checkpoint.h",
    "chars": 2561,
    "preview": "/*\n * Checkpoint (or level 1 metadata) functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *"
  },
  {
    "path": "libfsrefs/libfsrefs_data_run.c",
    "chars": 5475,
    "preview": "/*\n * Data run functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for"
  },
  {
    "path": "libfsrefs/libfsrefs_data_run.h",
    "chars": 1731,
    "preview": "/*\n * Data run functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for"
  },
  {
    "path": "libfsrefs/libfsrefs_debug.c",
    "chars": 12959,
    "preview": "/*\n * Debug functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for ac"
  },
  {
    "path": "libfsrefs/libfsrefs_debug.h",
    "chars": 2280,
    "preview": "/*\n * Debug functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for ac"
  },
  {
    "path": "libfsrefs/libfsrefs_definitions.h.in",
    "chars": 3219,
    "preview": "/*\n * The internal definitions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHO"
  },
  {
    "path": "libfsrefs/libfsrefs_directory_entry.c",
    "chars": 35138,
    "preview": "/*\n * Directory entry functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTH"
  },
  {
    "path": "libfsrefs/libfsrefs_directory_entry.h",
    "chars": 4499,
    "preview": "/*\n * Directory entry functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTH"
  },
  {
    "path": "libfsrefs/libfsrefs_directory_object.c",
    "chars": 21977,
    "preview": "/*\n * Directory object functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUT"
  },
  {
    "path": "libfsrefs/libfsrefs_directory_object.h",
    "chars": 3297,
    "preview": "/*\n * Directory object functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUT"
  },
  {
    "path": "libfsrefs/libfsrefs_error.c",
    "chars": 2924,
    "preview": "/*\n * Error functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for ac"
  },
  {
    "path": "libfsrefs/libfsrefs_error.h",
    "chars": 1818,
    "preview": "/*\n * Error functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for ac"
  },
  {
    "path": "libfsrefs/libfsrefs_extern.h",
    "chars": 1402,
    "preview": "/*\n * The internal extern definition\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to"
  },
  {
    "path": "libfsrefs/libfsrefs_file_entry.c",
    "chars": 31821,
    "preview": "/*\n * File entry functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS f"
  },
  {
    "path": "libfsrefs/libfsrefs_file_entry.h",
    "chars": 4909,
    "preview": "/*\n * File entry functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS f"
  },
  {
    "path": "libfsrefs/libfsrefs_file_system.c",
    "chars": 17842,
    "preview": "/*\n * Objects tree functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS"
  },
  {
    "path": "libfsrefs/libfsrefs_file_system.h",
    "chars": 3122,
    "preview": "/*\n * File system functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS "
  },
  {
    "path": "libfsrefs/libfsrefs_io_handle.c",
    "chars": 3802,
    "preview": "/*\n * Input/Output (IO) handle functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refe"
  },
  {
    "path": "libfsrefs/libfsrefs_io_handle.h",
    "chars": 2072,
    "preview": "/*\n * Input/Output (IO) handle functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refe"
  },
  {
    "path": "libfsrefs/libfsrefs_libbfio.h",
    "chars": 1706,
    "preview": "/*\n * The libbfio header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUT"
  },
  {
    "path": "libfsrefs/libfsrefs_libcdata.h",
    "chars": 1551,
    "preview": "/*\n * The libcdata header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AU"
  },
  {
    "path": "libfsrefs/libfsrefs_libcerror.h",
    "chars": 1441,
    "preview": "/*\n * The libcerror header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to A"
  },
  {
    "path": "libfsrefs/libfsrefs_libclocale.h",
    "chars": 1462,
    "preview": "/*\n * The libclocale header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to "
  },
  {
    "path": "libfsrefs/libfsrefs_libcnotify.h",
    "chars": 1459,
    "preview": "/*\n * The libcnotify header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to "
  },
  {
    "path": "libfsrefs/libfsrefs_libcthreads.h",
    "chars": 1932,
    "preview": "/*\n * The libcthreads header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to"
  },
  {
    "path": "libfsrefs/libfsrefs_libfcache.h",
    "chars": 1444,
    "preview": "/*\n * The libfcache header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to A"
  },
  {
    "path": "libfsrefs/libfsrefs_libfdata.h",
    "chars": 1548,
    "preview": "/*\n * The libfdata header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AU"
  },
  {
    "path": "libfsrefs/libfsrefs_libfdatetime.h",
    "chars": 1729,
    "preview": "/*\n * The libfdatetime header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer t"
  },
  {
    "path": "libfsrefs/libfsrefs_libfguid.h",
    "chars": 1401,
    "preview": "/*\n * The libfguid header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AU"
  },
  {
    "path": "libfsrefs/libfsrefs_libfwnt.h",
    "chars": 1706,
    "preview": "/*\n * The libfwnt header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUT"
  },
  {
    "path": "libfsrefs/libfsrefs_libuna.h",
    "chars": 1739,
    "preview": "/*\n * The libuna header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTH"
  },
  {
    "path": "libfsrefs/libfsrefs_metadata_block_header.c",
    "chars": 13223,
    "preview": "/*\n * The REFS metadata block header functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n "
  },
  {
    "path": "libfsrefs/libfsrefs_metadata_block_header.h",
    "chars": 2223,
    "preview": "/*\n * The REFS metadata block header functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n "
  },
  {
    "path": "libfsrefs/libfsrefs_ministore_node.c",
    "chars": 28744,
    "preview": "/*\n * Ministore node (or level 2+ metadata) functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.co"
  },
  {
    "path": "libfsrefs/libfsrefs_ministore_node.h",
    "chars": 3085,
    "preview": "/*\n * Ministore node (or level 2+ metadata) functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.co"
  },
  {
    "path": "libfsrefs/libfsrefs_node_header.c",
    "chars": 7294,
    "preview": "/*\n * Ministore node header functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer t"
  },
  {
    "path": "libfsrefs/libfsrefs_node_header.h",
    "chars": 2022,
    "preview": "/*\n * Ministore node header functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer t"
  },
  {
    "path": "libfsrefs/libfsrefs_node_record.c",
    "chars": 8129,
    "preview": "/*\n * Ministore node record functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer t"
  },
  {
    "path": "libfsrefs/libfsrefs_node_record.h",
    "chars": 1879,
    "preview": "/*\n * Ministore node record functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer t"
  },
  {
    "path": "libfsrefs/libfsrefs_notify.c",
    "chars": 2766,
    "preview": "/*\n * Notification functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS"
  },
  {
    "path": "libfsrefs/libfsrefs_notify.h",
    "chars": 1608,
    "preview": "/*\n * Notification functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS"
  },
  {
    "path": "libfsrefs/libfsrefs_objects_tree.c",
    "chars": 10505,
    "preview": "/*\n * Objects tree functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS"
  },
  {
    "path": "libfsrefs/libfsrefs_objects_tree.h",
    "chars": 2272,
    "preview": "/*\n * Objects tree functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS"
  },
  {
    "path": "libfsrefs/libfsrefs_superblock.c",
    "chars": 18451,
    "preview": "/*\n * Superblock (or level 0 metadata) functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *"
  },
  {
    "path": "libfsrefs/libfsrefs_superblock.h",
    "chars": 2168,
    "preview": "/*\n * Superblock (or level 0 metadata) functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *"
  },
  {
    "path": "libfsrefs/libfsrefs_support.c",
    "chars": 9500,
    "preview": "/*\n * Support functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for "
  },
  {
    "path": "libfsrefs/libfsrefs_support.h",
    "chars": 2058,
    "preview": "/*\n * Support functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for "
  },
  {
    "path": "libfsrefs/libfsrefs_tree_header.c",
    "chars": 6840,
    "preview": "/*\n * Ministore tree header functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer t"
  },
  {
    "path": "libfsrefs/libfsrefs_tree_header.h",
    "chars": 1656,
    "preview": "/*\n * Ministore tree header functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer t"
  },
  {
    "path": "libfsrefs/libfsrefs_types.h",
    "chars": 1619,
    "preview": "/*\n * The internal type definitions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to "
  },
  {
    "path": "libfsrefs/libfsrefs_unused.h",
    "chars": 1416,
    "preview": "/*\n * Definitions to silence compiler warnings about unused function attributes/parameters.\n *\n * Copyright (C) 2012-202"
  },
  {
    "path": "libfsrefs/libfsrefs_volume.c",
    "chars": 52437,
    "preview": "/*\n * Volume functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for a"
  },
  {
    "path": "libfsrefs/libfsrefs_volume.h",
    "chars": 5420,
    "preview": "/*\n * Volume functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for a"
  },
  {
    "path": "libfsrefs/libfsrefs_volume_header.c",
    "chars": 17228,
    "preview": "/*\n * The REFS volume header functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer "
  },
  {
    "path": "libfsrefs/libfsrefs_volume_header.h",
    "chars": 3015,
    "preview": "/*\n * The REFS volume header functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer "
  },
  {
    "path": "libfsrefs.ini",
    "chars": 835,
    "preview": "[project]\ndescription: \"libfsrefs is a library to access the Resilient File System (ReFS).\"\nname: \"libfsrefs\"\nstatus: \"e"
  },
  {
    "path": "libfsrefs.pc.in",
    "chars": 744,
    "preview": "prefix=@prefix@\nexec_prefix=@exec_prefix@\nlibdir=@libdir@\nincludedir=@includedir@\n\nName: libfsrefs\nDescription: Library "
  },
  {
    "path": "libfsrefs.spec.in",
    "chars": 3010,
    "preview": "Name: libfsrefs\nVersion: @VERSION@\nRelease: 1\nSummary: Library to access the Resiliant File System (ReFS) format\nGroup: "
  },
  {
    "path": "m4/common.m4",
    "chars": 15958,
    "preview": "dnl Checks for common headers and functions\ndnl\ndnl Version: 20241013\n\ndnl Function to test if a certain feature was dis"
  },
  {
    "path": "m4/libbfio.m4",
    "chars": 6613,
    "preview": "dnl Checks for libbfio required headers and functions\ndnl\ndnl Version: 20240518\n\ndnl Function to detect if libbfio is av"
  },
  {
    "path": "m4/libcdata.m4",
    "chars": 7542,
    "preview": "dnl Checks for libcdata required headers and functions\ndnl\ndnl Version: 20240514\n\ndnl Function to detect if libcdata is "
  },
  {
    "path": "m4/libcerror.m4",
    "chars": 5002,
    "preview": "dnl Checks for libcerror required headers and functions\ndnl\ndnl Version: 20240513\n\ndnl Function to detect if libcerror i"
  },
  {
    "path": "m4/libcfile.m4",
    "chars": 8655,
    "preview": "dnl Checks for libcfile required headers and functions\ndnl\ndnl Version: 20240514\n\ndnl Function to detect if libcfile is "
  },
  {
    "path": "m4/libclocale.m4",
    "chars": 7027,
    "preview": "dnl Checks for libclocale required headers and functions\ndnl\ndnl Version: 20240513\n\ndnl Function to detect if libclocale"
  },
  {
    "path": "m4/libcnotify.m4",
    "chars": 4438,
    "preview": "dnl Checks for libcnotify required headers and functions\ndnl\ndnl Version: 20240513\n\ndnl Function to detect if libcnotify"
  },
  {
    "path": "m4/libcpath.m4",
    "chars": 7580,
    "preview": "dnl Checks for libcpath required headers and functions\ndnl\ndnl Version: 20240518\n\ndnl Function to detect if libcpath is "
  },
  {
    "path": "m4/libcsplit.m4",
    "chars": 5672,
    "preview": "dnl Checks for libcsplit required headers and functions\ndnl\ndnl Version: 20240513\n\ndnl Function to detect if libcsplit i"
  },
  {
    "path": "m4/libcthreads.m4",
    "chars": 6520,
    "preview": "dnl Checks for libcthreads required headers and functions\ndnl\ndnl Version: 20240513\n\ndnl Function to detect if libcthrea"
  },
  {
    "path": "m4/libfcache.m4",
    "chars": 4955,
    "preview": "dnl Checks for libfcache required headers and functions\ndnl\ndnl Version: 20240514\n\ndnl Function to detect if libfcache i"
  },
  {
    "path": "m4/libfdata.m4",
    "chars": 8377,
    "preview": "dnl Functions for libfdata\ndnl\ndnl Version: 20240520\n\ndnl Function to detect if libfdata is available\ndnl ac_libfdata_du"
  },
  {
    "path": "m4/libfdatetime.m4",
    "chars": 8525,
    "preview": "dnl Checks for libfdatetime required headers and functions\ndnl\ndnl Version: 20240518\n\ndnl Function to detect if libfdate"
  },
  {
    "path": "m4/libfguid.m4",
    "chars": 4231,
    "preview": "dnl Checks for libfguid required headers and functions\ndnl\ndnl Version: 20240519\n\ndnl Function to detect if libfguid is "
  },
  {
    "path": "m4/libfusn.m4",
    "chars": 4314,
    "preview": "dnl Checks for libfusn required headers and functions\ndnl\ndnl Version: 20240521\n\ndnl Function to detect if libfusn is av"
  },
  {
    "path": "m4/libfwnt.m4",
    "chars": 5281,
    "preview": "dnl Checks for libfwnt required headers and functions\ndnl\ndnl Version: 20240519\n\ndnl Function to detect if libfwnt is av"
  },
  {
    "path": "m4/libuna.m4",
    "chars": 12910,
    "preview": "dnl Checks for libuna or required headers and functions\ndnl\ndnl Version: 20240513\n\ndnl Function to detect if libuna is a"
  },
  {
    "path": "m4/pthread.m4",
    "chars": 2721,
    "preview": "dnl Functions for pthread\ndnl\ndnl Version: 20240513\n\ndnl Function to detect if pthread is available\nAC_DEFUN([AX_PTHREAD"
  },
  {
    "path": "m4/tests.m4",
    "chars": 756,
    "preview": "dnl Functions for testing\ndnl\ndnl Version: 20200712\n\ndnl Function to detect if tests dependencies are available\nAC_DEFUN"
  },
  {
    "path": "m4/types.m4",
    "chars": 2058,
    "preview": "dnl Functions for type definitions\ndnl\ndnl Version: 20180727\n\ndnl Function to detect if type definitions are available\nA"
  },
  {
    "path": "manuals/Makefile.am",
    "chars": 133,
    "preview": "man_MANS = \\\n\tfsrefsinfo.1 \\\n\tlibfsrefs.3\n\nEXTRA_DIST = \\\n\tfsrefsinfo.1 \\\n\tlibfsrefs.3\n\nDISTCLEANFILES = \\\n\tMakefile \\\n\t"
  },
  {
    "path": "manuals/fsrefsinfo.1",
    "chars": 1418,
    "preview": ".Dd June 28, 2023\n.Dt fsrefsinfo\n.Os libfsrefs\n.Sh NAME\n.Nm fsrefsinfo\n.Nd determines information about a Resiliant File"
  },
  {
    "path": "manuals/libfsrefs.3",
    "chars": 6913,
    "preview": ".Dd June 30, 2023\n.Dt libfsrefs 3\n.Os libfsrefs\n.Sh NAME\n.Nm libfsrefs.h\n.Nd Library to access the Resiliant File System"
  },
  {
    "path": "msvscpp/Makefile.am",
    "chars": 2251,
    "preview": "MSVSCPP_FILES = \\\n\tfsrefs_test_attribute_values/fsrefs_test_attribute_values.vcproj \\\n\tfsrefs_test_block_descriptor/fsre"
  },
  {
    "path": "msvscpp/fsrefs_test_attribute_values/fsrefs_test_attribute_values.vcproj",
    "chars": 5936,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_block_descriptor/fsrefs_test_block_descriptor.vcproj",
    "chars": 5936,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_block_reference/fsrefs_test_block_reference.vcproj",
    "chars": 5933,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_block_tree/fsrefs_test_block_tree.vcproj",
    "chars": 5918,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_block_tree_node/fsrefs_test_block_tree_node.vcproj",
    "chars": 5933,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_checkpoint/fsrefs_test_checkpoint.vcproj",
    "chars": 6171,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_data_run/fsrefs_test_data_run.vcproj",
    "chars": 5912,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_directory_entry/fsrefs_test_directory_entry.vcproj",
    "chars": 5933,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_directory_object/fsrefs_test_directory_object.vcproj",
    "chars": 5936,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_error/fsrefs_test_error.vcproj",
    "chars": 5654,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_file_entry/fsrefs_test_file_entry.vcproj",
    "chars": 5918,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_file_system/fsrefs_test_file_system.vcproj",
    "chars": 5921,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_io_handle/fsrefs_test_io_handle.vcproj",
    "chars": 5915,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_metadata_block_header/fsrefs_test_metadata_block_header.vcproj",
    "chars": 6204,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_ministore_node/fsrefs_test_ministore_node.vcproj",
    "chars": 6183,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_node_header/fsrefs_test_node_header.vcproj",
    "chars": 5921,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_node_record/fsrefs_test_node_record.vcproj",
    "chars": 5921,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_notify/fsrefs_test_notify.vcproj",
    "chars": 5742,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_objects_tree/fsrefs_test_objects_tree.vcproj",
    "chars": 5924,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_superblock/fsrefs_test_superblock.vcproj",
    "chars": 6171,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_support/fsrefs_test_support.vcproj",
    "chars": 6580,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_tools_info_handle/fsrefs_test_tools_info_handle.vcproj",
    "chars": 6016,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_tools_output/fsrefs_test_tools_output.vcproj",
    "chars": 5851,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_tools_signal/fsrefs_test_tools_signal.vcproj",
    "chars": 5851,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  },
  {
    "path": "msvscpp/fsrefs_test_tree_header/fsrefs_test_tree_header.vcproj",
    "chars": 5921,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\""
  }
]

// ... and 99 more files (download for full content)

About this extraction

This page contains the full source code of the libyal/libfsrefs GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 299 files (1.9 MB), approximately 710.8k tokens, and a symbol index with 414 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!