[
  {
    "path": ".codecov.yml",
    "content": "coverage:\n  precision: 2\n  round: down\n  range: 70...100\n  status:\n    project: true\n    patch: true\n    changes: false\n  ignore:\n    - \"libbfio/*\"\n    - \"libcdata/*\"\n    - \"libcerror/*\"\n    - \"libcfile/*\"\n    - \"libclocale/*\"\n    - \"libcnotify/*\"\n    - \"libcpath/*\"\n    - \"libcsplit/*\"\n    - \"libcthreads/*\"\n    - \"libfcache/*\"\n    - \"libfdata/*\"\n    - \"libfdatetime/*\"\n    - \"libfguid/*\"\n    - \"libfusn/*\"\n    - \"libfwnt/*\"\n    - \"libuna/*\"\n    - \"tests/*\"\n"
  },
  {
    "path": ".github/workflows/build.yml",
    "content": "# Build from source.\nname: build\non: [push, pull_request]\npermissions: read-all\njobs:\n  build_ubuntu:\n    runs-on: ubuntu-22.04\n    strategy:\n      matrix:\n        include:\n        - architecture: 'x86'\n          compiler: 'clang'\n          configure_options: ''\n        - architecture: 'x64'\n          compiler: 'clang'\n          configure_options: ''\n        - architecture: 'x86'\n          compiler: 'gcc'\n          configure_options: ''\n        - architecture: 'x64'\n          compiler: 'gcc'\n          configure_options: ''\n        - architecture: 'x64'\n          compiler: 'gcc'\n          configure_options: '--with-pthread=no'\n        - architecture: 'x64'\n          compiler: 'gcc'\n          configure_options: '--enable-wide-character-type'\n        - architecture: 'x64'\n          compiler: 'gcc'\n          configure_options: '--enable-static-executables=yes --enable-multi-threading-support=no'\n    steps:\n    - uses: actions/checkout@v4\n    - name: Install build dependencies\n      run: |\n        sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config\n    - name: Download test data\n      run: |\n        if test -x \"synctestdata.sh\"; then ./synctestdata.sh; fi\n    - name: Building from source\n      env:\n        CC: ${{ matrix.compiler }}\n      run: |\n        tests/build.sh ${{ matrix.configure_options }}\n    - name: Run tests\n      run: |\n        tests/runtests.sh\n  build_dist:\n    runs-on: ubuntu-22.04\n    strategy:\n      matrix:\n        include:\n        - architecture: 'x64'\n          compiler: 'gcc'\n          configure_options: ''\n    steps:\n    - uses: actions/checkout@v4\n    - name: Install build dependencies\n      run: |\n        sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config\n    - name: Download test data\n      run: |\n        if test -x \"synctestdata.sh\"; then ./synctestdata.sh; fi\n    - name: Building from source\n      env:\n        CC: ${{ matrix.compiler }}\n      run: |\n        tests/build.sh ${{ matrix.configure_options }}\n    - name: Run tests\n      run: |\n        make distcheck\n  coverage_ubuntu:\n    runs-on: ubuntu-22.04\n    strategy:\n      matrix:\n        include:\n        - architecture: 'x86'\n          compiler: 'gcc'\n          configure_options: '--enable-wide-character-type'\n        - architecture: 'x64'\n          compiler: 'gcc'\n          configure_options: '--enable-wide-character-type'\n    steps:\n    - uses: actions/checkout@v4\n    - name: Install build dependencies\n      run: |\n        sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config\n    - name: Download test data\n      run: |\n        if test -x \"synctestdata.sh\"; then ./synctestdata.sh; fi\n    - name: Building from source\n      env:\n        CC: ${{ matrix.compiler }}\n      run: |\n        tests/build.sh ${{ matrix.configure_options }} --enable-shared=no CFLAGS=\"--coverage -O0\" CPPFLAGS=\"-DOPTIMIZATION_DISABLED\" LDFLAGS=\"--coverage\"\n    - name: Run tests\n      run: |\n        make check CHECK_WITH_STDERR=1 SKIP_TOOLS_END_TO_END_TESTS=1\n    - name: Generate coverage data\n      run: |\n        for DIRECTORY in `find . -maxdepth 1 -type d`; do \\\n          (cd ${DIRECTORY} && find . -maxdepth 1 -name \\*.gcno -type f -exec gcov -pb {} \\;) \\\n        done\n    - name: Upload coverage report to Codecov\n      uses: codecov/codecov-action@v4\n      with:\n        name: linux-${{ matrix.architecture }}-gcc-no-optimization\n        token: ${{ secrets.CODECOV_TOKEN }}\n"
  },
  {
    "path": ".github/workflows/build_freebsd.yml",
    "content": "# Build from source on FreeBSD.\nname: build_freebsd\non: [push]\npermissions: read-all\njobs:\n  build_freebsd:\n    runs-on: ubuntu-22.04\n    steps:\n    - uses: actions/checkout@v4\n    - name: Building from source\n      id: build_freebsd\n      uses: vmactions/freebsd-vm@v1\n      with:\n        usesh: true\n        mem: 4096\n        # Note that the test scripts require bash\n        prepare: |\n          pkg install -y autoconf automake bash gettext git libtool pkgconf\n        run: |\n          tests/build.sh\n          tests/runtests.sh\n"
  },
  {
    "path": ".github/workflows/build_macos.yml",
    "content": "# Build from source.\nname: build_macos\non: [push, pull_request]\npermissions: read-all\njobs:\n  build_macos:\n    runs-on: ${{ matrix.os }}\n    strategy:\n      matrix:\n        include:\n        - os: macos-14\n          configure_options: ''\n        - os: macos-15\n          configure_options: ''\n        - os: macos-15-intel\n          configure_options: ''\n        - os: macos-26\n          configure_options: ''\n    steps:\n    - uses: actions/checkout@v4\n    - name: Install build dependencies\n      run: |\n        brew update -q\n        brew install -q autoconf automake gettext gnu-sed libtool pkg-config || true\n        brew link --force gettext\n        ln -s /usr/local/bin/glibtoolize /usr/local/bin/libtoolize\n    - name: Download test data\n      run: |\n        if test -x \"synctestdata.sh\"; then ./synctestdata.sh; fi\n    - name: Building from source\n      env:\n        CC: ${{ matrix.compiler }}\n      run: |\n        tests/build.sh ${{ matrix.configure_options }}\n    - name: Run tests\n      run: |\n        tests/runtests.sh\n"
  },
  {
    "path": ".github/workflows/build_ossfuzz.yml",
    "content": "# Build OSSFuzz fuzz targets from source.\nname: build_ossfuzz\non:\n  push:\n    branches: [main]\npermissions: read-all\njobs:\n  build_ossfuzz:\n    runs-on: ubuntu-22.04\n    strategy:\n      matrix:\n        include:\n        - architecture: 'x64'\n          compiler: 'gcc'\n          configure_options: ''\n    steps:\n    - name: Install build dependencies\n      run: |\n        sudo apt-get -y install git\n    - uses: actions/checkout@v4\n      with:\n        repository: google/oss-fuzz\n        path: oss-fuzz\n    - name: Build OSSFuzz fuzz targets\n      working-directory: oss-fuzz\n      run: |\n        mkdir -p projects/libfsrefs\n        cp projects/libyal/build.sh projects/libfsrefs/\n        cp projects/libyal/project.yaml projects/libfsrefs/\n        head -n 20 projects/libyal/Dockerfile > projects/libfsrefs/Dockerfile\n        echo \"RUN git clone --depth 1 https://github.com/libyal/libfsrefs.git libfsrefs\" >> projects/libfsrefs/Dockerfile\n        tail -n 3 projects/libyal/Dockerfile >> projects/libfsrefs/Dockerfile\n        python3 infra/helper.py build_image --pull libfsrefs\n        python3 infra/helper.py build_fuzzers --sanitizer address libfsrefs\n        python3 infra/helper.py check_build libfsrefs\n"
  },
  {
    "path": ".github/workflows/build_shared.yml",
    "content": "# Build from source with libyal dependencies as shared libraries.\nname: build_shared\non:\n  push:\n    branches: [main]\npermissions: read-all\njobs:\n  build_shared_ubuntu:\n    runs-on: ubuntu-22.04\n    strategy:\n      matrix:\n        include:\n        - architecture: 'x64'\n          compiler: 'gcc'\n          configure_options: ''\n        - architecture: 'x64'\n          compiler: 'gcc'\n          configure_options: '--enable-wide-character-type'\n    steps:\n    - uses: actions/checkout@v4\n    - name: Install build dependencies\n      run: |\n        sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config\n    - name: Download test data\n      run: |\n        if test -x \"synctestdata.sh\"; then ./synctestdata.sh; fi\n    - name: Prepare shared libraries\n      run: |\n        tests/syncsharedlibs.sh --use-head\n    - name: Building from source\n      env:\n        CC: ${{ matrix.compiler }}\n      run: |\n        tests/build.sh ${{ matrix.configure_options }}\n    - name: Run tests\n      run: |\n        tests/runtests.sh\n"
  },
  {
    "path": ".gitignore",
    "content": "# 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*.lai\n*.lib\n*.lineno\n*.lo\n*.log\n*.loT\n*.o\n*.obj\n*.Plo\n*.Po\n*.so\n*.so.[0-9][0-9]*\n*.so.[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*\n*.swp\n*.Tpo\n*.trs\n*.whl\n/*.egg-info/\n__pycache__\n.deps\n.dirstamp\n.libs\n.tox\nINSTALL\nMakefile\nMakefile.bcc\nMakefile.in\nstamp-h[1-9]\n\n# Specific auto-generated build files\n/ABOUT-NLS\n/aclocal.m4\n/autom4te.cache/\n/build\n/compile\n/confdefs.h\n/config.cache\n/config.guess\n/config.log\n/config.rpath\n/config.status\n/config.sub\n/configure\n/conftest.c\n/depcomp\n/dist\n/install-sh\n/libtool\n/ltmain.sh\n/m4/codeset.m4\n/m4/extern-inline.m4\n/m4/fcntl-o.m4\n/m4/gettext.m4\n/m4/glibc21.m4\n/m4/glibc2.m4\n/m4/host-cpu-c-abi.m4\n/m4/iconv.m4\n/m4/intdiv0.m4\n/m4/intldir.m4\n/m4/intl.m4\n/m4/intlmacosx.m4\n/m4/intmax.m4\n/m4/inttypes_h.m4\n/m4/inttypes-pri.m4\n/m4/lcmessage.m4\n/m4/lib-ld.m4\n/m4/lib-link.m4\n/m4/lib-prefix.m4\n/m4/libtool.m4\n/m4/lock.m4\n/m4/longlong.m4\n/m4/lt~obsolete.m4\n/m4/ltoptions.m4\n/m4/ltsugar.m4\n/m4/ltversion.m4\n/m4/nls.m4\n/m4/pkg.m4\n/m4/po.m4\n/m4/printf-posix.m4\n/m4/progtest.m4\n/m4/size_max.m4\n/m4/stdint_h.m4\n/m4/threadlib.m4\n/m4/uintmax_t.m4\n/m4/visibility.m4\n/m4/wchar_t.m4\n/m4/wint_t.m4\n/m4/xsize.m4\n/MANIFEST\n/missing\n/po/boldquot.sed\n/po/en@boldquot.header\n/po/en@quot.header\n/po/insert-header.sin\n/po/Makefile.in.in\n/po/Makevars\n/po/Makevars.template\n/po/POTFILES\n/po/quot.sed\n/po/remove-potcdate.sed\n/po/remove-potcdate.sin\n/po/Rules-quot\n/test-driver\n/ylwrap\n\n# Project specific files\n/common/config.h\n/common/config.h.in\n/common/types.h\n/dpkg/changelog\n/include/libfsrefs.h\n/include/libfsrefs/definitions.h\n/include/libfsrefs/features.h\n/include/libfsrefs/types.h\n/libfsrefs.pc\n/libfsrefs.spec\n/libfsrefs/libfsrefs.rc\n/libfsrefs/libfsrefs_definitions.h\n/fsrefstools/*.exe\n/fsrefstools/fsrefsinfo\n/tests/*.exe\n/tests/fsrefs_test_attribute_values\n/tests/fsrefs_test_block_descriptor\n/tests/fsrefs_test_block_reference\n/tests/fsrefs_test_block_tree\n/tests/fsrefs_test_block_tree_node\n/tests/fsrefs_test_checkpoint\n/tests/fsrefs_test_data_run\n/tests/fsrefs_test_directory_entry\n/tests/fsrefs_test_directory_object\n/tests/fsrefs_test_error\n/tests/fsrefs_test_file_entry\n/tests/fsrefs_test_file_system\n/tests/fsrefs_test_io_handle\n/tests/fsrefs_test_metadata_block_header\n/tests/fsrefs_test_ministore_node\n/tests/fsrefs_test_ministore_tree\n/tests/fsrefs_test_node_header\n/tests/fsrefs_test_node_record\n/tests/fsrefs_test_notify\n/tests/fsrefs_test_objects_tree\n/tests/fsrefs_test_superblock\n/tests/fsrefs_test_support\n/tests/fsrefs_test_tools_info_handle\n/tests/fsrefs_test_tools_output\n/tests/fsrefs_test_tools_signal\n/tests/fsrefs_test_tree_header\n/tests/fsrefs_test_volume\n/tests/fsrefs_test_volume_header\n/tests/input\n/tests/notify_stream.log\n/tests/tmp*\n\n# Local library dependencies specific files\n/libbfio\n/libcdata\n/libcerror\n/libcfile\n/libclocale\n/libcnotify\n/libcpath\n/libcsplit\n/libcthreads\n/libfcache\n/libfdata\n/libfdatetime\n/libfguid\n/libfusn\n/libfwnt\n/libuna\n"
  },
  {
    "path": "AUTHORS",
    "content": "Acknowledgements: libfsrefs\n\nCopyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n\n"
  },
  {
    "path": "COPYING",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "COPYING.LESSER",
    "content": "                   GNU LESSER GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n\n  This version of the GNU Lesser General Public License incorporates\nthe terms and conditions of version 3 of the GNU General Public\nLicense, supplemented by the additional permissions listed below.\n\n  0. Additional Definitions.\n\n  As used herein, \"this License\" refers to version 3 of the GNU Lesser\nGeneral Public License, and the \"GNU GPL\" refers to version 3 of the GNU\nGeneral Public License.\n\n  \"The Library\" refers to a covered work governed by this License,\nother than an Application or a Combined Work as defined below.\n\n  An \"Application\" is any work that makes use of an interface provided\nby the Library, but which is not otherwise based on the Library.\nDefining a subclass of a class defined by the Library is deemed a mode\nof using an interface provided by the Library.\n\n  A \"Combined Work\" is a work produced by combining or linking an\nApplication with the Library.  The particular version of the Library\nwith which the Combined Work was made is also called the \"Linked\nVersion\".\n\n  The \"Minimal Corresponding Source\" for a Combined Work means the\nCorresponding Source for the Combined Work, excluding any source code\nfor portions of the Combined Work that, considered in isolation, are\nbased on the Application, and not on the Linked Version.\n\n  The \"Corresponding Application Code\" for a Combined Work means the\nobject code and/or source code for the Application, including any data\nand utility programs needed for reproducing the Combined Work from the\nApplication, but excluding the System Libraries of the Combined Work.\n\n  1. Exception to Section 3 of the GNU GPL.\n\n  You may convey a covered work under sections 3 and 4 of this License\nwithout being bound by section 3 of the GNU GPL.\n\n  2. Conveying Modified Versions.\n\n  If you modify a copy of the Library, and, in your modifications, a\nfacility refers to a function or data to be supplied by an Application\nthat uses the facility (other than as an argument passed when the\nfacility is invoked), then you may convey a copy of the modified\nversion:\n\n   a) under this License, provided that you make a good faith effort to\n   ensure that, in the event an Application does not supply the\n   function or data, the facility still operates, and performs\n   whatever part of its purpose remains meaningful, or\n\n   b) under the GNU GPL, with none of the additional permissions of\n   this License applicable to that copy.\n\n  3. Object Code Incorporating Material from Library Header Files.\n\n  The object code form of an Application may incorporate material from\na header file that is part of the Library.  You may convey such object\ncode under terms of your choice, provided that, if the incorporated\nmaterial is not limited to numerical parameters, data structure\nlayouts and accessors, or small macros, inline functions and templates\n(ten or fewer lines in length), you do both of the following:\n\n   a) Give prominent notice with each copy of the object code that the\n   Library is used in it and that the Library and its use are\n   covered by this License.\n\n   b) Accompany the object code with a copy of the GNU GPL and this license\n   document.\n\n  4. Combined Works.\n\n  You may convey a Combined Work under terms of your choice that,\ntaken together, effectively do not restrict modification of the\nportions of the Library contained in the Combined Work and reverse\nengineering for debugging such modifications, if you also do each of\nthe following:\n\n   a) Give prominent notice with each copy of the Combined Work that\n   the Library is used in it and that the Library and its use are\n   covered by this License.\n\n   b) Accompany the Combined Work with a copy of the GNU GPL and this license\n   document.\n\n   c) For a Combined Work that displays copyright notices during\n   execution, include the copyright notice for the Library among\n   these notices, as well as a reference directing the user to the\n   copies of the GNU GPL and this license document.\n\n   d) Do one of the following:\n\n       0) Convey the Minimal Corresponding Source under the terms of this\n       License, and the Corresponding Application Code in a form\n       suitable for, and under terms that permit, the user to\n       recombine or relink the Application with a modified version of\n       the Linked Version to produce a modified Combined Work, in the\n       manner specified by section 6 of the GNU GPL for conveying\n       Corresponding Source.\n\n       1) Use a suitable shared library mechanism for linking with the\n       Library.  A suitable mechanism is one that (a) uses at run time\n       a copy of the Library already present on the user's computer\n       system, and (b) will operate properly with a modified version\n       of the Library that is interface-compatible with the Linked\n       Version.\n\n   e) Provide Installation Information, but only if you would otherwise\n   be required to provide such information under section 6 of the\n   GNU GPL, and only to the extent that such information is\n   necessary to install and execute a modified version of the\n   Combined Work produced by recombining or relinking the\n   Application with a modified version of the Linked Version. (If\n   you use option 4d0, the Installation Information must accompany\n   the Minimal Corresponding Source and Corresponding Application\n   Code. If you use option 4d1, you must provide the Installation\n   Information in the manner specified by section 6 of the GNU GPL\n   for conveying Corresponding Source.)\n\n  5. Combined Libraries.\n\n  You may place library facilities that are a work based on the\nLibrary side by side in a single library together with other library\nfacilities that are not Applications and are not covered by this\nLicense, and convey such a combined library under terms of your\nchoice, if you do both of the following:\n\n   a) Accompany the combined library with a copy of the same work based\n   on the Library, uncombined with any other library facilities,\n   conveyed under the terms of this License.\n\n   b) Give prominent notice with the combined library that part of it\n   is a work based on the Library, and explaining where to find the\n   accompanying uncombined form of the same work.\n\n  6. Revised Versions of the GNU Lesser General Public License.\n\n  The Free Software Foundation may publish revised and/or new versions\nof the GNU Lesser General Public License from time to time. Such new\nversions will be similar in spirit to the present version, but may\ndiffer in detail to address new problems or concerns.\n\n  Each version is given a distinguishing version number. If the\nLibrary as you received it specifies that a certain numbered version\nof the GNU Lesser General Public License \"or any later version\"\napplies to it, you have the option of following the terms and\nconditions either of that published version or of any later version\npublished by the Free Software Foundation. If the Library as you\nreceived it does not specify a version number of the GNU Lesser\nGeneral Public License, you may choose any version of the GNU Lesser\nGeneral Public License ever published by the Free Software Foundation.\n\n  If the Library as you received it specifies that a proxy can decide\nwhether future versions of the GNU Lesser General Public License shall\napply, that proxy's public statement of acceptance of any version is\npermanent authorization for you to choose that version for the\nLibrary.\n"
  },
  {
    "path": "ChangeLog",
    "content": "TODO\n\nFormat support\n* Use checkpoint in determining block offsets\n* Rename metadata block header to block header ?\n* Rename metadata block size to page size ?\n* Use directory object name records in determining directory entries and lookup detailed entry record on demand\n* Add support for multi node file values ministore tree\n\nAPI\n* add function to retrieve container size\n\n20141011\n* see `git log' for more recent change log\n* removed README.macosx\n* updated dependencies\n* changes for project site move\n\n20140529\n* updated dependencies\n\n20140118\n* 2014 update\n* updated dependencies\n\n20131109\n* updated dependencies\n* code clean up\n\n20130915\n* code clean up\n\n20130914\n* updated dependencies\n* added libcthreads build support\n\n20130224\n* updated dependencies\n* 2013 update\n\n20120930\n* worked on format\n\n20120929\n* updated dependencies\n* worked on format\n\n20120528\n* worked on format\n\n20120527\n* initial version based on libfsntfs\n\n"
  },
  {
    "path": "Makefile.am",
    "content": "ACLOCAL_AMFLAGS = -I m4\n\nSUBDIRS = \\\n\tinclude \\\n\tcommon \\\n\tlibcerror \\\n\tlibcthreads \\\n\tlibcdata \\\n\tlibclocale \\\n\tlibcnotify \\\n\tlibcsplit \\\n\tlibuna \\\n\tlibcfile \\\n\tlibcpath \\\n\tlibbfio \\\n\tlibfcache \\\n\tlibfdata \\\n\tlibfdatetime \\\n\tlibfguid \\\n\tlibfwnt \\\n\tlibfsrefs \\\n\tlibfusn \\\n\tfsrefstools \\\n\tpo \\\n\tmanuals \\\n\ttests \\\n\tossfuzz \\\n\tmsvscpp\n\nDPKG_FILES = \\\n\tdpkg/changelog \\\n\tdpkg/changelog.in \\\n\tdpkg/compat \\\n\tdpkg/control \\\n\tdpkg/copyright \\\n\tdpkg/rules \\\n\tdpkg/libfsrefs-dev.install \\\n\tdpkg/libfsrefs.install \\\n\tdpkg/libfsrefs-tools.install \\\n\tdpkg/source/format\n\nGETTEXT_FILES = \\\n\tconfig.rpath \\\n\tpo/Makevars.in\n\nPKGCONFIG_FILES = \\\n\tlibfsrefs.pc.in\n\nSPEC_FILES = \\\n\tlibfsrefs.spec \\\n\tlibfsrefs.spec.in\n\nEXTRA_DIST = \\\n\t$(DPKG_FILES) \\\n\t$(GETTEXT_FILES) \\\n\t$(PKGCONFIG_FILES) \\\n\t$(SPEC_FILES)\n\nDISTCLEANFILES = \\\n\tconfig.status \\\n\tconfig.cache \\\n\tconfig.log \\\n\tlibfsrefs.pc \\\n\tlibfsrefs.spec \\\n\tMakefile \\\n\tMakefile.in \\\n\tpo/Makevars\n\npkgconfigdir = $(libdir)/pkgconfig\n\npkgconfig_DATA = \\\n\tlibfsrefs.pc\n\nlibtool: @LIBTOOL_DEPS@\n\tcd $(srcdir) && $(SHELL) ./config.status --recheck\n\nlib: library\n\nlibrary:\n\t(cd $(srcdir)/common && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/libcerror && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/libcthreads && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/libcdata && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/libclocale && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/libcnotify && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/libcsplit && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/libuna && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/libcfile && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/libcpath && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/libbfio && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/libfcache && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/libfdata && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/libfdatetime && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/libfguid && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/libfwnt && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/libfsrefs && $(MAKE) $(AM_MAKEFLAGS))\n\t(cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS))\n\n"
  },
  {
    "path": "NEWS",
    "content": ""
  },
  {
    "path": "README",
    "content": "libfsrefs is a library to access the Resilient File System (ReFS).\n\nNote that this project currently only focuses on the analysis of the format.\n\nProject information:\n\n* Status: experimental\n* Licence: LGPLv3+\n\nRead-only supported ReFS formats:\n\n* version 1\n\nUnsupported ReFS format features:\n\n* ReFS version 2\n* ReFS version 3\n\nPlanned:\n\n* Finish library\n\nFor more information see:\n\n* Project documentation: https://github.com/libyal/libfsrefs/wiki/Home\n* How to build from source: https://github.com/libyal/libfsrefs/wiki/Building\n\n"
  },
  {
    "path": "acinclude.m4",
    "content": "dnl Checks for required headers and functions\ndnl\ndnl Version: 20200713\n\ndnl Function to detect if libfsrefs dependencies are available\nAC_DEFUN([AX_LIBFSREFS_CHECK_LOCAL],\n  [dnl Check for internationalization functions in libfsrefs/libfsrefs_i18n.c\n  AC_CHECK_FUNCS([bindtextdomain])\n])\n\ndnl Function to detect if fsrefstools dependencies are available\nAC_DEFUN([AX_FSREFSTOOLS_CHECK_LOCAL],\n  [AC_CHECK_HEADERS([signal.h sys/signal.h unistd.h])\n\n  AC_CHECK_FUNCS([close getopt setvbuf])\n\n  AS_IF(\n   [test \"x$ac_cv_func_close\" != xyes],\n   [AC_MSG_FAILURE(\n     [Missing function: close],\n     [1])\n  ])\n])\n\ndnl Function to check if DLL support is needed\nAC_DEFUN([AX_LIBFSREFS_CHECK_DLL_SUPPORT],\n  [AS_IF(\n    [test \"x$enable_shared\" = xyes && test \"x$ac_cv_enable_static_executables\" = xno],\n    [AS_CASE(\n      [$host],\n      [*cygwin* | *mingw* | *msys*],\n      [AC_DEFINE(\n        [HAVE_DLLMAIN],\n        [1],\n        [Define to 1 to enable the DllMain function.])\n      AC_SUBST(\n        [HAVE_DLLMAIN],\n        [1])\n\n      AC_SUBST(\n        [LIBFSREFS_DLL_EXPORT],\n        [\"-DLIBFSREFS_DLL_EXPORT\"])\n\n      AC_SUBST(\n        [LIBFSREFS_DLL_IMPORT],\n        [\"-DLIBFSREFS_DLL_IMPORT\"])\n      ])\n    ])\n  ])\n\n"
  },
  {
    "path": "appveyor.yml",
    "content": "environment:\n  matrix:\n  - TARGET: vs2008\n    BUILD_ENVIRONMENT: msbuild\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013\n    VisualStudioVersion: 9.0\n    platform: Win32\n    configuration: Release\n    PYTHON_PATH: \"C:\\\\Python37\"\n  - TARGET: vs2010\n    BUILD_ENVIRONMENT: msbuild\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013\n    VisualStudioVersion: 10.0\n    platform: Win32\n    configuration: Release\n    PYTHON_PATH: \"C:\\\\Python37\"\n  - TARGET: vs2012\n    BUILD_ENVIRONMENT: msbuild\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013\n    VisualStudioVersion: 11.0\n    platform: Win32\n    configuration: Release\n    PYTHON_PATH: \"C:\\\\Python37\"\n  - TARGET: vs2013\n    BUILD_ENVIRONMENT: msbuild\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013\n    VisualStudioVersion: 12.0\n    platform: Win32\n    configuration: Release\n    PYTHON_PATH: \"C:\\\\Python37\"\n  - TARGET: vs2015\n    BUILD_ENVIRONMENT: msbuild\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015\n    VisualStudioVersion: 14.0\n    platform: Win32\n    configuration: Release\n    PYTHON_PATH: \"C:\\\\Python38\"\n  - TARGET: vs2017\n    BUILD_ENVIRONMENT: msbuild\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017\n    VisualStudioVersion: 15.0\n    platform: Win32\n    configuration: Release\n    PYTHON_PATH: \"C:\\\\Python38\"\n  - TARGET: vs2019\n    BUILD_ENVIRONMENT: msbuild\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019\n    VisualStudioVersion: 16.0\n    platform: Win32\n    configuration: Release\n    PYTHON_PATH: \"C:\\\\Python311\"\n  - TARGET: vs2022\n    BUILD_ENVIRONMENT: msbuild\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022\n    VisualStudioVersion: 17.0\n    platform: Win32\n    configuration: Release\n    PYTHON_PATH: \"C:\\\\Python311\"\n  - TARGET: vs2022-vsdebug\n    BUILD_ENVIRONMENT: msbuild\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022\n    VisualStudioVersion: 17.0\n    platform: Win32\n    configuration: VSDebug\n    PYTHON_PATH: \"C:\\\\Python311\"\n  - TARGET: vs2022-x64\n    BUILD_ENVIRONMENT: msbuild\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022\n    VisualStudioVersion: 17.0\n    platform: x64\n    configuration: Release\n    PYTHON_PATH: \"C:\\\\Python311\"\n  - TARGET: macos-x64-clang\n    BUILD_ENVIRONMENT: xcode\n    APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma\n    HOMEBREW_NO_INSTALL_CLEANUP: 1\n    CC: clang\n    CFLAGS: \"-I/usr/local/include\"\n    LDFLAGS: \"-L/usr/local/lib\"\n    CONFIGURE_OPTIONS: \"\"\n  - TARGET: macos-x64-gcc\n    BUILD_ENVIRONMENT: xcode\n    APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma\n    HOMEBREW_NO_INSTALL_CLEANUP: 1\n    CC: gcc\n    CFLAGS: \"-I/usr/local/include\"\n    LDFLAGS: \"-L/usr/local/lib\"\n    CONFIGURE_OPTIONS: \"\"\n  - TARGET: macos-pkgbuild\n    BUILD_ENVIRONMENT: xcode\n    APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma\n    HOMEBREW_NO_INSTALL_CLEANUP: 1\n    CONFIGURE_OPTIONS: \"--disable-dependency-tracking --prefix=/usr/local --with-pyprefix\"\n  - TARGET: cygwin64-gcc\n    BUILD_ENVIRONMENT: cygwin64\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022\n    CONFIGURE_OPTIONS: \"\"\n  - TARGET: cygwin64-gcc-no-optimization\n    BUILD_ENVIRONMENT: cygwin64\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022\n    CONFIGURE_OPTIONS: \"--enable-shared=no\"\n    CFLAGS: \"--coverage -O0\"\n    CPPFLAGS: \"-DOPTIMIZATION_DISABLED\"\n    LDFLAGS: \"--coverage\"\n  - TARGET: cygwin64-gcc-static-executables\n    BUILD_ENVIRONMENT: cygwin64\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022\n    CONFIGURE_OPTIONS: \"--enable-static-executables\"\n  - TARGET: mingw-w64-gcc\n    BUILD_ENVIRONMENT: mingw-w64\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022\n    CONFIGURE_OPTIONS: \"\"\n  - TARGET: mingw-w64-gcc-no-optimization\n    BUILD_ENVIRONMENT: mingw-w64\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022\n    CONFIGURE_OPTIONS: \"--enable-shared=no\"\n    CFLAGS: \"--coverage -O0\"\n    CPPFLAGS: \"-DOPTIMIZATION_DISABLED\"\n    LDFLAGS: \"--coverage\"\n  - TARGET: mingw-w64-gcc-static-executables\n    BUILD_ENVIRONMENT: mingw-w64\n    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022\n    CONFIGURE_OPTIONS: \"--enable-static-executables\"\n\ninstall:\n- cmd: if [%BUILD_ENVIRONMENT%]==[msbuild] (\n    git clone https://github.com/libyal/vstools.git ..\\vstools )\n- 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\n- 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\n- ps: If ($env:BUILD_ENVIRONMENT -eq \"cygwin64\") {\n    (New-Object Net.WebClient).DownloadFile(\"https://cygwin.com/setup-x86_64.exe\", \"C:\\\\cygwin64\\\\setup-x86_64.exe\") }\n- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (\n    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 )\n- cmd: if [%BUILD_ENVIRONMENT%]==[mingw-w64] (\n    C:\\msys64\\usr\\bin\\pacman -S --noconfirm --needed autoconf automake gettext-devel libtool make mingw-w64-x86_64-gcc pkg-config )\n- ps: If ( ( \"cygwin64-gcc-no-optimization\", \"mingw-w64-gcc-no-optimization\" ).Contains( $env:TARGET ) ) {\n    $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile ..\\codecov.exe }\n\nbuild_script:\n- ps: If ($env:BUILD_ENVIRONMENT -eq \"msbuild\" -or ($env:BUILD_ENVIRONMENT -eq \"python-tox\" -and $isWindows)) {\n    .\\synclibs.ps1;\n    .\\autogen.ps1 }\n- ps: If ($env:TARGET -eq \"vs2008\") {\n    .\\build.ps1 -VisualStudioVersion 2008 -PythonPath $env:PYTHON_PATH -VSToolsOptions \"--no-python-dll\" }\n- ps: If ( ( \"vs2010\", \"vs2012\", \"vs2013\", \"vs2015\" ).Contains( $env:TARGET ) ) {\n    .\\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\" }\n- ps: If ( ( \"vs2017\", \"vs2019\", \"vs2022\", \"vs2022-vsdebug\", \"vs2022-x64\" ).Contains( $env:TARGET ) ) {\n    .\\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\" }\n- 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\n- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (\n    xcopy /i /q /s C:\\projects\\libfsrefs C:\\cygwin64\\home\\appveyor\\libfsrefs &&\n    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'\" &&\n    C:\\cygwin64\\bin\\bash -e -l -c \"cd libfsrefs && tests/build.sh ${CONFIGURE_OPTIONS}\" )\n- cmd: if [%BUILD_ENVIRONMENT%]==[mingw-w64] (\n    xcopy /i /q /s C:\\projects\\libfsrefs C:\\msys64\\home\\appveyor\\libfsrefs &&\n    C:\\msys64\\usr\\bin\\bash -e -l -c \"cd libfsrefs && tests/build.sh ${CONFIGURE_OPTIONS}\" )\n\ntest_script:\n- cmd: rem Run tests\n- ps: If ($env:BUILD_ENVIRONMENT -eq \"msbuild\") {\n    .\\runtests.ps1 }\n- sh: if test ${BUILD_ENVIRONMENT} = \"xcode\" && test ${TARGET} != \"macos-pkgbuild\"; then tests/runtests.sh; fi\n- sh: if test ${TARGET} = \"macos-pkgbuild\"; then tests/pkgbuild.sh; fi\n- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (\n    C:\\cygwin64\\bin\\bash -l -c \"cd libfsrefs && tests/runtests.sh\" )\n- cmd: if [%BUILD_ENVIRONMENT%]==[mingw-w64] (\n    C:\\msys64\\usr\\bin\\bash -l -c \"cd libfsrefs && tests/runtests.sh\" )\n\nafter_test:\n- cmd: if [%TARGET%]==[cygwin64-gcc-no-optimization] (\n    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\" &&\n    C:\\projects\\codecov.exe -R \\cygwin64\\home\\appveyor\\libfsrefs --name %TARGET% )\n- cmd: if [%TARGET%]==[mingw-w64-gcc-no-optimization] (\n    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\" &&\n    C:\\projects\\codecov.exe -R \\msys64\\home\\appveyor\\libfsrefs --name %TARGET% )\n\n"
  },
  {
    "path": "autogen.ps1",
    "content": "# Script to generate the necessary files for a msvscpp build\n#\n# Version: 20241014\n\n$WinFlex = \"..\\win_flex_bison\\win_flex.exe\"\n$WinBison = \"..\\win_flex_bison\\win_bison.exe\"\n\n$Library = Get-Content -Path configure.ac | select -skip 3 -first 1 | % { $_ -Replace \"  \\[\",\"\" } | % { $_ -Replace \"\\],\",\"\" }\n$Version = Get-Content -Path configure.ac | select -skip 4 -first 1 | % { $_ -Replace \"  \\[\",\"\" } | % { $_ -Replace \"\\],\",\"\" }\n$Prefix = ${Library}.Substring(3)\n\nGet-Content -Path \"include\\${Library}.h.in\" | Out-File -Encoding ascii \"include\\${Library}.h\"\nGet-Content -Path \"include\\${Library}\\definitions.h.in\" | % { $_ -Replace \"@VERSION@\",\"${Version}\" } | Out-File -Encoding ascii \"include\\${Library}\\definitions.h\"\nGet-Content -Path \"include\\${Library}\\features.h.in\" | % { $_ -Replace \"@[A-Z0-9_]*@\",\"0\" } | Out-File -Encoding ascii \"include\\${Library}\\features.h\"\nGet-Content -Path \"include\\${Library}\\types.h.in\" | % { $_ -Replace \"@[A-Z0-9_]*@\",\"0\" } | Out-File -Encoding ascii \"include\\${Library}\\types.h\"\nGet-Content -Path \"common\\types.h.in\" | % { $_ -Replace \"@PACKAGE@\",\"${Library}\" } | Out-File -Encoding ascii \"common\\types.h\"\nGet-Content -Path \"${Library}\\${Library}_definitions.h.in\" | % { $_ -Replace \"@VERSION@\",\"${Version}\" } | Out-File -Encoding ascii \"${Library}\\${Library}_definitions.h\"\nGet-Content -Path \"${Library}\\${Library}.rc.in\" | % { $_ -Replace \"@VERSION@\",\"${Version}\" } | Out-File -Encoding ascii \"${Library}\\${Library}.rc\"\n\nIf (Test-Path \"setup.cfg.in\")\n{\n\tGet-Content -Path \"setup.cfg.in\" | % { $_ -Replace \"@VERSION@\",\"${Version}\" } | Out-File -Encoding ascii \"setup.cfg\"\n}\n\nIf (Test-Path \"${Prefix}.net\")\n{\n\tGet-Content -Path \"${Prefix}.net\\${Prefix}.net.rc.in\" | % { $_ -Replace \"@VERSION@\",\"${Version}\" } | Out-File -Encoding ascii \"${Prefix}.net\\${Prefix}.net.rc\"\n}\n\n$NamePrefix = \"\"\n\nForEach (${Library} in Get-ChildItem -Directory -Path \"lib*\")\n{\n\tForEach (${DirectoryElement} in Get-ChildItem -Path \"${Library}\\*.l\")\n\t{\n\t\t$OutputFile = ${DirectoryElement} -Replace \".l$\",\".c\"\n\n\t\t$NamePrefix = Split-Path -path ${DirectoryElement} -leaf\n\t\t$NamePrefix = ${NamePrefix} -Replace \".l$\",\"_\"\n\n\t\tWrite-Host \"Running: ${WinFlex} -Cf ${DirectoryElement}\"\n\n\t\t# PowerShell will raise NativeCommandError if win_flex writes to stdout or stderr\n\t\t# therefore 2>&1 is added and the output is stored in a variable.\n\t\t$Output = Invoke-Expression -Command \"& '${WinFlex}' -Cf ${DirectoryElement} 2>&1\"\n\t\tWrite-Host ${Output}\n\n\t\t# Moving manually since `win_flex -o filename' does not provide the expected behavior.\n\t\tMove-Item \"lex.yy.c\" ${OutputFile} -force\n\t}\n\n\tForEach (${DirectoryElement} in Get-ChildItem -Path \"${Library}\\*.y\")\n\t{\n\t\t$OutputFile = ${DirectoryElement} -Replace \".y$\",\".c\"\n\n\t\tWrite-Host \"Running: ${WinBison} -d -v -l -p ${NamePrefix} -o ${OutputFile} ${DirectoryElement}\"\n\n\t\t# PowerShell will raise NativeCommandError if win_bison writes to stdout or stderr\n\t\t# therefore 2>&1 is added and the output is stored in a variable.\n\t\t$Output = Invoke-Expression -Command \"& '${WinBison}' -d -v -l -p ${NamePrefix} -o ${OutputFile} ${DirectoryElement} 2>&1\"\n\t\tWrite-Host ${Output}\n\t}\n}\n\n"
  },
  {
    "path": "autogen.sh",
    "content": "#!/bin/sh\n# Script to generate configure and Makefile using the autotools.\n#\n# Version: 20241013\n\nEXIT_SUCCESS=0;\nEXIT_FAILURE=1;\n\nBINDIR=`which aclocal`;\nBINDIR=`dirname ${BINDIR}`;\n\nif ! test -x \"${BINDIR}/aclocal\" && test \"${BINDIR}\" != \"/usr/bin\";\nthen\n\tBINDIR=\"/usr/bin\";\nfi\nif ! test -x \"${BINDIR}/aclocal\" && test \"${BINDIR}\" != \"/usr/local/bin\";\nthen\n\tBINDIR=\"/usr/local/bin\";\nfi\nif ! test -x \"${BINDIR}/aclocal\" && test \"${BINDIR}\" != \"/opt/local/bin\";\nthen\n\t# Default location of MacPorts installed binaries.\n\tBINDIR=\"/opt/local/bin\";\nfi\nif ! test -x \"${BINDIR}/aclocal\" && test \"${BINDIR}\" != \"/opt/homebrew/bin\";\nthen\n\t# Default location of Homebrew installed binaries.\n\tBINDIR=\"/opt/homebrew/bin\";\nfi\nif ! test -x \"${BINDIR}/aclocal\" && test \"${BINDIR}\" != \"/mingw32/bin\";\nthen\n\t# Default location of 32-bit MSYS2-MinGW installed binaries.\n\tBINDIR=\"/mingw32/bin\";\nfi\nif ! test -x \"${BINDIR}/aclocal\" && test \"${BINDIR}\" != \"/mingw64/bin\";\nthen\n\t# Default location of 64-bit MSYS2-MinGW installed binaries.\n\tBINDIR=\"/mingw64/bin\";\nfi\n\nif ! test -x \"${BINDIR}/aclocal\";\nthen\n\techo \"Unable to find autotools\";\n\n\texit ${EXIT_FAILURE};\nfi\n\nACLOCAL=\"${BINDIR}/aclocal\";\nAUTOCONF=\"${BINDIR}/autoconf\";\nAUTOHEADER=\"${BINDIR}/autoheader\";\nAUTOMAKE=\"${BINDIR}/automake\";\nAUTOPOINT=\"${BINDIR}/autopoint\";\nAUTORECONF=\"${BINDIR}/autoreconf\";\nLIBTOOLIZE=\"${BINDIR}/libtoolize\";\nPKGCONFIG=\"${BINDIR}/pkg-config\";\n\nif test \"${OSTYPE}\" = \"msys\";\nthen\n\t# Work-around for autopoint failing to detect gettext version\n\t# using func_trace (which is not available) on MSYS by writing\n\t# the gettext version to intl/VERSION.\n\tif ! test -d intl;\n\tthen\n\t\tmkdir intl;\n\tfi\n\tGETTEXT_VERSION=`gettext --version | head -n1 | sed 's/^.* //'`;\n\n\techo \"gettext-${GETTEXT_VERSION}\" > intl/VERSION;\n\nelif ! test -x \"${PKGCONFIG}\";\nthen\n\tif test \"${BINDIR}\" != \"/usr/bin\";\n\tthen\n\t\t# On OpenBSD most of the autotools are located in\n\t\t# /usr/local/bin while pkg-config is located in /usr/bin\n\t\tPKGCONFIG=\"/usr/bin/pkg-config\";\n\tfi\n\tif ! test -x \"${PKGCONFIG}\";\n\tthen\n\t\techo \"Unable to find: pkg-config\";\n\n\t\texit ${EXIT_FAILURE};\n\tfi\nfi\n\nif test -x \"${AUTORECONF}\";\nthen\n\t${AUTORECONF} --force --install\n\tif test $? -ne 0;\n\tthen\n\t\texit $?;\n\tfi\nelse\n\tif ! test -x \"${ACLOCAL}\";\n\tthen\n\t\techo \"Unable to find: aclocal\";\n\n\t\texit ${EXIT_FAILURE};\n\tfi\n\tif ! test -x \"${AUTOCONF}\";\n\t\tthen\n\t\techo \"Unable to find: autoconf\";\n\n\t\texit ${EXIT_FAILURE};\n\tfi\n\tif ! test -x \"${AUTOHEADER}\";\n\tthen\n\t\techo \"Unable to find: autoheader\";\n\n\t\texit ${EXIT_FAILURE};\n\tfi\n\tif ! test -x \"${AUTOMAKE}\";\n\tthen\n\t\techo \"Unable to find: automake\";\n\n\t\texit ${EXIT_FAILURE};\n\tfi\n\tif ! test -x \"${AUTOPOINT}\";\n\tthen\n\t\techo \"Unable to find: autopoint\";\n\n\t\texit ${EXIT_FAILURE};\n\tfi\n\tif ! test -x \"${LIBTOOLIZE}\";\n\tthen\n\t\techo \"Unable to find: libtoolize\";\n\n\t\texit ${EXIT_FAILURE};\n\tfi\n\n\t${AUTOPOINT} --force;\n\tif test $? -ne 0;\n\tthen\n\t\texit $?;\n\tfi\n\n\t${ACLOCAL} --force --install -I m4;\n\tif test $? -ne 0;\n\tthen\n\t\texit $?;\n\tfi\n\n\t${LIBTOOLIZE} --force;\n\tif test $? -ne 0;\n\tthen\n\t\texit $?;\n\tfi\n\n\t${AUTOHEADER} --force;\n\tif test $? -ne 0;\n\tthen\n\t\texit $?;\n\tfi\n\n\t${AUTOCONF} --force;\n\tif test $? -ne 0;\n\tthen\n\t\texit $?;\n\tfi\n\n\t${AUTOMAKE} --force --add-missing;\n\tif test $? -ne 0;\n\tthen\n\t\texit $?;\n\tfi\n\nfi\n\nexit ${EXIT_SUCCESS};\n\n"
  },
  {
    "path": "build.ps1",
    "content": "# Script that builds libfsrefs\n#\n# Version: 20251125\n\nParam (\n\t[string]$Configuration = ${Env:Configuration},\n\t[string]$Platform = ${Env:Platform},\n\t[string]$PlatformToolset = \"\",\n\t[string]$PythonPath = \"C:\\Python311\",\n\t[string]$VisualStudioVersion = \"\",\n\t[string]$VSToolsOptions = \"--extend-with-x64\",\n\t[string]$VSToolsPath = \"..\\vstools\"\n)\n\n$ExitSuccess = 0\n$ExitFailure = 1\n\n$Python = \"${PythonPath}\\python.exe\"\n\n$Git = \"git\"\n$GitUrl = \"https://github.com/libyal/vstools.git\"\n\n$MSVSCppConvert = \"${VSToolsPath}\\vstools\\scripts\\msvscpp_convert.py\"\n\nIf (-Not (Test-Path $Python))\n{\n    Write-Host \"Missing Python: ${Python}\" -foreground Red\n\n    Exit ${ExitFailure}\n}\nIf (-Not (Test-Path ${VSToolsPath}))\n{\n\t# PowerShell will raise NativeCommandError if git writes to stdout or stderr\n\t# therefore 2>&1 is added and the output is stored in a variable.\n\t$Output = Invoke-Expression -Command \"${Git} clone ${GitUrl} ${VSToolsPath} 2>&1\" | %{ \"$_\" }\n}\nElse\n{\n\tPush-Location \"${VSToolsPath}\"\n\n\tTry\n\t{\n\t\t# Make sure vstools are up to date.\n\t\t$Output = Invoke-Expression -Command \"${Git} pull 2>&1\" | %{ \"$_\" }\n\t}\n\tFinally\n\t{\n\t\tPop-Location\n\t}\n}\nIf (-Not (Test-Path ${MSVSCppConvert}))\n{\n\tWrite-Host \"Missing msvscpp_convert.py: ${MSVSCppConvert}\" -foreground Red\n\n\tExit ${ExitFailure}\n}\nIf (-Not ${VisualStudioVersion})\n{\n\t$VisualStudioVersion = \"2022\"\n\n\tWrite-Host \"Visual Studio version not set defauting to: ${VisualStudioVersion}\" -foreground Red\n}\nIf ((${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\"))\n{\n\tWrite-Host \"Unsupported Visual Studio version: ${VisualStudioVersion}\" -foreground Red\n\n\tExit ${ExitFailure}\n}\n$MSBuild = \"\"\n\nIf (${VisualStudioVersion} -eq \"2008\")\n{\n\t$MSBuild = \"C:\\Windows\\Microsoft.NET\\Framework\\v3.5\\MSBuild.exe\"\n}\nElseIf ((${VisualStudioVersion} -eq \"2010\") -Or (${VisualStudioVersion} -eq \"2012\"))\n{\n\t$MSBuild = \"C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MSBuild.exe\"\n}\nElseIf (${VisualStudioVersion} -eq \"2013\")\n{\n\t$MSBuild = \"C:\\Program Files (x86)\\MSBuild\\12.0\\Bin\\MSBuild.exe\"\n}\nElseIf (${VisualStudioVersion} -eq \"2015\")\n{\n\t$MSBuild = \"C:\\Program Files (x86)\\MSBuild\\14.0\\Bin\\MSBuild.exe\"\n}\nElseIf (${VisualStudioVersion} -eq \"2017\")\n{\n\t$Results = Get-ChildItem -Path \"C:\\Program Files\\Microsoft Visual Studio\\${VisualStudioVersion}\\*\\MSBuild\\15.0\\Bin\\MSBuild.exe\" -Recurse -ErrorAction SilentlyContinue -Force\n\n\tIf ($Results.Count -eq 0)\n\t{\n\t\t$Results = Get-ChildItem -Path \"C:\\Program Files (x86)\\Microsoft Visual Studio\\${VisualStudioVersion}\\*\\MSBuild\\15.0\\Bin\\MSBuild.exe\" -Recurse -ErrorAction SilentlyContinue -Force\n\t}\n\tIf ($Results.Count -gt 0)\n\t{\n\t\t$MSBuild = $Results[0].FullName\n\t}\n}\nElseIf (${VisualStudioVersion} -eq \"2019\" -Or ${VisualStudioVersion} -eq \"2022\")\n{\n\t$Results = Get-ChildItem -Path \"C:\\Program Files\\Microsoft Visual Studio\\${VisualStudioVersion}\\*\\MSBuild\\Current\\Bin\\MSBuild.exe\" -Recurse -ErrorAction SilentlyContinue -Force\n\n\tIf ($Results.Count -eq 0)\n\t{\n\t\t$Results = Get-ChildItem -Path \"C:\\Program Files (x86)\\Microsoft Visual Studio\\${VisualStudioVersion}\\*\\MSBuild\\Current\\Bin\\MSBuild.exe\" -Recurse -ErrorAction SilentlyContinue -Force\n\t}\n\tIf ($Results.Count -gt 0)\n\t{\n\t\t$MSBuild = $Results[0].FullName\n\t}\n}\nIf (-Not ${MSBuild})\n{\n\tWrite-Host \"Unable to determine path to msbuild.exe\" -foreground Red\n\n\tExit ${ExitFailure}\n}\nElseIf (-Not (Test-Path ${MSBuild}))\n{\n\tWrite-Host \"Missing msbuild.exe: ${MSBuild}\" -foreground Red\n\n\tExit ${ExitFailure}\n}\n\nIf (${VisualStudioVersion} -eq \"2008\")\n{\n\t$VSSolutionPath = \"msvscpp\"\n}\nElse\n{\n\t$VSSolutionPath = \"vs${VisualStudioVersion}\"\n\n\tIf (-Not (Test-Path \"${VSSolutionPath}\"))\n\t{\n\t\t${Env:PYTHONPATH} = ${VSToolsPath}\n\n\t\tInvoke-Expression -Command \"& '${Python}' ${MSVSCppConvert} --output-format ${VisualStudioVersion} ${VSToolsOptions} msvscpp\\libfsrefs.sln 2>&1\" | %{ \"$_\" }\n\t}\n}\n$VSSolutionFile = \"${VSSolutionPath}\\libfsrefs.sln\"\n\nIf (-Not (Test-Path \"${VSSolutionFile}\"))\n{\n\tWrite-Host \"Missing Visual Studio ${VisualStudioVersion} solution file: ${VSSolutionFile}\" -foreground Red\n\n\tExit ${ExitFailure}\n}\nIf (-Not ${Configuration})\n{\n\t$Configuration = \"Release\"\n\n\tWrite-Host \"Configuration not set defauting to: ${Configuration}\"\n}\nIf (-Not ${Platform})\n{\n\t$Platform = \"Win32\"\n\n\tWrite-Host \"Platform not set defauting to: ${Platform}\"\n}\n$PlatformToolset = \"\"\n\nIf (-Not ${PlatformToolset})\n{\n\tIf (${VisualStudioVersion} -eq \"2015\")\n\t{\n\t\t$PlatformToolset = \"v140\"\n\t}\n\tElseIf (${VisualStudioVersion} -eq \"2017\")\n\t{\n\t\t$PlatformToolset = \"v141\"\n\t}\n\tElseIf (${VisualStudioVersion} -eq \"2019\")\n\t{\n\t\t$PlatformToolset = \"v142\"\n\t}\n\tElseIf (${VisualStudioVersion} -eq \"2022\")\n\t{\n\t\t$PlatformToolset = \"v143\"\n\t}\n\tWrite-Host \"PlatformToolset not set defauting to: ${PlatformToolset}\"\n}\n$MSBuildOptions = \"/verbosity:quiet /target:Build /property:Configuration=${Configuration},Platform=${Platform}\"\n\nIf (${PlatformToolset})\n{\n\t$MSBuildOptions = \"${MSBuildOptions} /property:PlatformToolset=${PlatformToolset}\"\n}\nIf (${Env:APPVEYOR} -eq \"True\")\n{\n\tInvoke-Expression -Command \"& '${MSBuild}' ${MSBuildOptions} ${VSSolutionFile} /logger:'C:\\Program Files\\AppVeyor\\BuildAgent\\Appveyor.MSBuildLogger.dll' 2>&1\" | %{ \"$_\" }\n}\nElse\n{\n\tInvoke-Expression -Command \"& '${MSBuild}' ${MSBuildOptions} ${VSSolutionFile} 2>&1\" | %{ \"$_\" }\n}\n\nExit ${ExitSuccess}\n"
  },
  {
    "path": "common/Makefile.am",
    "content": "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_borlandc.h \\\n\tconfig_msc.h \\\n\tconfig_winapi.h \\\n\tfile_stream.h \\\n\tmemory.h \\\n\tnarrow_string.h \\\n\tsystem_string.h \\\n\ttypes.h \\\n\ttypes.h.in \\\n\twide_string.h\n\nDISTCLEANFILES = \\\n\tconfig.h \\\n\ttypes.h \\\n\tMakefile \\\n\tMakefile.in\n\n"
  },
  {
    "path": "common/byte_stream.h",
    "content": "/*\n * Byte stream functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _BYTE_STREAM_H )\n#define _BYTE_STREAM_H\n\n#include \"common.h\"\n#include \"types.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\n#define _BYTE_STREAM_HOST_IS_ENDIAN_BIG\t\t( *((uint32_t *) \"\\x01\\x02\\x03\\x04\" ) == 0x01020304 )\n#define _BYTE_STREAM_HOST_IS_ENDIAN_LITTLE\t( *((uint32_t *) \"\\x01\\x02\\x03\\x04\" ) == 0x04030201 )\n#define _BYTE_STREAM_HOST_IS_ENDIAN_MIDDLE\t( *((uint32_t *) \"\\x01\\x02\\x03\\x04\" ) == 0x02010403 )\n\n#define _BYTE_STREAM_ENDIAN_BIG\t\t\t(uint8_t) 'b'\n#define _BYTE_STREAM_ENDIAN_LITTLE\t\t(uint8_t) 'l'\n#define _BYTE_STREAM_ENDIAN_MIDDLE\t\t(uint8_t) 'm'\n\ntypedef union byte_stream_float32\n{\n\tfloat floating_point;\n\tuint32_t integer;\n\n} byte_stream_float32_t;\n\ntypedef union byte_stream_float64\n{\n\tdouble floating_point;\n\tuint64_t integer;\n\n} byte_stream_float64_t;\n\n#define byte_stream_copy_to_uint16_big_endian( byte_stream, value ) \\\n\t( value )   = ( byte_stream )[ 0 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 1 ];\n\n#define byte_stream_copy_to_uint16_little_endian( byte_stream, value ) \\\n\t( value )   = ( byte_stream )[ 1 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 0 ];\n\n#define byte_stream_copy_to_uint24_big_endian( byte_stream, value ) \\\n\t( value )   = ( byte_stream )[ 0 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 1 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 2 ];\n\n#define byte_stream_copy_to_uint24_little_endian( byte_stream, value ) \\\n\t( value )   = ( byte_stream )[ 2 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 1 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 0 ];\n\n#define byte_stream_copy_to_uint32_big_endian( byte_stream, value ) \\\n\t( value )   = ( byte_stream )[ 0 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 1 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 2 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 3 ];\n\n#define byte_stream_copy_to_uint32_little_endian( byte_stream, value ) \\\n\t( value )   = ( byte_stream )[ 3 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 2 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 1 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 0 ];\n\n#define byte_stream_copy_to_uint48_big_endian( byte_stream, value ) \\\n\t( value )   = ( byte_stream )[ 0 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 1 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 2 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 3 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 4 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 5 ];\n\n#define byte_stream_copy_to_uint48_little_endian( byte_stream, value ) \\\n\t( value )  |= ( byte_stream )[ 5 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 4 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 3 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 2 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 1 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 0 ];\n\n#define byte_stream_copy_to_uint64_big_endian( byte_stream, value ) \\\n\t( value )   = ( byte_stream )[ 0 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 1 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 2 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 3 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 4 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 5 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 6 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 7 ];\n\n#define byte_stream_copy_to_uint64_little_endian( byte_stream, value ) \\\n\t( value )   = ( byte_stream )[ 7 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 6 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 5 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 4 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 3 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 2 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 1 ]; \\\n\t( value ) <<= 8; \\\n\t( value )  |= ( byte_stream )[ 0 ];\n\n#define byte_stream_copy_from_uint16_big_endian( byte_stream, value ) \\\n\t( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \\\n\t( byte_stream )[ 1 ] = (uint8_t) ( ( value ) & 0x0ff )\n\n#define byte_stream_copy_from_uint16_little_endian( byte_stream, value ) \\\n\t( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \\\n\t( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff )\n\n#define byte_stream_copy_from_uint24_big_endian( byte_stream, value ) \\\n\t( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \\\n\t( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \\\n\t( byte_stream )[ 2 ] = (uint8_t) ( ( value ) & 0x0ff )\n\n#define byte_stream_copy_from_uint24_little_endian( byte_stream, value ) \\\n\t( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \\\n\t( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \\\n\t( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff )\n\n#define byte_stream_copy_from_uint32_big_endian( byte_stream, value ) \\\n\t( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \\\n\t( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \\\n\t( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \\\n\t( byte_stream )[ 3 ] = (uint8_t) ( ( value ) & 0x0ff )\n\n#define byte_stream_copy_from_uint32_little_endian( byte_stream, value ) \\\n\t( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \\\n\t( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \\\n\t( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \\\n\t( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff )\n\n#define byte_stream_copy_from_uint48_big_endian( byte_stream, value ) \\\n\t( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 40 ) & 0x0ff ); \\\n\t( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 32 ) & 0x0ff ); \\\n\t( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \\\n\t( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \\\n\t( byte_stream )[ 4 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \\\n\t( byte_stream )[ 5 ] = (uint8_t) ( ( value ) & 0x0ff )\n\n#define byte_stream_copy_from_uint48_little_endian( byte_stream, value ) \\\n\t( byte_stream )[ 5 ] = (uint8_t) ( ( ( value ) >> 40 ) & 0x0ff ); \\\n\t( byte_stream )[ 4 ] = (uint8_t) ( ( ( value ) >> 32 ) & 0x0ff ); \\\n\t( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \\\n\t( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \\\n\t( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \\\n\t( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff )\n\n#define byte_stream_copy_from_uint64_big_endian( byte_stream, value ) \\\n\t( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 56 ) & 0x0ff ); \\\n\t( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 48 ) & 0x0ff ); \\\n\t( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 40 ) & 0x0ff ); \\\n\t( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 32 ) & 0x0ff ); \\\n\t( byte_stream )[ 4 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \\\n\t( byte_stream )[ 5 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \\\n\t( byte_stream )[ 6 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \\\n\t( byte_stream )[ 7 ] = (uint8_t) ( ( value ) & 0x0ff )\n\n#define byte_stream_copy_from_uint64_little_endian( byte_stream, value ) \\\n\t( byte_stream )[ 7 ] = (uint8_t) ( ( ( value ) >> 56 ) & 0x0ff ); \\\n\t( byte_stream )[ 6 ] = (uint8_t) ( ( ( value ) >> 48 ) & 0x0ff ); \\\n\t( byte_stream )[ 5 ] = (uint8_t) ( ( ( value ) >> 40 ) & 0x0ff ); \\\n\t( byte_stream )[ 4 ] = (uint8_t) ( ( ( value ) >> 32 ) & 0x0ff ); \\\n\t( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \\\n\t( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \\\n\t( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \\\n\t( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff )\n\n#define byte_stream_bit_rotate_left_8bit( byte_stream, number_of_bits ) \\\n\t( ( ( byte_stream ) << ( number_of_bits ) ) | ( ( byte_stream ) >> ( 8 - ( number_of_bits ) ) ) )\n\n#define byte_stream_bit_rotate_right_8bit( byte_stream, number_of_bits ) \\\n\t( ( ( byte_stream ) >> ( number_of_bits ) ) | ( ( byte_stream ) << ( 8 - ( number_of_bits ) ) ) )\n\n#define byte_stream_bit_rotate_left_16bit( byte_stream, number_of_bits ) \\\n\t( ( ( byte_stream ) << ( number_of_bits ) ) | ( ( byte_stream ) >> ( 16 - ( number_of_bits ) ) ) )\n\n#define byte_stream_bit_rotate_right_16bit( byte_stream, number_of_bits ) \\\n\t( ( ( byte_stream ) >> ( number_of_bits ) ) | ( ( byte_stream ) << ( 16 - ( number_of_bits ) ) ) )\n\n#define byte_stream_bit_rotate_left_32bit( byte_stream, number_of_bits ) \\\n\t( ( ( byte_stream ) << ( number_of_bits ) ) | ( ( byte_stream ) >> ( 32 - ( number_of_bits ) ) ) )\n\n#define byte_stream_bit_rotate_right_32bit( byte_stream, number_of_bits ) \\\n\t( ( ( byte_stream ) >> ( number_of_bits ) ) | ( ( byte_stream ) << ( 32 - ( number_of_bits ) ) ) )\n\n#define byte_stream_bit_rotate_left_64bit( byte_stream, number_of_bits ) \\\n\t( ( ( byte_stream ) << ( number_of_bits ) ) | ( ( byte_stream ) >> ( 64 - ( number_of_bits ) ) ) )\n\n#define byte_stream_bit_rotate_right_64bit( byte_stream, number_of_bits ) \\\n\t( ( ( byte_stream ) >> ( number_of_bits ) ) | ( ( byte_stream ) << ( 64 - ( number_of_bits ) ) ) )\n\n#define byte_stream_bit_rotate_left( value, number_of_bits ) \\\n\t( ( ( value ) << ( number_of_bits ) ) | ( ( value ) >> ( ( sizeof( value ) << 3 ) - ( number_of_bits ) ) ) )\n\n#define byte_stream_bit_rotate_right( value, number_of_bits ) \\\n\t( ( ( value ) >> ( number_of_bits ) ) | ( ( value ) << ( ( sizeof( value ) << 3 ) - ( number_of_bits ) ) ) )\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _BYTE_STREAM_H ) */\n\n"
  },
  {
    "path": "common/common.h",
    "content": "/*\n * Common include file\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _COMMON_H )\n#define _COMMON_H\n\n#if defined( HAVE_CONFIG_H )\n#include \"config.h\"\n#endif\n\n/* Include the Borland/CodeGear C++ Builder compiler specific configuration\n */\n#if defined( __BORLANDC__ )\n#include \"config_borlandc.h\"\n\n/* Include the Microsoft Visual Studio C++ compiler specific configuration\n */\n#elif defined( _MSC_VER )\n#include \"config_msc.h\"\n#endif\n\n#include \"config_winapi.h\"\n\n#endif /* !defined( _COMMON_H ) */\n\n"
  },
  {
    "path": "common/config_borlandc.h",
    "content": "/*\n * Configuration for the Borland/CodeGear C++ Builder compiler\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _CONFIG_BORLANDC_H )\n#define _CONFIG_BORLANDC_H\n\n#endif /* !defined( _CONFIG_BORLANDC_H ) */\n\n"
  },
  {
    "path": "common/config_msc.h",
    "content": "/*\n * Configuration for the Microsoft Visual Studio C++ compiler\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _CONFIG_MSC_H )\n#define _CONFIG_MSC_H\n\n/* Disable warning C4127: conditional expression is constant\n */\n#pragma warning( disable : 4127 )\n\n/* Disable warning C4201: nonstandard extension used : nameless struct/union\n */\n#pragma warning( disable : 4201 )\n\n#endif /* !defined( _CONFIG_MSC_H ) */\n\n"
  },
  {
    "path": "common/config_winapi.h",
    "content": "/*\n * Configuration file for WINAPI\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _CONFIG_WINAPI_H )\n#define _CONFIG_WINAPI_H\n\n/* Define the earliest supported WINAPI version\n#define WINVER\t\t\t\t0x0501\n */\n\n/* If necessary make sure WINAPI is defined\n */\n#if defined( HAVE_WINDOWS_H ) || defined( __BORLANDC__ ) || defined( _MSC_VER )\n#include <windows.h>\n#endif\n\n#if defined( WINAPI )\n\n/* Define to the address where bug reports for this package should be sent.\n */\n#define PACKAGE_BUGREPORT\t\t\"joachim.metz@gmail.com\"\n\n/* Define the size of the integer for WINAPI\n */\n#if !defined( SIZEOF_INT )\n#define SIZEOF_INT\t\t\t4\n#endif\n\n/* Define the size of size_t for WINAPI\n * Do not define when pyconfig.h has been included via python.h\n */\n#if !defined( HAVE_PYCONFIG_H )\n\n#if !defined( SIZEOF_SIZE_T )\n#if __WORDSIZE == 64\n#define SIZEOF_SIZE_T\t\t\t8\n#else\n#define SIZEOF_SIZE_T\t\t\t4\n#endif\n#endif\n\n#endif /* !defined( HAVE_PYCONFIG_H ) */\n\n/* Define the size of the wide character for WINAPI\n */\n#if !defined( SIZEOF_WCHAR_T )\n#define SIZEOF_WCHAR_T\t\t\t2\n#endif\n\n/* Enable the DllMain function\n */\n#define HAVE_DLLMAIN\t\t\t1\n\n/* Enable verbose output\n#define HAVE_VERBOSE_OUTPUT\t\t1\n */\n\n/* Enable debug output\n#define HAVE_DEBUG_OUTPUT\t\t1\n */\n\n/* Enable both the narrow and wide character functions\n */\n#if !defined( HAVE_WIDE_CHARACTER_TYPE )\n#define HAVE_WIDE_CHARACTER_TYPE\t1\n#endif\n\n/* If not controlled by config.h enable multi-thread support\n */\n#if !defined( HAVE_CONFIG_H ) && !defined( HAVE_MULTI_THREAD_SUPPORT )\n#define HAVE_MULTI_THREAD_SUPPORT\t1\n#endif\n\n#endif /* defined( WINAPI ) */\n\n#endif /* !defined( _CONFIG_WINAPI_H ) */\n\n"
  },
  {
    "path": "common/file_stream.h",
    "content": "/*\n * FILE stream functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FILE_STREAM_H )\n#define _FILE_STREAM_H\n\n#include \"common.h\"\n\n#if defined( HAVE_GLIB_H )\n#include <glib.h>\n#include <glib/gstdio.h>\n#endif\n\n#include <stdio.h>\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\n#define FILE_STREAM_OPEN_APPEND\t\t\t\"a\"\n#define FILE_STREAM_OPEN_READ\t\t\t\"r\"\n#define FILE_STREAM_OPEN_WRITE\t\t\t\"w\"\n\n#if defined( WINAPI )\n#define FILE_STREAM_BINARY_OPEN_APPEND\t\t\"ab\"\n#define FILE_STREAM_BINARY_OPEN_READ\t\t\"rb\"\n#define FILE_STREAM_BINARY_OPEN_WRITE\t\t\"wb\"\n\n#else\n#define FILE_STREAM_BINARY_OPEN_APPEND\t\t\"a\"\n#define FILE_STREAM_BINARY_OPEN_READ\t\t\"r\"\n#define FILE_STREAM_BINARY_OPEN_WRITE\t\t\"w\"\n\n#endif\n\n/* narrow character FILE stream open\n */\n#if defined( HAVE_GLIB_H )\n#define file_stream_open( filename, mode ) \\\n\tg_fopen( filename, mode )\n\n#elif defined( HAVE_FOPEN ) || defined( WINAPI )\n#define file_stream_open( filename, mode ) \\\n\tfopen( filename, mode )\n#endif\n\n/* wide character FILE stream open\n */\n#if defined( WINAPI )\n#define file_stream_open_wide( filename, mode ) \\\n\t_wfopen( filename, mode )\n#endif\n\n/* FILE stream close\n */\n#if defined( HAVE_FCLOSE ) || defined( WINAPI )\n#define file_stream_close( stream ) \\\n\tfclose( stream )\n#endif\n\n/* FILE stream read\n */\n#if defined( HAVE_FREAD ) || defined( WINAPI )\n#define file_stream_read( stream, data, size ) \\\n\tfread( data, 1, size, stream )\n#endif\n\n/* FILE stream write\n */\n#if defined( HAVE_FWRITE ) || defined( WINAPI )\n#define file_stream_write( stream, data, size ) \\\n\tfwrite( data, 1, size, stream )\n#endif\n\n/* FILE stream seek\n */\n#if defined( WINAPI )\n#define file_stream_seek_offset( stream, offset, whence ) \\\n\tfseek( stream, offset, whence )\n\n#elif defined( HAVE_FSEEKO )\n#define file_stream_seek_offset( stream, offset, whence ) \\\n\tfseeko( stream, offset, whence )\n\n#elif defined( HAVE_FSEEKO64 )\n#define file_stream_seek_offset( stream, offset, whence ) \\\n\tfseeko64( stream, offset, whence )\n#endif\n\n/* End of FILE stream\n */\n#if defined( HAVE_FEOF ) || defined( WINAPI )\n#define file_stream_at_end( stream ) \\\n        feof( stream )\n#endif\n\n/* Get narrow character string from FILE stream\n */\n#if defined( HAVE_FGETS ) || defined( WINAPI )\n#define file_stream_get_string( stream, string, size ) \\\n        fgets( string, size, stream )\n#endif\n\n/* Get wide characters string from FILE stream\n */\n#if defined( HAVE_FGETWS ) || defined( WINAPI )\n#define file_stream_get_string_wide( stream, string, size ) \\\n        fgetws( string, size, stream )\n#endif\n\n/* Variable arguments formatted print to stream function\n */\n#if defined( HAVE_GLIB_H )\n#define file_stream_vfprintf( stream, format, ... ) \\\n\tg_vfprintf( stream, format, __VA_ARGS__ )\n\n/* Borland BCC previous to version 5.6.0 cannot handle the macro form: MACRO( ... )\n */\n#elif defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )\n#define file_stream_vfprintf \\\n\tvfprintf\n\n#elif defined( HAVE_VFPRINTF ) || defined( WINAPI )\n#define file_stream_vfprintf( stream, format, ... ) \\\n\tvfprintf( stream, format, __VA_ARGS__ )\n#endif\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _FILE_STREAM_H ) */\n\n"
  },
  {
    "path": "common/memory.h",
    "content": "/*\n * Memory functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _MEMORY_H )\n#define _MEMORY_H\n\n#include \"common.h\"\n\n#if defined( HAVE_GLIB_H )\n#include <glib.h>\n#endif\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#if defined( HAVE_STRING_H ) || defined( WINAPI )\n#include <string.h>\n#endif\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\n/* Note that 128 MiB is an arbitrary selected upper limit here\n */\n#define MEMORY_MAXIMUM_ALLOCATION_SIZE \\\n\t( 128 * 1024 * 1024 )\n\n/* Memory allocation\n */\n#if defined( HAVE_GLIB_H )\n#define memory_allocate( size ) \\\n\tg_malloc( (gsize) size )\n\n#elif defined( WINAPI )\n#define memory_allocate( size ) \\\n\tHeapAlloc( GetProcessHeap(), 0, (SIZE_T) size )\n\n#elif defined( HAVE_MALLOC )\n#define memory_allocate( size ) \\\n\tmalloc( size )\n#endif\n\n#define memory_allocate_structure( type ) \\\n\t(type *) memory_allocate( sizeof( type ) )\n\n#define memory_allocate_structure_as_value( type ) \\\n\t(intptr_t *) memory_allocate( sizeof( type ) )\n\n/* Memory reallocation\n */\n#if defined( HAVE_GLIB_H )\n#define memory_reallocate( buffer, size ) \\\n\tg_realloc( (gpointer) buffer, (gsize) size )\n\n#elif defined( WINAPI )\n/* HeapReAlloc does not allocate empty (NULL) buffers as realloc does\n */\n#define memory_reallocate( buffer, size ) \\\n\t( buffer == NULL ) ? \\\n\tHeapAlloc( GetProcessHeap(), 0, (SIZE_T) size ) : \\\n\tHeapReAlloc( GetProcessHeap(), 0, (LPVOID) buffer, (SIZE_T) size )\n\n#elif defined( HAVE_REALLOC )\n#define memory_reallocate( buffer, size ) \\\n\trealloc( (void *) buffer, size )\n#endif\n\n/* Memory free\n */\n#if defined( HAVE_GLIB_H )\n#define memory_free( buffer ) \\\n\tg_free( (gpointer) buffer )\n\n#elif defined( WINAPI )\n#define memory_free( buffer ) \\\n\t( buffer == NULL ) ? TRUE : HeapFree( GetProcessHeap(), 0, (LPVOID) buffer )\n\n#elif defined( HAVE_FREE )\n#define memory_free( buffer ) \\\n\tfree( (void *) buffer )\n#endif\n\n/* Memory compare\n */\n#if defined( HAVE_MEMCMP ) || defined( WINAPI )\n#define memory_compare( buffer1, buffer2, size ) \\\n\tmemcmp( (const void *) buffer1, (const void *) buffer2, size )\n#endif\n\n/* Memory copy\n */\n#if defined( HAVE_MEMCPY ) || defined( WINAPI )\n#define memory_copy( destination, source, count ) \\\n\tmemcpy( (void *) destination, (void *) source, count )\n#endif\n\n/* Memory set\n */\n#if defined( HAVE_MEMSET ) || defined( WINAPI )\n#define memory_set( buffer, value, count ) \\\n\tmemset( (void *) buffer, (int) value, count )\n#endif\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _MEMORY_H ) */\n\n"
  },
  {
    "path": "common/narrow_string.h",
    "content": "/*\n * Narrow character string functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _NARROW_STRING_H )\n#define _NARROW_STRING_H\n\n#include \"common.h\"\n#include \"memory.h\"\n#include \"types.h\"\n\n#if defined( HAVE_GLIB_H )\n#include <glib.h>\n#endif\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#if defined( HAVE_STRING_H ) || defined( WINAPI )\n#include <string.h>\n#endif\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\n/* String allocation\n */\n#define narrow_string_allocate( size ) \\\n\t(char *) memory_allocate( sizeof( char ) * ( size ) )\n\n/* String reallocation\n */\n#define narrow_string_reallocate( string, size ) \\\n\t(char *) memory_reallocate( string, ( sizeof( char ) * ( size ) ) )\n\n/* String length\n */\n#if defined( HAVE_STRLEN ) || defined( WINAPI )\n#define narrow_string_length( string ) \\\n\tstrlen( string )\n#endif\n\n/* String compare\n */\n#if defined( HAVE_MEMCMP ) || defined( WINAPI )\n#define narrow_string_compare( string1, string2, size ) \\\n\tmemcmp( (void *) string1, (void *) string2, size )\n\n#elif defined( HAVE_STRNCMP )\n#define narrow_string_compare( string1, string2, size ) \\\n\tstrncmp( string1, string2, size )\n#endif\n\n/* Caseless string compare\n */\n#if defined( HAVE_GLIB_H )\n#define narrow_string_compare_no_case( string1, string2, size ) \\\n\tg_ascii_strncasecmp( string1, string2, size )\n\n#elif defined( _MSC_VER )\n#define narrow_string_compare_no_case( string1, string2, size ) \\\n\t_strnicmp( string1, string2, size )\n\n#elif ( defined( WINAPI ) && !defined( __CYGWIN__ ) ) || defined( HAVE_STRNICMP )\n#define narrow_string_compare_no_case( string1, string2, size ) \\\n\tstrnicmp( string1, string2, size )\n\n#elif defined( HAVE_STRNCASECMP )\n#define narrow_string_compare_no_case( string1, string2, size ) \\\n\tstrncasecmp( string1, string2, size )\n\n#elif defined( HAVE_STRCASECMP )\n#define narrow_string_compare_no_case( string1, string2, size ) \\\n\tstrcasecmp( string1, string2 )\n#endif\n\n/* String copy\n */\n#if defined( HAVE_MEMCPY ) || defined( WINAPI )\n#define narrow_string_copy( destination, source, size ) \\\n\t(char *) memcpy( (void *) destination, (void *) source, size )\n\n#elif defined( HAVE_STRNCPY )\n#define narrow_string_copy( destination, source, size ) \\\n\tstrncpy( destination, source, size )\n#endif\n\n/* String character search\n */\n#if defined( HAVE_MEMCHR ) || defined( WINAPI )\n#define narrow_string_search_character( string, character, size ) \\\n\t(char *) memchr( (void *) string, (int) character, size )\n\n#elif defined( HAVE_STRCHR )\n#define narrow_string_search_character( string, character, size ) \\\n\tstrchr( string, (int) character )\n#endif\n\n/* String reverse character search\n */\n#if defined( HAVE_MEMRCHR ) && ( HAVE_DECL_MEMRCHR == 1 )\n#define narrow_string_search_character_reverse( string, character, size ) \\\n\t(char *) memrchr( (void *) string, (int) character, size )\n\n#elif defined( HAVE_STRRCHR ) || defined( WINAPI )\n/* (void)(size) is used to suppress unused variable warnings */\n#define narrow_string_search_character_reverse( string, character, size ) \\\n\tstrrchr( string, (int) character ); (void)(size)\n#endif\n\n/* String sub-string search\n */\n#if defined( HAVE_STRSTR ) || defined( WINAPI )\n#define narrow_string_search_string( string, substring, size ) \\\n\tstrstr( string, substring )\n#endif\n\n/* String formatted print (snprintf)\n */\n#if defined( HAVE_GLIB_H )\n#define narrow_string_snprintf( target, size, ... ) \\\n\tg_snprintf( target, size, __VA_ARGS__ )\n\n#elif defined( _MSC_VER )\n#define narrow_string_snprintf( target, size, ... ) \\\n\tsprintf_s( target, size, __VA_ARGS__ )\n\n#elif defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )\n#define narrow_string_snprintf \\\n\tsnprintf\n\n#elif defined( HAVE_SNPRINTF ) || defined( WINAPI )\n#define narrow_string_snprintf( target, size, ... ) \\\n\tsnprintf( target, size, __VA_ARGS__ )\n#endif\n\n/* String input conversion (sscanf)\n */\n#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )\n#define narrow_string_sscanf \\\n\tsscanf\n\n#elif defined( HAVE_SSCANF ) || defined( WINAPI )\n#define narrow_string_sscanf( string, format, ... ) \\\n\tsscanf( string, format, __VA_ARGS__ )\n#endif\n\n/* Variable arguments formatted print to string function (vsnprintf)\n */\n#if defined( HAVE_GLIB_H )\n#define narrow_string_vsnprintf( string, size, format, ... ) \\\n\tg_vsnprintf( string, size, format, __VA_ARGS__ )\n\n#elif defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )\n#define narrow_string_vsnprintf \\\n\tvsnprintf\n\n#elif defined( HAVE_VSNPRINTF ) || defined( WINAPI )\n#define narrow_string_vsnprintf( string, size, format, ... ) \\\n\tvsnprintf( string, size, format, __VA_ARGS__ )\n#endif\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _NARROW_STRING_H ) */\n\n"
  },
  {
    "path": "common/system_string.h",
    "content": "/*\n * System character string functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _SYSTEM_STRING_H )\n#define _SYSTEM_STRING_H\n\n#include \"common.h\"\n#include \"narrow_string.h\"\n#include \"types.h\"\n#include \"wide_string.h\"\n\n#if defined( _cplusplus )\nextern \"C\" {\n#endif\n\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\n#if SIZEOF_WCHAR_T != 2\n#error Unsupported wide system character size\n#endif\n\n/* Intermediate version of the macro required\n * for correct evaluation predefined string\n */\n#define _SYSTEM_STRING_INTERMEDIATE( string ) \\\n\tL ## string\n\n#define _SYSTEM_STRING( string ) \\\n\t_SYSTEM_STRING_INTERMEDIATE( string )\n\n#define system_string_allocate( size ) \\\n\twide_string_allocate( size )\n\n#define system_string_reallocate( string, size ) \\\n\twide_string_reallocate( string, size )\n\n#define system_string_compare( destination, source, size ) \\\n\twide_string_compare( destination, source, size )\n\n#define system_string_compare_no_case( destination, source, size ) \\\n\twide_string_compare_no_case( destination, source, size )\n\n#define system_string_copy( destination, source, size ) \\\n\twide_string_copy( destination, source, size )\n\n#define system_string_length( string ) \\\n\twide_string_length( string )\n\n#define system_string_search_character( string, character, size ) \\\n\twide_string_search_character( string, character, size )\n\n#define system_string_search_character_reverse( string, character, size ) \\\n\twide_string_search_character_reverse( string, character, size )\n\n#define system_string_search_string( string, substring, size ) \\\n\twide_string_search_string( string, substring, size )\n\n#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )\n#define system_string_sprintf \\\n\twide_string_snwprintf\n\n#else\n#define system_string_sprintf( string, size, format, ... ) \\\n\twide_string_snwprintf( string, size, format, __VA_ARGS__ )\n#endif\n\n#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )\n#define system_string_vsnprintf \\\n\twide_string_vsnwprintf\n\n#else\n#define system_string_vsnprintf( string, size, format, ... ) \\\n\twide_string_vsnwprintf( string, size, format, __VA_ARGS__ )\n#endif\n\n#else\n\n#define _SYSTEM_STRING( string ) \\\n\tstring\n\n#define system_string_allocate( size ) \\\n\tnarrow_string_allocate( size )\n\n#define system_string_reallocate( string, size ) \\\n\tnarrow_string_reallocate( string, size )\n\n#define system_string_compare( destination, source, size ) \\\n\tnarrow_string_compare( destination, source, size )\n\n#define system_string_compare_no_case( destination, source, size ) \\\n\tnarrow_string_compare_no_case( destination, source, size )\n\n#define system_string_copy( destination, source, size ) \\\n\tnarrow_string_copy( destination, source, size )\n\n#define system_string_length( string ) \\\n\tnarrow_string_length( string )\n\n#define system_string_search_character( string, character, size ) \\\n\tnarrow_string_search_character( string, character, size )\n\n#define system_string_search_character_reverse( string, character, size ) \\\n\tnarrow_string_search_character_reverse( string, character, size )\n\n#define system_string_search_string( string, substring, size ) \\\n\tnarrow_string_search_string( string, substring, size )\n\n#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )\n#define system_string_sprintf \\\n\tnarrow_string_snprintf\n\n#else\n#define system_string_sprintf( string, size, format, ... ) \\\n\tnarrow_string_snprintf( string, size, format, __VA_ARGS__ )\n#endif\n\n#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )\n#define system_string_vsnprintf \\\n\tnarrow_string_vsnprintf\n\n#else\n#define system_string_vsnprintf( string, size, format, ... ) \\\n\tnarrow_string_vsnprintf( string, size, format, __VA_ARGS__ )\n#endif\n\n#endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */\n\n/* For backwards compatibility */\n#define system_string_vsprintf system_string_vsnprintf\n\n#if defined( _cplusplus )\n}\n#endif\n\n#endif /* !defined( _SYSTEM_STRING_H ) */\n\n"
  },
  {
    "path": "common/types.h.in",
    "content": "/*\n * Type and type-support definitions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _TYPES_H )\n#define _TYPES_H\n\n#include \"common.h\"\n\n#if defined( HAVE_LIMITS_H ) || defined( WINAPI )\n#include <limits.h>\n#endif\n\n/* Make sure to include inttypes.h or stdint.h before\n * PRI definitions are defined\n */\n#include <@PACKAGE@/types.h>\n\n#if defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) )\n\n#define HAVE_WIDE_SYSTEM_CHARACTER 1\n\n/* The system character type is wide\n * A system string contains either UTF-16 or UTF-32\n */\ntypedef wchar_t system_character_t;\ntypedef wint_t system_integer_t;\n\n#define PRIc_SYSTEM \"lc\"\n#define PRIs_SYSTEM \"ls\"\n\n#else\n\n/* The system character type is narrow\n * A system string contains either UTF-8 or extended ASCII with a codepage\n */\ntypedef char system_character_t;\ntypedef int system_integer_t;\n\n#define PRIc_SYSTEM \"c\"\n#define PRIs_SYSTEM \"s\"\n\n#endif /* defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) ) */\n\n/* Fallback for systems without PRI definitions\n * Do not define when pyconfig.h has been included via python.h\n */\n#if !defined( HAVE_PYCONFIG_H )\n\n#if !defined( PRId8 )\n#define PRId8 \"d\"\n#endif\n\n#if !defined( PRId16 )\n#define PRId16 \"d\"\n#endif\n\n#if !defined( PRId32 )\n#if defined( WINAPI )\n#define PRId32 \"I32d\"\n\n#else\n#define PRId32 \"d\"\n\n#endif\n#endif /* !defined( PRId32 ) */\n\n#if !defined( PRId64 )\n#if defined( WINAPI )\n#define PRId64 \"I64d\"\n\n#elif __WORDSIZE == 64\n#define PRId64 \"ld\"\n\n#else\n#define PRId64 \"lld\"\n\n#endif\n#endif /* !defined( PRId64 ) */\n\n#if !defined( PRIi8 )\n#define PRIi8 \"i\"\n#endif\n\n#if !defined( PRIi16 )\n#define PRIi16 \"i\"\n#endif\n\n#if !defined( PRIi32 )\n#if defined( WINAPI )\n#define PRIi32 \"I32i\"\n\n#else\n#define PRIi32 \"i\"\n\n#endif\n#endif /* !defined( PRIi32 ) */\n\n#if !defined( PRIi64 )\n#if defined( WINAPI )\n#define PRIi64 \"I64i\"\n\n#elif __WORDSIZE == 64\n#define PRIi64 \"li\"\n\n#else\n#define PRIi64 \"lli\"\n\n#endif\n#endif /* !defined( PRIi64 ) */\n\n#if !defined( PRIu8 )\n#define PRIu8 \"u\"\n#endif\n\n#if !defined( PRIu16 )\n#define PRIu16 \"u\"\n#endif\n\n#if !defined( PRIu32 )\n#if defined( WINAPI )\n#define PRIu32 \"I32u\"\n\n#else\n#define PRIu32 \"u\"\n\n#endif\n#endif /* !defined( PRIu32 ) */\n\n#if !defined( PRIu64 )\n#if defined( WINAPI )\n#define PRIu64 \"I64u\"\n\n#elif __WORDSIZE == 64\n#define PRIu64 \"lu\"\n\n#else\n#define PRIu64 \"llu\"\n\n#endif\n#endif /* !defined( PRIu64 ) */\n\n#if !defined( PRIo8 )\n#define PRIo8 \"o\"\n#endif\n\n#if !defined( PRIo16 )\n#define PRIo16 \"o\"\n#endif\n\n#if !defined( PRIo32 )\n#if defined( WINAPI )\n#define PRIo32 \"I32o\"\n\n#else\n#define PRIo32 \"o\"\n\n#endif\n#endif /* !defined( PRIo32 ) */\n\n#if !defined( PRIo64 )\n#if defined( WINAPI )\n#define PRIo64 \"I64o\"\n\n#elif __WORDSIZE == 64\n#define PRIo64 \"lo\"\n\n#else\n#define PRIo64 \"llo\"\n\n#endif\n#endif /* !defined( PRIo64 ) */\n\n#if !defined( PRIx8 )\n#define PRIx8 \"x\"\n#endif\n\n#if !defined( PRIx16 )\n#define PRIx16 \"x\"\n#endif\n\n#if !defined( PRIx32 )\n#if defined( WINAPI )\n#define PRIx32 \"I32x\"\n\n#else\n#define PRIx32 \"x\"\n\n#endif\n#endif /* !defined( PRIx32 ) */\n\n#if !defined( PRIx64 )\n#if defined( WINAPI )\n#define PRIx64 \"I64x\"\n\n#elif __WORDSIZE == 64\n#define PRIx64 \"lx\"\n\n#else\n#define PRIx64 \"llx\"\n\n#endif\n#endif /* !defined( PRIx64 ) */\n\n#endif /* !defined( HAVE_PYCONFIG_H ) */\n\n/* Fallback for systems without printf %jd definition\n */\n#if defined( HAVE_PRINTF_JD )\n#define PRIjd\t\"jd\"\n#define PRIji\t\"ji\"\n#define PRIju\t\"ju\"\n#define PRIjx\t\"jx\"\n\n#elif SIZEOF_OFF_T == 8\n#define PRIjd\tPRId64\n#define PRIji\tPRIi64\n#define PRIju\tPRIu64\n#define PRIjx\tPRIx64\n\n#else\n#define PRIjd\tPRId32\n#define PRIji\tPRIi32\n#define PRIju\tPRIu32\n#define PRIjx\tPRIx32\n\n#endif /* defined( HAVE_PRINTF_JD ) */\n\n/* Fallback for systems without printf %zd definition\n */\n#if defined( HAVE_PRINTF_ZD )\n#define PRIzd\t\"zd\"\n#define PRIzi\t\"zi\"\n#define PRIzu\t\"zu\"\n#define PRIzx\t\"zx\"\n\n#elif defined( _MSC_VER )\n#define PRIzd\t\"Id\"\n#define PRIzi\t\"Ii\"\n#define PRIzu\t\"Iu\"\n#define PRIzx\t\"Ix\"\n\n#elif SIZEOF_SIZE_T == 8\n#define PRIzd\tPRId64\n#define PRIzi\tPRIi64\n#define PRIzu\tPRIu64\n#define PRIzx\tPRIx64\n\n#else\n#define PRIzd\tPRId32\n#define PRIzi\tPRIi32\n#define PRIzu\tPRIu32\n#define PRIzx\tPRIx32\n\n#endif /* defined( HAVE_PRINTF_ZD ) */\n\n/* Fallback for systems without (U)INTx_MAX definitions\n */\n\n/* The maximum signed 8-bit integer is 127 (0x7f)\n */\n#if !defined( INT8_MAX )\n#define INT8_MAX (0x7f)\n#endif\n\n/* The maximum unsigned 8-bit integer is 256 (0xff)\n */\n#if !defined( UINT8_MAX )\n#define UINT8_MAX (0xff)\n#endif\n\n/* The maximum signed 16-bit integer is 32767 (0x7ffff)\n */\n#if !defined( INT16_MAX )\n#define INT16_MAX (0x7fff)\n#endif\n\n/* The maximum unsigned 16-bit integer is 65535 (0xffff)\n */\n#if !defined( UINT16_MAX )\n#define UINT16_MAX (0xffff)\n#endif\n\n/* The maximum signed 32-bit integer is 2147483647 (0x7fffffff)\n */\n#if !defined( INT32_MAX )\n#define INT32_MAX (0x7fffffffL)\n#endif\n\n/* The maximum unsigned 32-bit integer is 4294967295 (0xffffffff)\n */\n#if !defined( UINT32_MAX )\n#define UINT32_MAX (0xffffffffUL)\n#endif\n\n/* The minimum signed 64-bit integer is -9223372036854775808 (0x8000000000000000)\n */\n#if !defined( INT64_MIN )\n#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )\n#define INT64_MIN (0x8000000000000000UL)\n#else\n#define INT64_MIN (0x8000000000000000ULL)\n#endif\n#endif /* !defined( INT64_MIN ) */\n\n/* The maximum signed 64-bit integer is 9223372036854775807 (0x7fffffffffffffff)\n */\n#if !defined( INT64_MAX )\n#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )\n#define INT64_MAX (0x7fffffffffffffffUL)\n#else\n#define INT64_MAX (0x7fffffffffffffffULL)\n#endif\n#endif /* !defined( INT64_MAX ) */\n\n/* The maximum unsigned 64-bit integer is 18446744073709551615 (0xffffffffffffffff)\n */\n#if !defined( UINT64_MAX )\n#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )\n#define UINT64_MAX (0xffffffffffffffffUL)\n#else\n#define UINT64_MAX (0xffffffffffffffffULL)\n#endif\n#endif /* !defined( UINT64_MAX ) */\n\n/* The maximum signed integer\n */\n#if !defined( INT_MAX )\n#define INT_MAX INT32_MAX\n#endif\n\n/* The maximum unsigned integer\n */\n#if !defined( UINT_MAX )\n#define UINT_MAX UINT32_MAX\n#endif\n\n/* The maximum signed long integer\n */\n#if !defined( LONG_MAX )\n#define LONG_MAX INT32_MAX\n#endif\n\n/* The maximum unsigned long integer\n */\n#if !defined( ULONG_MAX )\n#define ULONG_MAX UINT32_MAX\n#endif\n\n/* The maximum signed size type is platform dependent\n */\n#if !defined( SSIZE_MAX )\n\n#if defined( WINAPI )\n\n#if defined( _WIN64 )\n#define SSIZE_MAX INT64_MAX\n#else\n#define SSIZE_MAX INT32_MAX\n#endif\n\n#else\n\n#if __WORDSIZE == 64\n#define SSIZE_MAX INT64_MAX\n#else\n#define SSIZE_MAX INT32_MAX\n#endif\n\n#endif /* WINAPI */\n\n#endif /* SSIZE_MAX */\n\n#endif /* !defined( _TYPES_H ) */\n\n"
  },
  {
    "path": "common/wide_string.h",
    "content": "/*\n * Wide character string functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _WIDE_STRING_H )\n#define _WIDE_STRING_H\n\n#include \"common.h\"\n#include \"memory.h\"\n#include \"types.h\"\n\n#if defined( HAVE_WCHAR_H ) || defined( WINAPI )\n#include <wchar.h>\n#endif\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\n/* Intermediate version of the macro required\n * for correct evaluation predefined string\n */\n#define _WIDE_STRING_INTERMEDIATE( string ) \\\n\tL ## string\n\n#define _WIDE_STRING( string ) \\\n\t_WIDE_STRING_INTERMEDIATE( string )\n\n/* String allocation\n */\n#define wide_string_allocate( size ) \\\n\t(wchar_t *) memory_allocate( sizeof( wchar_t ) * ( size ) )\n\n/* String reallocation\n */\n#define wide_string_reallocate( string, size ) \\\n\t(wchar_t *) memory_reallocate( string, ( sizeof( wchar_t ) * ( size ) ) )\n\n/* String length\n */\n#if defined( HAVE_WCSLEN ) || defined( WINAPI )\n#define wide_string_length( string ) \\\n\twcslen( string )\n#endif\n\n/* String compare\n */\n#if defined( HAVE_WMEMCMP )\n#define wide_string_compare( string1, string2, size ) \\\n\twmemcmp( (void *) string1, (void *) string2, size )\n\n#elif defined( HAVE_WCSNCMP ) || defined( WINAPI )\n#define wide_string_compare( string1, string2, size ) \\\n\twcsncmp( string1, string2, size )\n#endif\n\n/* Caseless string compare\n */\n#if defined( _MSC_VER ) || ( defined( __BORLANDC__ ) && ( __BORLANDC__ >= 0x0551 ) )\n#define wide_string_compare_no_case( string1, string2, size ) \\\n\t_wcsnicmp( string1, string2, size )\n\n#elif ( defined( WINAPI ) && !defined( __CYGWIN__ ) ) || defined( HAVE_WCSNICMP )\n#define wide_string_compare_no_case( string1, string2, size ) \\\n\twcsnicmp( string1, string2, size )\n\n#elif defined( HAVE_WCSNCASECMP )\n#define wide_string_compare_no_case( string1, string2, size ) \\\n\twcsncasecmp( string1, string2, size )\n\n#elif defined( HAVE_WCSCASECMP )\n#define wide_string_compare_no_case( string1, string2, size ) \\\n\twcscasecmp( string1, string2 )\n#endif\n\n/* String copy\n */\n#if defined( HAVE_WMEMCPY )\n#define wide_string_copy( destination, source, size ) \\\n\t(wchar_t *) wmemcpy( (void *) destination, (void *) source, size )\n\n#elif defined( HAVE_WCSNCPY ) || defined( WINAPI )\n#define wide_string_copy( destination, source, size ) \\\n\twcsncpy( destination, source, size )\n#endif\n\n/* String character search\n */\n#if defined( HAVE_WMEMCHR )\n#define wide_string_search_character( string, character, size ) \\\n\t(wchar_t *) wmemchr( (void *) string, (wchar_t) character, size )\n\n#elif defined( HAVE_WCSCHR ) || defined( WINAPI )\n#define wide_string_search_character( string, character, size ) \\\n\twcschr( string, (wchar_t) character )\n\n#endif\n\n/* String reverse character search\n */\n#if defined( HAVE_WMEMRCHR )\n#define wide_string_search_character_reverse( string, character, size ) \\\n\t(wchar_t *) wmemrchr( (void *) string, (wchar_t) character, size )\n\n#elif defined( HAVE_WCSRCHR ) || defined( WINAPI )\n/* (void)(size) is used to suppress unused variable warnings */\n#define wide_string_search_character_reverse( string, character, size ) \\\n\twcsrchr( string, (wchar_t) character ); (void)(size)\n#endif\n\n/* String sub-string search\n */\n#if defined( HAVE_WCSSTR ) || defined( WINAPI )\n#define wide_string_search_string( string, substring, size ) \\\n\twcsstr( string, substring )\n\n#endif\n\n/* String formatted print (snwprintf)\n */\n#if defined( _MSC_VER )\n#define wide_string_snwprintf( target, size, ... ) \\\n\tswprintf_s( target, size, __VA_ARGS__ )\n\n#elif defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )\n#define wide_string_snwprintf \\\n\tsnwprintf\n\n#elif defined( WINAPI )\n#define wide_string_snwprintf( target, size, ... ) \\\n\tsnwprintf( target, size, __VA_ARGS__ )\n\n#elif defined( HAVE_SWPRINTF )\n#define wide_string_snwprintf( target, size, ... ) \\\n\tswprintf( target, size, __VA_ARGS__ )\n#endif\n\n/* Variable arguments formatted print to string function (vsnwprintf)\n */\n#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 )\n#define wide_string_vsnwprintf \\\n\t_vsnwprintf\n\n#elif defined( WINAPI )\n#define wide_string_vsnwprintf( string, size, format, ... ) \\\n\t_vsnwprintf( string, size, format, __VA_ARGS__ )\n\n#elif defined( HAVE_VSWPRINTF )\n#define wide_string_vsnwprintf( string, size, format, ... ) \\\n\tvswprintf( string, size, format, __VA_ARGS__ )\n#endif\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _WIDE_STRING_H ) */\n\n"
  },
  {
    "path": "configure.ac",
    "content": "AC_PREREQ([2.71])\n\nAC_INIT(\n  [libfsrefs],\n  [20251205],\n  [joachim.metz@gmail.com])\n\nAC_CONFIG_SRCDIR(\n  [include/libfsrefs.h.in])\n\nAM_INIT_AUTOMAKE([gnu 1.6 tar-ustar])\nAM_EXTRA_RECURSIVE_TARGETS([sources splint])\n\nAC_CONFIG_MACRO_DIR([m4])\n\ndnl Check for host type\nAC_CANONICAL_HOST\n\ndnl Check for libtool DLL support\nLT_INIT([win32-dll])\n\ndnl Checks for programs\nAC_PROG_CC\nAC_PROG_GCC_TRADITIONAL\nAC_PROG_CXX\nAC_PROG_MAKE_SET\nAC_PROG_INSTALL\n\ndnl Check for libtool\nAC_SUBST(LIBTOOL_DEPS)\n\ndnl Check for pkg-config\nAC_PATH_PROG(PKGCONFIG,[pkg-config])\n\ndnl Support of internationalization (i18n)\nAM_GNU_GETTEXT([external])\nAM_GNU_GETTEXT_VERSION([0.21])\n\ndnl Check for compiler language support\nAC_C_CONST\nAC_C_VOLATILE\n\ndnl Check for large file support\nAC_SYS_LARGEFILE\n\ndnl Check if shared library support should be disabled\nAX_COMMON_CHECK_DISABLE_SHARED_LIBS\n\ndnl Check if tools should be build as static executables\nAX_COMMON_CHECK_ENABLE_STATIC_EXECUTABLES\n\ndnl Check if WINAPI support should be enabled\nAX_COMMON_CHECK_ENABLE_WINAPI\n\ndnl Check if wide character type should be enabled\nAX_COMMON_CHECK_ENABLE_WIDE_CHARACTER_TYPE\n\ndnl Check if verbose output should be enabled\nAX_COMMON_CHECK_ENABLE_VERBOSE_OUTPUT\n\ndnl Check if debug output should be enabled\nAX_COMMON_CHECK_ENABLE_DEBUG_OUTPUT\n\ndnl Check for type definitions\nAX_TYPES_CHECK_LOCAL\n\ndnl Check if common required headers and functions are available\nAX_COMMON_CHECK_LOCAL\n\ndnl Check if libcerror or required headers and functions are available\nAX_LIBCERROR_CHECK_ENABLE\n\ndnl Check if libcthreads or required headers and functions are available\nAX_LIBCTHREADS_CHECK_ENABLE\n\ndnl Check if libcdata or required headers and functions are available\nAX_LIBCDATA_CHECK_ENABLE\n\ndnl Check if libclocale or required headers and functions are available\nAX_LIBCLOCALE_CHECK_ENABLE\n\ndnl Check if libcnotify or required headers and functions are available\nAX_LIBCNOTIFY_CHECK_ENABLE\n\ndnl Check if libcsplit or required headers and functions are available\nAX_LIBCSPLIT_CHECK_ENABLE\n\ndnl Check if libuna or required headers and functions are available\nAX_LIBUNA_CHECK_ENABLE\n\ndnl Check if libcfile or required headers and functions are available\nAX_LIBCFILE_CHECK_ENABLE\n\ndnl Check if libcpath or required headers and functions are available\nAX_LIBCPATH_CHECK_ENABLE\n\ndnl Check if libbfio or required headers and functions are available\nAX_LIBBFIO_CHECK_ENABLE\n\ndnl Check if libfcache or required headers and functions are available\nAX_LIBFCACHE_CHECK_ENABLE\n\ndnl Check if libfdata or required headers and functions are available\nAX_LIBFDATA_CHECK_ENABLE\n\ndnl Check if libfdatetime or required headers and functions are available\nAX_LIBFDATETIME_CHECK_ENABLE\n\ndnl Check if libfguid or required headers and functions are available\nAX_LIBFGUID_CHECK_ENABLE\n\ndnl Check if libfwnt or required headers and functions are available\nAX_LIBFWNT_CHECK_ENABLE\n\ndnl Check if libfsrefs required headers and functions are available\nAX_LIBFSREFS_CHECK_LOCAL\n\ndnl Check if libfusn or required headers and functions are available\nAX_LIBFUSN_CHECK_ENABLE\n\ndnl Check if fsrefstools required headers and functions are available\nAX_FSREFSTOOLS_CHECK_LOCAL\n\ndnl Check if DLL support is needed\nAX_LIBFSREFS_CHECK_DLL_SUPPORT\n\ndnl Check if tests required headers and functions are available\nAX_TESTS_CHECK_LOCAL\nAX_TESTS_CHECK_OSSFUZZ\n\ndnl Set additional compiler flags\nCFLAGS=\"$CFLAGS -Wall\";\n\ndnl Check if requires and build requires should be set in spec file\nAS_IF(\n  [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],\n  [AC_SUBST(\n    [libfsrefs_spec_requires],\n    [Requires:])\n  ])\n\nAS_IF(\n  [test \"x$ac_cv_libfusn\" = xyes],\n  [AC_SUBST(\n    [libfsrefs_spec_tools_build_requires],\n    [BuildRequires:])\n  ])\n\ndnl Set the date for the dpkg files\nAC_SUBST(\n  [DPKG_DATE],\n  [`date -R 2> /dev/null`])\n\ndnl Set the date for the spec file\nAC_SUBST(\n  [SPEC_DATE],\n  [`date +\"%a %b %e %Y\" 2> /dev/null`])\n\ndnl Generate Makefiles\nAC_CONFIG_FILES([Makefile])\nAC_CONFIG_FILES([include/Makefile])\nAC_CONFIG_FILES([common/Makefile])\nAC_CONFIG_FILES([libcerror/Makefile])\nAC_CONFIG_FILES([libcthreads/Makefile])\nAC_CONFIG_FILES([libcdata/Makefile])\nAC_CONFIG_FILES([libclocale/Makefile])\nAC_CONFIG_FILES([libcnotify/Makefile])\nAC_CONFIG_FILES([libcsplit/Makefile])\nAC_CONFIG_FILES([libuna/Makefile])\nAC_CONFIG_FILES([libcfile/Makefile])\nAC_CONFIG_FILES([libcpath/Makefile])\nAC_CONFIG_FILES([libbfio/Makefile])\nAC_CONFIG_FILES([libfcache/Makefile])\nAC_CONFIG_FILES([libfdata/Makefile])\nAC_CONFIG_FILES([libfdatetime/Makefile])\nAC_CONFIG_FILES([libfguid/Makefile])\nAC_CONFIG_FILES([libfwnt/Makefile])\nAC_CONFIG_FILES([libfsrefs/Makefile])\nAC_CONFIG_FILES([libfusn/Makefile])\nAC_CONFIG_FILES([fsrefstools/Makefile])\nAC_CONFIG_FILES([po/Makefile.in])\nAC_CONFIG_FILES([po/Makevars])\nAC_CONFIG_FILES([manuals/Makefile])\nAC_CONFIG_FILES([tests/Makefile])\nAC_CONFIG_FILES([ossfuzz/Makefile])\nAC_CONFIG_FILES([msvscpp/Makefile])\ndnl Generate header files\nAC_CONFIG_FILES([include/libfsrefs.h])\nAC_CONFIG_FILES([include/libfsrefs/definitions.h])\nAC_CONFIG_FILES([include/libfsrefs/features.h])\nAC_CONFIG_FILES([include/libfsrefs/types.h])\nAC_CONFIG_FILES([libfsrefs/libfsrefs_definitions.h])\ndnl Generate distribution specific files\nAC_CONFIG_FILES([common/types.h])\nAC_CONFIG_FILES([dpkg/changelog])\nAC_CONFIG_FILES([libfsrefs/libfsrefs.rc])\nAC_CONFIG_FILES([libfsrefs.pc])\nAC_CONFIG_FILES([libfsrefs.spec])\ndnl Generate a source configuration file\nAC_CONFIG_HEADERS([common/config.h])\n\nAC_OUTPUT\n\ndnl Print a summary\nAC_MSG_NOTICE([\nBuilding:\n   libcerror support:                           $ac_cv_libcerror\n   libcthreads support:                         $ac_cv_libcthreads\n   libcdata support:                            $ac_cv_libcdata\n   libclocale support:                          $ac_cv_libclocale\n   libcnotify support:                          $ac_cv_libcnotify\n   libcsplit support:                           $ac_cv_libcsplit\n   libuna support:                              $ac_cv_libuna\n   libcfile support:                            $ac_cv_libcfile\n   libcpath support:                            $ac_cv_libcpath\n   libbfio support:                             $ac_cv_libbfio\n   libfcache support:                           $ac_cv_libfcache\n   libfdata support:                            $ac_cv_libfdata\n   libfdatetime support:                        $ac_cv_libfdatetime\n   libfguid support:                            $ac_cv_libfguid\n   libfwnt support:                             $ac_cv_libfwnt\n   libfusn support:                             $ac_cv_libfusn\n\nFeatures:\n   Multi-threading support:                     $ac_cv_libcthreads_multi_threading\n   Wide character type support:                 $ac_cv_enable_wide_character_type\n   fsrefstools are build as static executables: $ac_cv_enable_static_executables\n   Verbose output:                              $ac_cv_enable_verbose_output\n   Debug output:                                $ac_cv_enable_debug_output\n]);\n\n"
  },
  {
    "path": "documentation/Resilient File System (ReFS).asciidoc",
    "content": "= Resilient File System (ReFS)\nAnalysis of the Windows Resilient File System\n\n:toc:\n:toclevels: 4\n\n:numbered!:\n[abstract]\n== Summary\n\nThe Resilient File System (ReFS) was introduced in Windows 8 server pre release,\nwhich became Windows 2012 server, and was added to Windows 8.1. ReFS is a new\nfile system to the Windows NT platform. This specification is based on available\ndocumentation and was enhanced by analyzing test data.\n\nThis document is intended as a working document of the data format specification\nfor the libfsrefs project.\n\n[preface]\n== Document information\n\n[cols=\"1,5\"]\n|===\n| Author(s): | Joachim Metz <joachim.metz@gmail.com>\n| Abstract: | This document contains information about the Resilient File System (ReFS)\n| Classification: | Public\n| Keywords: | ReFS, Resilient File System\n|===\n\n[preface]\n== License\n\n....\nCopyright (C) 2012-2023, Joachim Metz <joachim.metz@gmail.com>.\nPermission is granted to copy, distribute and/or modify this document under the\nterms of the GNU Free Documentation License, Version 1.3 or any later version\npublished by the Free Software Foundation; with no Invariant Sections, no\nFront-Cover Texts, and no Back-Cover Texts. A copy of the license is included\nin the section entitled \"GNU Free Documentation License\".\n....\n\n[preface]\n== Revision history\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Version | Author | Date | Comments\n| 0.0.1 | J.B. Metz | May 2012 | Initial version.\n| 0.0.2 | J.B. Metz | September 2012 | Additional information about format.\n| 0.0.3 | J.B. Metz | November 2013 | Additional information about format.\n| 0.0.4 | J.B. Metz | June 2023 | Switched to asciidoc format and additional information about format.\n| 0.0.5 | J.B. Metz | July 2023 | Additional information about format.\n|===\n\n:numbered:\n== Overview\n\nThe Resilient File System (ReFS) was introduced in Windows 8 server pre release,\nwhich became Windows 2012 server, and was added to Windows 8.1. ReFS is a new\nfile system to the Windows NT platform.\n\nA volume consists of:\n\n* a volume header\n* metadata blocks\n** superblock\n* file and directory data\n* a copy of the volume header\n\n[cols=\"1,5\",options=\"header\"]\n|===\n| Characteristics | Description\n| Byte order | little-endian\n| Date and time values | FILETIME in UTC\n| 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. +\nThough technically maybe incorrect, this document will use term (extended) ASCII string. +\nUnicode strings are stored in UTF-16 little-endian without the byte order mark (BOM).\n|===\n\n=== Versions\n\nThere are multiple version of ReFS.\n\n[cols=\"1,5\",options=\"header\"]\n|===\n| ReFS version | Remarks\n| 1.1 | Used by Windows 8 (preview) and Windows Server 2012\n| 1.2 | Used by Windows 8.1, Windows 10 (1507 to 1607) and Windows Server 2012 R2\n| |\n| 2.0 | Used by Windows Server 2016 (preview)\n| |\n| 2.2 | Used by Windows 10 (preview)\n| |\n| 3.0 | Used by Windows Server 2016 (preview)\n| 3.1 | Used by Windows Server 2016\n| 3.2 | Used by Windows 10 (1703)\n| 3.3 | Used by Windows 10 (1709)\n| 3.4 | Used by Windows 10 (1803) and Windows server 2019\n| 3.5 | Used by Windows 11 (preview)\n| 3.6 | Used by Windows 11 (preview)\n| 3.7 | Used by Windows 11 and Windows server 2022\n|===\n\n=== Test version\n\nThe following version of programs were used to test the information within this\ndocument:\n\n* Windows 8\n* Windows 2012 Server R2\n* Windows 2016 Server\n* Windows 2019 Server\n\n== The volume header\n\nThe volume header is stored at the start of the volume. A copy of volume header\nis stored at the end of the volume.\n\n[NOTE]\nThe size of the partition can be larger then the number of sectors in the\nvolume.\n\nThe volume header is 512 bytes of size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n4+| _File system recognition structure (FILE_SYSTEM_RECOGNITION_STRUCTURE)_\n| 0 | 3 | 0x00 | Boot entry point (or JMP instruction)\n| 3 | 8 | \"ReFS\\x00\\x00\\x00\\x00\" | File system signature (or file system name)\n| 11 | 5 | 0x00 | [yellow-background]*Unknown (empty values)*\n| 16 | 4 | \"FSRS\" | File system recognition structure identifier\n| 20 | 2 | 0x200 | [yellow-background]*Unknown (size of file system recognition structure?)*\n| 22 | 2 | | [yellow-background]*Unknown (checksum of file system recognition structure?)*\n4+|\n| 24 | 8 | | Number of sectors\n| 32 | 4 | | Sector size\n| 36 | 4 | | Sectors per cluster block (allocation unit)\n| 40 | 1 | | Major format version\n| 41 | 1 | | Minor format version\n| 42 | 2 | 0x00 | [yellow-background]*Unknown (flags?)*\n| 44 | 4 | | [yellow-background]*Unknown*\n| 48 | 8 | 0x00 | [yellow-background]*Unknown (empty values)*\n| 56 | 8 | | Volume serial number\n| 64 | 8 | | Container (or band size)\n| 72 | 440 | 0x00 | [yellow-background]*Unknown (empty values)*\n|===\n\n[NOTE]\nNote that currently 4096 and 65536 have been observed as supported cluster block\n(allocation unit) byte sizes.\n\n[NOTE]\nNote 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.\n\n== Metadata\n\nMetadata is stored in one or more blocks (or pages).\n\nThere are multiple levels of metadata:\n\n[cols=\"1,1,5\",options=\"header\"]\n|===\n| Level | Block signature | Description\n| 0 | \"SUPB\" | Superblock\n| 1 | \"CHKP\" | Checkpoint\n| 2+ | \"MSB+\" | Ministore tree (B+-tree)\n|===\n\n[yellow-background]*TODO: is the metadata block referred to as synchronous ministore (SMS) by Microsoft?*\n\n=== [[metadata_block_header]]Metadata block header\n\n==== Metadata block header - format version 1\n\nThe format version 1 metadata block header is 48 bytes of size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 8 | | Block number +\nThe block number is relative from the start of the volume\n| 8 | 8 | | [yellow-background]*Unknown (sequence number?)*\n| 16 | 8 | 0x00 | [yellow-background]*Unknown (empty values)*\n| 24 | 8 | | [yellow-background]*Unknown*\n| 32 | 8 | 0x01 | [yellow-background]*Unknown (flags or level?)*\n| 40 | 8 | 0x00 | [yellow-background]*Unknown (empty values)*\n|===\n\n[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.*\n\n==== Metadata block header - format version 3\n\nThe format version 3 metadata block header is 80 bytes of size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 4 | | Signature\n| 4 | 4 | 2 | [yellow-background]*Unknown*\n| 8 | 4 | 0x00 | [yellow-background]*Unknown (empty values)*\n| 12 | 4 | | [yellow-background]*Unknown (volume signature?)*\n| 16 | 8 | | [yellow-background]*Unknown (virtual allocator clock?)*\n| 24 | 8 | | [yellow-background]*Unknown (tree update clock?)*\n| 32 | 8 | | First block number\n| 40 | 8 | | Second block number\n| 48 | 8 | | Third block number\n| 56 | 8 | | Fourth block number\n| 64 | 8 | | [yellow-background]*Unknown (table identifier upper 64-bit?)*\n| 72 | 8 | | [yellow-background]*Unknown (table identifier lower 64-bit?)*\n|===\n\n[NOTE]\nIn format version 3 the metadata can span multiple metadata blocks.\n\n=== [[metadata_block_reference]]Metadata block reference\n\n==== Metadata block reference - format version 1\n\nThe format version 1 metadata block reference is 24 bytes of size and\nconsists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 8 | | Block number\n4+| _Checkum descriptor_\n| 8 | 2 | 0x00 | [yellow-background]*Unknown (empty values)*\n| 10 | 1 | | Checksum type\n| 11 | 1 | | Checksum data offset +\nThe offset is relative to the start of the checksum descriptor\n| 12 | 2 | | Checksum data size\n| 14 | 2 | 0x00 | [yellow-background]*Unknown (empty values)*\n| 16 | 8 | | Checksum data\n|===\n\n==== Metadata block reference - format version 3\n\nThe format version 3 metadata block reference is 48 bytes of size and\nconsists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 8 | | First block number\n| 8 | 8 | | Second block number\n| 16 | 8 | | Third block number\n| 24 | 8 | | Fourth block number\n4+| _Checkum descriptor_\n| 32 | 2 | 0x00 | [yellow-background]*Unknown (empty values)*\n| 34 | 1 | | Checksum type\n| 35 | 1 | | Checksum data offset +\nThe offset is relative to the start of the checksum descriptor\n| 36 | 2 | | Checksum data size\n| 38 | 2 | 0x00 | [yellow-background]*Unknown (empty values)*\n| 40 | 8 | | Checksum data\n|===\n\n==== Checksum type\n\n[cols=\"1,1,5\",options=\"header\"]\n|===\n| Value | Identifier | Description\n| 1 | | CRC-32C (or CRC32-C), which uses the Castagnoli polynomial (0x1edc6f41)\n| 2 | | CRC64-ECMA-182 +\nChecksum data size is 8 bytes\n|===\n\n== Superblock (level 0) metadata\n\nThe superblock metadata consists of:\n\n* <<metadata_block_header,Metadata block header>>\n* Superblock\n* Checkpoint references data\n* Self <<metadata_block_reference,metadata block reference>>\n\n=== Superblock\n\nThe superblock is 48 bytes of size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 16 | | Volume identifier\n| 16 | 8 | 0x00 | [yellow-background]*Unknown (empty values)*\n| 24 | 8 | | [yellow-background]*Unknown (sequence number?)*\n| 32 | 4 | | Checkpoint references data offset +\nThe offset is relative to the start of the metadata block\n| 36 | 4 | 2 | [yellow-background]*Unknown (number of checkpoint metadata block numbers?)*\n| 40 | 4 | | Self (block) reference data offset +\nThe offset is relative to the start of the metadata block\n| 44 | 4 | | Self (block) reference data size\n|===\n\n=== Checkpoint references data\n\nThe checkpoint references data is variable of size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | number of entries x 8 | | Checkpoint metadata block number\n|===\n\n== Checkpoint (level 1) metadata\n\nThe checkpoint metadata consists of:\n\n* <<metadata_block_header,Metadata block header>>\n* Superblock\n* Checkpoint header\n* Checkpoint trailer\n* Self <<metadata_block_reference,metadata block reference>\n* Ministore tree <<metadata_block_reference,metadata block references>>\n\n=== Checkpoint header\n\nThe checkpoint header is 16 bytes of size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 4 | 0x00 | [yellow-background]*Unknown (empty values)*\n| 4 | 2 | | Major format version\n| 6 | 2 | | Minor format version\n| 8 | 4 | | Self (block) reference data offset +\nThe offset is relative to the start of the metadata block\n| 12 | 4 | | Self (block) reference data size\n|===\n\n=== Checkpoint trailer\n\n==== Checkpoint trailer - format version 1\n\nThe format version 1 checkpoint trailer is variable of size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 8 | | [yellow-background]*Unknown (sequence number?)*\n| 8 | 4 | | [yellow-background]*Unknown (checkpoint data size?)*\n| 12 | 4 | | [yellow-background]*Unknown (seen: 32)*\n| 16 | 8 | | [yellow-background]*Unknown*\n| 24 | 4 | | Number of offsets\n| 28 | number of offset x 4 | | Array of offsets +\nThe offset is relative to the start of the metadata block\n| ... | ... | 0x00 | [yellow-background]*Unknown (empty values)*\n|===\n\n==== Checkpoint trailer - format version 3\n\nThe format version 3 checkpoint trailer is variable of size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 8 | | [yellow-background]*Unknown (sequence number or checkpoint clock?)*\n| 8 | 8 | | [yellow-background]*Unknown (virtual allocator clock?)*\n| 16 | 4 | | [yellow-background]*Unknown (oldest log record?)*\n| 20 | 4 | | [yellow-background]*Unknown*\n| 24 | 8 | | [yellow-background]*Unknown*\n| 32 | 8 | | [yellow-background]*Unknown*\n| 40 | 4 | | [yellow-background]*Unknown (checkpoint data size?)*\n| 44 | 4 | | [yellow-background]*Unknown (seen: 32)*\n| 48 | 4 | | Number of offsets\n| 52 | number of offset x 4 | | Array of offsets +\nThe offset is relative to the start of the metadata block\n| ... | ... | 0x00 | [yellow-background]*Unknown (empty values)*\n|===\n\n=== Ministore tree block references\n\n[cols=\"1,1,5\",options=\"header\"]\n|===\n| Index | Identifier | Description\n| 0 | | Objects tree\n| 1 | | Medium allocator tree\n| 2 | | Container allocator tree\n| 3 | | Schema tree\n| 4 | | Parent-child relationship tree\n| 5 | | Copy of object tree\n| 6 | | Block reference count tree\n3+| _Seen in format version 3_\n| 7 | | Container tree\n| 8 | | Copy of container tree\n| 9 | | Copy of schema tree\n| 10 | | Container index tree\n| 11 | | Integrity state tree\n| 12 | | Small allocator tree\n|===\n\n== [[ministore_tree]]Ministore tree (level 2+) metadata\n\nThe ministore tree metadata consists of:\n\n* <<metadata_block_header,Metadata block header>>\n* Node header offset\n* Optional tree header\n* Optional header data\n* Node header\n* Node records\n* Unused\n* Node record offsets\n\n[NOTE]\nNote that in format version 3 the upper 16-bit of the record offsets is set\nto 0xffff.\n\n=== Node header offset\n\nThe node header offset is 4 bytes in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 4 | | Node header offset +\nThe offset is relative to the start of the node header offset\n|===\n\n=== Tree header\n\nThe tree header is 36 bytes in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 2 | 40 | Header data offset +\nThe offset is relative to the start of the node header offset\n| 2 | 2 | | [yellow-background]*Unknown (seen: 0 or 1)*\n| 4 | 4 | | [yellow-background]*Unknown (seen: 0)*\n| 8 | 4 | | [yellow-background]*Unknown*\n| 12 | 4 | | [yellow-background]*Unknown*\n| 16 | 4 | | [yellow-background]*Unknown (seen: 2)*\n| 20 | 4 | | [yellow-background]*Unknown (number of branch nodes?)*\n| 24 | 4 | | [yellow-background]*Unknown*\n| 28 | 4 | | [yellow-background]*Unknown (number of leaf values?)*\n| 32 | 4 | | [yellow-background]*Unknown*\n|===\n\n=== Node header\n\nThe node header is 32 bytes of size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 4 | | Data area start offset +\nThe offset is relative to the start of the node header\n| 4 | 4 | | Data area end offset +\nThe offset is relative to the start of the node header\n| 8 | 4 | | Unused data size\n| 12 | 1 | | Node level, where 0 is the level of the leaf values\n| 13 | 1 | | Node type flags\n| 14 | 2 | | [yellow-background]*Unknown (empty values)*\n| 16 | 4 | | Record offsets start offset +\nThe offset is relative to the start of the node information entry\n| 20 | 4 | | Number of record offsets\n| 24 | 4 | | Record offsets end offset +\nThe offset is relative to the start of the node information entry or 0 if not set\n| 28 | 4 | | [yellow-background]*Unknown (empty values)*\n|===\n\n==== Node type flags\n\n[cols=\"1,1,5\",options=\"header\"]\n|===\n| Value | Identifier | Description\n| 0x01 | | Is branch (or inner) node\n| 0x02 | | Is root node\n| 0x04 | | Is stream node\n|===\n\n=== Node record\n\nThe node record is variable of size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 4 | | Node record size +\nIncludes the 4 bytes of the size value\n| 4 | 2 | | Key data offset +\nThe offset is relative to the start of the node record\n| 6 | 2 | | Key data size\n| 8 | 2 | | Flags +\nSee section: <<node_record_flags,Node record flags>>\n| 10 | 2 | | Value data offset +\nThe offset is relative to the start of the node record\n| 12 | 2 | | Value data size\n|===\n\n==== [[node_record_flags]]Node record flags\n\n[cols=\"1,1,5\",options=\"header\"]\n|===\n| Value | Identifier | Description\n| 0x0002 | | [yellow-background]*Unknown (No key data?)*\n| 0x0004 | | [yellow-background]*Unknown (Is unallocated (free)?)*\n| 0x0008 | | Value data contains an embedded Ministore node\n| | |\n| 0x0040 | | [yellow-background]*Unknown (Is stream record?)*\n|===\n\n==== Branch node record\n\nThe key of a branch node contains key of the largest value of the corresponding\nbranch. Note that the key of the last branch node can be empty.\n\nThe value of a branch node contains a <<metadata_block_reference,metadata block reference>>\nof the corresponding sub node.\n\n== Objects tree\n\nThe objects tree is a <<ministore_tree,Ministore B+-tree>> that contains\nobject records.\n\n=== Object record\n\nAn object record consists of:\n\n* key, containing an <<object_identifiers,object identifier>>\n* value, containing a <<metadata_block_reference,metadata block reference>> that reference the corresponding object <<ministore_tree,Ministore B+-tree>>\n\n==== Object record key\n\nThe object record key is 16 bytes in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 8 | | Record key (upper 64-bits), which contains 0-byte values\n| 8 | 8 | | Record key (lower 64-bits), which contains an <<object_identifiers,object identifier>>\n|===\n\n[NOTE]\nNote that the record key corresponds to the file system identifier.\n\n==== Object record value - format version 1\n\nThe format version 1 object record value is 48 bytes in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 24 | | Block reference +\nSee section: <<metadata_block_reference,metadata block reference>>\n| 24 | 8 | | [yellow-background]*Unknown*\n| 32 | 4 | | [yellow-background]*Unknown*\n| 36 | 4 | | [yellow-background]*Unknown*\n| 40 | 8 | | [yellow-background]*Unknown (related object identifier?)*\n|===\n\n===== Object record value - format version 3\n\nThe format version 3 object record value is variable in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 8 | | [yellow-background]*Unknown*\n| 8 | 4 | | [yellow-background]*Unknown*\n| 12 | 4 | | [yellow-background]*Unknown (size of block reference data?)*\n| 16 | 4 | | [yellow-background]*Unknown (size of used record data?)*\n| 20 | 4 | | [yellow-background]*Unknown*\n| 24 | 4 | | [yellow-background]*Unknown*\n| 28 | 4 | | [yellow-background]*Unknown*\n| 32 | 48 | | Block reference +\nSee section: <<metadata_block_reference,metadata block reference>>\n| ... | ... | | [yellow-background]*Unknown (remnant data?)*\n|===\n\n===== [[object_identifiers]]Object identifiers\n\n[cols=\"1,1,5\",options=\"header\"]\n|===\n| Value | Identifier | Description\n| 0x00000007 | | Upcase object +\nIntroduced in format version 3?\n| 0x00000008 | | Copy of Upcase object +\nIntroduced in format version 3?\n| 0x00000009 | | Logfile information object +\nIntroduced in format version 3?\n| 0x0000000a | | Copy of logfile information object +\nIntroduced in format version 3?\n| | |\n| 0x0000000d | | Trash stream object +\nIntroduced in format version 3?\n| | |\n| 0x00000500 | | <<volume_information_object,Volume information object>>\n| 0x00000501 | | Copy of volume information object +\nIntroduced in format version 3?\n| | |\n| 0x00000520 | | <<file_system_information_object,File system information object>>\n| | |\n| 0x00000530 | |\n| | |\n| 0x00000540 | | +\nIntroduced in format version 3?\n| 0x00000541 | | +\nIntroduced in format version 3?\n| | |\n| 0x00000600 | REFS_ROOT_DIRECTORY_ID | <<directory_object,Root directory object>>\n| | |\n| 0x00000701 | REFS_OBJECT_UNKNOWN_3 | <<directory_object,Directory object>> +\nValues 0x00000701 and above are used for sub directories.\n|===\n\n== Container tree\n\nThe container tree is a <<ministore_tree,Ministore B+-tree>> that contains\ncontainer records.\n\n[NOTE]\nNote that the container tree has only been observed with format version 3.\n\n=== Container record\n\nA container record consists of:\n\n* key, containing the container (or band) identifier\n* value, containing information about the container\n\n==== Container record key\n\nThe container record key is the first 16 bytes of the container record value.\n\n==== Container record value\n\nThe container record value is 160 bytes in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 8 | | Container (or band) identifier\n| 8 | 4 | | [yellow-background]*Unknown*\n| 12 | 4 | | [yellow-background]*Unknown*\n| 16 | 4 | | [yellow-background]*Unknown (flags?)*\n| 20 | 4 | | [yellow-background]*Unknown*\n| 24 | 8 | | [yellow-background]*Unknown*\n| 32 | 8 | | [yellow-background]*Unknown (number of unused cluster blocks?)*\n| 40 | 8 | | [yellow-background]*Unknown*\n| 48 | 28 | | [yellow-background]*Unknown (empty values)*\n| 76 | 4 | | [yellow-background]*Unknown*\n| 80 | 64 | | [yellow-background]*Unknown (empty values)*\n| 144 | 8 | | Cluster block number\n| 152 | 8 | | Cluster size +\nContains the number of (cluster) blocks\n|===\n\n== [[directory_object]]Directory object\n\nThe directory object is a <<ministore_tree,Ministore B+-tree>> that contains\nmultiple directory records.\n\nThe format of the directory record value is dependent on the record type in\nthe directory record key.\n\nA ReFS file system identifier consists of:\n\n* 64-bit file identifier or 0 for the directory\n* 64-bit directory object identifier\n\n=== Directory record key\n\nThe directory record key is variable in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 2 | | Record type\n| 2 | ... | | Data\n|===\n\n==== Record types\n\n[cols=\"1,1,5\",options=\"header\"]\n|===\n| Value | Identifier | Description\n| 0x0010 | | Base record\n| 0x0020 | | Name record\n| 0x0030 | | Entry record\n|===\n\n==== Base record (record type: 0x0010)\n\nThe directory object base record key is 4 bytes in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 2 | 0x0010 | Record type\n| 2 | 2 | | [yellow-background]*Unknown (seen: 0x0000)*\n|===\n\n==== Name record (record type: 0x0020)\n\nThe directory object name record key is 24 bytes in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 2 | 0x0020 | Record type\n| 2 | 2 | | [yellow-background]*Unknown (seen: 0x8000)*\n| 4 | 4 | | [yellow-background]*Unknown (empty values?)*\n| 8 | 8 | | File system identifier (lower 64-bits)\n| 16 | 8 | | File system identifier (upper 64-bits)\n|===\n\nThe directory object name record value is variable in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 8 | | [yellow-background]*Unknown (empty values?)*\n| 8 | 2 | | [yellow-background]*Unknown (seen: 0x0c)*\n| 10 | ... | | Name +\nContains an UTF-16 little-endian without end-of-string character\n|===\n\n[NOTE]\nThe name string is not strict UTF-16 since it allows for unpaired surrogates,\nsuch as \"U+d800\" and \"U+dc00\".\n\n==== Entry record (record type: 0x0030)\n\nThe directory object entry record key is variable in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 2 | 0x0030 | Record type\n| 2 | 2 | | Directory entry type +\nSee section: <<directory_entry_types,Directory entry types>>\n| 4 | ... | | Name +\nContains an UTF-16 little-endian without end-of-string character\n|===\n\n[NOTE]\nThe name string is not strict UTF-16 since it allows for unpaired surrogates,\nsuch as \"U+d800\" and \"U+dc00\".\n\nThe format of the directory object entry record value is dependent on\nthe directory entry type.\n\n==== [[directory_entry_types]]Directory entry types\n\n[cols=\"1,1,5\",options=\"header\"]\n|===\n| Value | Identifier | Description\n| 0 | | File system metadata file\n| 1 | | File +\nSee section: <<directory_object_entry_record_file_values,Directory object entry record file values>>\n| 2 | | Directory +\nSee section: <<directory_object_entry_record_directory_values,Directory object entry record directory values>>\n|===\n\n=== [[directory_object_entry_record_directory_values]]Directory object entry record directory values\n\nThe directory object entry record directory values are 72 bytes in size and\nconsist of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 8 | | Directory object identifier +\nSee section: <<object_identifiers,object identifiers>>\n| 8 | 8 | | [yellow-background]*Unknown (part of the object identifier?)*\n| 16 | 8 | | Creation date and time +\nContains a FILETIME\n| 24 | 8 | | Last modification date and time +\n(Also referred to as last written date and time) +\nContains a FILETIME\n| 32 | 8 | | Entry (or metadata) last modification date and time +\nContains a FILETIME\n| 40 | 8 | | Last access date and time +\nContains a FILETIME\n| 48 | 16 | | [yellow-background]*Unknown (empty values)*\n| 64 | 4 | | File attribute flags\n| 68 | 4 | | [yellow-background]*Unknown (empty values)*\n|===\n\n=== [[directory_object_entry_record_file_values]]Directory object entry record file values\n\nThe directory object entry record file values are variable in size and consist\nof an embedded Ministore node. The embedded Ministore node contains:\n\n* header data\n* one or more <<directory_object_entry_record_attribute,attribute records>>\n\n[NOTE]\nNote that although the Ministore node is embedded in the record value it can\nbranch out to other Ministore nodes stored elsewhere.\n\nThe header data is 128 bytes in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 8 | | Creation date and time +\nContains a FILETIME\n| 8 | 8 | | Last modification date and time +\n(Also referred to as last written date and time) +\nContains a FILETIME\n| 16 | 8 | | Entry (or metadata) last modification date and time +\nContains a FILETIME\n| 24 | 8 | | Last access date and time +\nContains a FILETIME\n| 32 | 4 | | File attribute flags\n| 36 | 4 | | [yellow-background]*Unknown*\n| 40 | 8 | | File system identifier (lower 64-bits)\n| 48 | 8 | | File system identifier (upper 64-bits)\n| 56 | 4 | | [yellow-background]*Unknown*\n| 60 | 4 | | [yellow-background]*Unknown*\n| 64 | 8 | | Data size\n| 72 | 8 | | Allocated (or reserved) data size\n| 80 | 32 | | [yellow-background]*Unknown*\n| 112 | 8 | | [yellow-background]*Unknown*\n| 120 | 8 | | [yellow-background]*Unknown*\n|===\n\n=== [[directory_object_entry_record_attribute]]Attribute record\n\nkey data of default (or nameless) data attribute\n\n....\n00000000: 60 01 00 00 00 00 00 00  80 00 00 00 00 00         `....... ......\n....\n\nkey data of alternate data attribute\n....\n00000000: 4a 00 00 00 00 00 00 00  b0 00 00 00 6d 00 79 00   J....... ....m.y.\n00000010: 61 00 64 00 73 00                                  a.d.s.\n....\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 8 | | [yellow-background]*Unknown*\n| 8 | 4 | | [yellow-background]*Unknown (attribute type)*\n| 12 | ... | | Attribute name string +\nContains an UTF-16 little-endian without end-of-string character or an end-of-string character if the attribute is nameless\n|===\n\n[cols=\"1,1,5\",options=\"header\"]\n|===\n| Value | Identifier | Description\n| 0x10 | $STANDARD_INFORMATION |\n| 0x30 | $FILENAME |\n| 0x38 | $DIR_LINK |\n| 0x40 | $OBJECT_ID |\n| 0x50 | $OBSOLETE |\n| 0x60 | $VOLUME_NAME |\n| 0x70 | $VOLUME_INFO |\n| 0x80 | $DATA |\n| 0x90 | $INDEX_ROOT |\n| 0xa0 | $INDEX_ALLOCATION |\n| 0xb0 | $NAMED_DATA |\n| 0xc0 | $REPARSE_POINT |\n| 0xd0 | $EA_INFORMATION |\n| 0xe0 | $EA |\n|===\n\n==== [[directory_object_entry_record_resident_attribute]]Directory object entry record resident attribute\n\nThe directory object entry record resident attribute is variable in size and\nconsists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 4 | | [yellow-background]*Unknown (seen: 0 resident?)*\n| 4 | 4 | | (Resident or inline) data offset +\nThe offset is relative to the start of the record value\n| 8 | 4 | | (Resident or inline) data size\n| 12 | 4 | | [yellow-background]*Unknown*\n| 16 | 8 | | [yellow-background]*Unknown*\n| 24 | 8 | | [yellow-background]*Unknown*\n| 32 | 8 | | [yellow-background]*Unknown*\n| 40 | 8 | | [yellow-background]*Unknown*\n| 32 | 8 | | [yellow-background]*Unknown*\n| 40 | 4 | | [yellow-background]*Unknown*\n| 44 | ... | | (Resident or inline) data\n|===\n\n==== [[directory_object_entry_record_non_resident_attribute]]Directory object entry record non-resident attribute\n\nThe directory object entry record non-resident attribute is variable in size\nand consist of an embedded Ministore node. The embedded Ministore node contains:\n\n* header data\n* zero or more <<directory_object_entry_record_data_run,data run records>>\n\nThe header data is 96 bytes in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 4 | | [yellow-background]*Unknown (seen: 1 non-resident?)*\n| 4 | 8 | | [yellow-background]*Unknown (empty values?)*\n| 12 | 8 | | Allocated (or reserved) data size\n| 20 | 8 | | Data size\n| 28 | 8 | | Valid data size\n| 36 | 60 | | [yellow-background]*Unknown (empty values?)*\n|===\n\n=== [[directory_object_entry_record_data_run]]Data run record\n\nThe directory object entry record data run record key is the first 16 bytes of\nthe directory object entry record data run record value.\n\nThe directory object entry record data run record value is 16 bytes in size and\nconsists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 8 | | Data run logical offset\n| 8 | 8 | | Data run size +\nContains the number of metadata blocks\n| 16 | 8 | | Data run physical offset +\nContains a metadata block number\n| 24 | 8 | | [yellow-background]*Unknown*\n|===\n\n== [[file_system_information_object]]File system information object\n\nThe file system information object is a <<ministore_tree,Ministore B+-tree>>\nthat contains a single file system information record.\n\n=== File system information record key\n\nThe file system information record key is variable in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 2 | 0x30 | [yellow-background]*Unknown*\n| 2 | 2 | 0x01 | [yellow-background]*Unknown*\n| 4 | ... | \"Volume Direct IO File\" | String +\nContains an UTF-16 little-endian without end-of-string character\n|===\n\n=== File system information record value\n\nThe file system record value is TODO bytes in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n|===\n\n[yellow-background]*TODO: describe*\n\n== [[volume_information_object]]Volume information object\n\nThe volume information object is a <<ministore_tree,Ministore B+-tree>> that\ncontains multiple volume information records.\n\n=== Volume information record key\n\nThe volume information record key is 8 bytes in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | 8 | | Object identifier +\nSee section: <<object_identifiers,object identifiers>>\n|===\n\n[cols=\"1,1,5\",options=\"header\"]\n|===\n| Value | Identifier | Description\n| 0x00000510 | | Volume name record +\nComparable to NTFS volume name attribute ($VOLUME_NAME)\n| | |\n| 0x00000520 | | [yellow-background]*TODO: describe*\n| | |\n| 0x00000530 | | [yellow-background]*TODO: describe*\n| | |\n| 0x00000540 | | [yellow-background]*TODO: describe*\n|===\n\n=== Volume name record value\n\nThe volume name record value is variable in size and consists of:\n\n[cols=\"1,1,1,5\",options=\"header\"]\n|===\n| Offset | Size | Value | Description\n| 0 | ... | | Volume name +\nContains an UTF-16 little-endian without end-of-string character\n|===\n\n:numbered!:\n[appendix]\n== References\n\n`[BALLENTHIN12]`\n\n[cols=\"1,5\",options=\"header\"]\n|===\n| Title: | The Microsoft ReFS On-Disk Layout\n| Author(s): | Willi Ballenthin\n| Date: | 2012\n| URL: | http://www.williballenthin.com/forensics/refs/index.html\n|===\n\n`[GREEN13]`\n\n[cols=\"1,5\",options=\"header\"]\n|===\n| Title: | Resilient File System (ReFS) - Analysis of the File System found on Windows Server 2012 and Windows 8.1\n| Author(s): | Paul K. Green\n| Version: | 0.6\n| Date: | September 2013\n| URL: | https://docs.google.com/uc?export=download&id=0B7_P1Njdyx3hdnNtYlpVZ2taaU0\n|===\n\n`[PRADE19]`\n\n[cols=\"1,5\",options=\"header\"]\n|===\n| Title: | Forensic Analysis of the Resilient File System (ReFS) Version 3.4\n| Author(s): | Paul Prade, Tobias Groß, Andreas Dewald\n| Date: | December 2019\n| URL: | https://www.sciencedirect.com/science/article/pii/S266628172030010X\n|===\n\n`[MSDN]`\n\n[cols=\"1,5\",options=\"header\"]\n|===\n| Title: | http://www.williballenthin.com/forensics/refs/index.html\n| URL: | http://blogs.msdn.com/b/b8/archive/2012/01/16/building-the-next-generation-file-system-for-windows-refs.aspx\n|===\n\n[cols=\"1,5\",options=\"header\"]\n|===\n| Title: | FILE_SYSTEM_RECOGNITION_STRUCTURE structure\n| URL: | https://learn.microsoft.com/en-us/windows/win32/fileio/file-system-recognition-structure\n|===\n\n`[WIKIPEDIA]`\n\n[cols=\"1,5\",options=\"header\"]\n|===\n| Title: | Wikipedia: ReFS\n| URL: | https://en.wikipedia.org/wiki/ReFS\n|===\n\n[appendix]\n== GNU Free Documentation License\n\nVersion 1.3, 3 November 2008\nCopyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.\n<http://fsf.org/>\n\nEveryone is permitted to copy and distribute verbatim copies of this license\ndocument, but changing it is not allowed.\n\n=== 0. PREAMBLE\n\nThe purpose of this License is to make a manual, textbook, or other functional\nand useful document \"free\" in the sense of freedom: to assure everyone the\neffective freedom to copy and redistribute it, with or without modifying it,\neither commercially or noncommercially. Secondarily, this License preserves for\nthe author and publisher a way to get credit for their work, while not being\nconsidered responsible for modifications made by others.\n\nThis License is a kind of \"copyleft\", which means that derivative works of the\ndocument must themselves be free in the same sense. It complements the GNU\nGeneral Public License, which is a copyleft license designed for free software.\n\nWe have designed this License in order to use it for manuals for free software,\nbecause free software needs free documentation: a free program should come with\nmanuals providing the same freedoms that the software does. But this License is\nnot limited to software manuals; it can be used for any textual work,\nregardless of subject matter or whether it is published as a printed book. We\nrecommend this License principally for works whose purpose is instruction or\nreference.\n\n=== 1. APPLICABILITY AND DEFINITIONS\n\nThis License applies to any manual or other work, in any medium, that contains\na notice placed by the copyright holder saying it can be distributed under the\nterms of this License. Such a notice grants a world-wide, royalty-free license,\nunlimited in duration, to use that work under the conditions stated herein. The\n\"Document\", below, refers to any such manual or work. Any member of the public\nis a licensee, and is addressed as \"you\". You accept the license if you copy,\nmodify or distribute the work in a way requiring permission under copyright law.\n\nA \"Modified Version\" of the Document means any work containing the Document or\na portion of it, either copied verbatim, or with modifications and/or\ntranslated into another language.\n\nA \"Secondary Section\" is a named appendix or a front-matter section of the\nDocument that deals exclusively with the relationship of the publishers or\nauthors of the Document to the Document's overall subject (or to related\nmatters) and contains nothing that could fall directly within that overall\nsubject. (Thus, if the Document is in part a textbook of mathematics, a\nSecondary Section may not explain any mathematics.) The relationship could be a\nmatter of historical connection with the subject or with related matters, or of\nlegal, commercial, philosophical, ethical or political position regarding them.\n\nThe \"Invariant Sections\" are certain Secondary Sections whose titles are\ndesignated, as being those of Invariant Sections, in the notice that says that\nthe Document is released under this License. If a section does not fit the\nabove definition of Secondary then it is not allowed to be designated as\nInvariant. The Document may contain zero Invariant Sections. If the Document\ndoes not identify any Invariant Sections then there are none.\n\nThe \"Cover Texts\" are certain short passages of text that are listed, as\nFront-Cover Texts or Back-Cover Texts, in the notice that says that the\nDocument is released under this License. A Front-Cover Text may be at most 5\nwords, and a Back-Cover Text may be at most 25 words.\n\nA \"Transparent\" copy of the Document means a machine-readable copy, represented\nin a format whose specification is available to the general public, that is\nsuitable for revising the document straightforwardly with generic text editors\nor (for images composed of pixels) generic paint programs or (for drawings)\nsome widely available drawing editor, and that is suitable for input to text\nformatters or for automatic translation to a variety of formats suitable for\ninput to text formatters. A copy made in an otherwise Transparent file format\nwhose markup, or absence of markup, has been arranged to thwart or discourage\nsubsequent modification by readers is not Transparent. An image format is not\nTransparent if used for any substantial amount of text. A copy that is not\n\"Transparent\" is called \"Opaque\".\n\nExamples of suitable formats for Transparent copies include plain ASCII without\nmarkup, Texinfo input format, LaTeX input format, SGML or XML using a publicly\navailable DTD, and standard-conforming simple HTML, PostScript or PDF designed\nfor human modification. Examples of transparent image formats include PNG, XCF\nand JPG. Opaque formats include proprietary formats that can be read and edited\nonly by proprietary word processors, SGML or XML for which the DTD and/or\nprocessing tools are not generally available, and the machine-generated HTML,\nPostScript or PDF produced by some word processors for output purposes only.\n\nThe \"Title Page\" means, for a printed book, the title page itself, plus such\nfollowing pages as are needed to hold, legibly, the material this License\nrequires to appear in the title page. For works in formats which do not have\nany title page as such, \"Title Page\" means the text near the most prominent\nappearance of the work's title, preceding the beginning of the body of the text.\n\nThe \"publisher\" means any person or entity that distributes copies of the\nDocument to the public.\n\nA section \"Entitled XYZ\" means a named subunit of the Document whose title\neither is precisely XYZ or contains XYZ in parentheses following text that\ntranslates XYZ in another language. (Here XYZ stands for a specific section\nname mentioned below, such as \"Acknowledgements\", \"Dedications\",\n\"Endorsements\", or \"History\".) To \"Preserve the Title\" of such a section when\nyou modify the Document means that it remains a section \"Entitled XYZ\"\naccording to this definition.\n\nThe Document may include Warranty Disclaimers next to the notice which states\nthat this License applies to the Document. These Warranty Disclaimers are\nconsidered to be included by reference in this License, but only as regards\ndisclaiming warranties: any other implication that these Warranty Disclaimers\nmay have is void and has no effect on the meaning of this License.\n\n=== 2. VERBATIM COPYING\n\nYou may copy and distribute the Document in any medium, either commercially or\nnoncommercially, provided that this License, the copyright notices, and the\nlicense notice saying this License applies to the Document are reproduced in\nall copies, and that you add no other conditions whatsoever to those of this\nLicense. You may not use technical measures to obstruct or control the reading\nor further copying of the copies you make or distribute. However, you may\naccept compensation in exchange for copies. If you distribute a large enough\nnumber of copies you must also follow the conditions in section 3.\n\nYou may also lend copies, under the same conditions stated above, and you may\npublicly display copies.\n\n=== 3. COPYING IN QUANTITY\n\nIf you publish printed copies (or copies in media that commonly have printed\ncovers) of the Document, numbering more than 100, and the Document's license\nnotice requires Cover Texts, you must enclose the copies in covers that carry,\nclearly and legibly, all these Cover Texts: Front-Cover Texts on the front\ncover, and Back-Cover Texts on the back cover. Both covers must also clearly\nand legibly identify you as the publisher of these copies. The front cover must\npresent the full title with all words of the title equally prominent and\nvisible. You may add other material on the covers in addition. Copying with\nchanges limited to the covers, as long as they preserve the title of the\nDocument and satisfy these conditions, can be treated as verbatim copying in\nother respects.\n\nIf the required texts for either cover are too voluminous to fit legibly, you\nshould put the first ones listed (as many as fit reasonably) on the actual\ncover, and continue the rest onto adjacent pages.\n\nIf you publish or distribute Opaque copies of the Document numbering more than\n100, you must either include a machine-readable Transparent copy along with\neach Opaque copy, or state in or with each Opaque copy a computer-network\nlocation from which the general network-using public has access to download\nusing public-standard network protocols a complete Transparent copy of the\nDocument, free of added material. If you use the latter option, you must take\nreasonably prudent steps, when you begin distribution of Opaque copies in\nquantity, to ensure that this Transparent copy will remain thus accessible at\nthe stated location until at least one year after the last time you distribute\nan Opaque copy (directly or through your agents or retailers) of that edition\nto the public.\n\nIt is requested, but not required, that you contact the authors of the Document\nwell before redistributing any large number of copies, to give them a chance to\nprovide you with an updated version of the Document.\n\n=== 4. MODIFICATIONS\n\nYou may copy and distribute a Modified Version of the Document under the\nconditions of sections 2 and 3 above, provided that you release the Modified\nVersion under precisely this License, with the Modified Version filling the\nrole of the Document, thus licensing distribution and modification of the\nModified Version to whoever possesses a copy of it. In addition, you must do\nthese things in the Modified Version:\n\nA. Use in the Title Page (and on the covers, if any) a title distinct from that\nof the Document, and from those of previous versions (which should, if there\nwere any, be listed in the History section of the Document). You may use the\nsame title as a previous version if the original publisher of that version\ngives permission.\n\nB. List on the Title Page, as authors, one or more persons or entities\nresponsible for authorship of the modifications in the Modified Version,\ntogether with at least five of the principal authors of the Document (all of\nits principal authors, if it has fewer than five), unless they release you from\nthis requirement.\n\nC. State on the Title page the name of the publisher of the Modified Version,\nas the publisher.\n\nD. Preserve all the copyright notices of the Document.\n\nE. Add an appropriate copyright notice for your modifications adjacent to the\nother copyright notices.\n\nF. Include, immediately after the copyright notices, a license notice giving\nthe public permission to use the Modified Version under the terms of this\nLicense, in the form shown in the Addendum below.\n\nG. Preserve in that license notice the full lists of Invariant Sections and\nrequired Cover Texts given in the Document's license notice.\n\nH. Include an unaltered copy of this License.\n\nI. Preserve the section Entitled \"History\", Preserve its Title, and add to it\nan item stating at least the title, year, new authors, and publisher of the\nModified Version as given on the Title Page. If there is no section Entitled\n\"History\" in the Document, create one stating the title, year, authors, and\npublisher of the Document as given on its Title Page, then add an item\ndescribing the Modified Version as stated in the previous sentence.\n\nJ. Preserve the network location, if any, given in the Document for public\naccess to a Transparent copy of the Document, and likewise the network\nlocations given in the Document for previous versions it was based on. These\nmay be placed in the \"History\" section. You may omit a network location for a\nwork that was published at least four years before the Document itself, or if\nthe original publisher of the version it refers to gives permission.\n\nK. For any section Entitled \"Acknowledgements\" or \"Dedications\", Preserve the\nTitle of the section, and preserve in the section all the substance and tone of\neach of the contributor acknowledgements and/or dedications given therein.\n\nL. Preserve all the Invariant Sections of the Document, unaltered in their text\nand in their titles. Section numbers or the equivalent are not considered part\nof the section titles.\n\nM. Delete any section Entitled \"Endorsements\". Such a section may not be\nincluded in the Modified Version.\n\nN. Do not retitle any existing section to be Entitled \"Endorsements\" or to\nconflict in title with any Invariant Section.\n\nO. Preserve any Warranty Disclaimers.\n\nIf the Modified Version includes new front-matter sections or appendices that\nqualify as Secondary Sections and contain no material copied from the Document,\nyou may at your option designate some or all of these sections as invariant. To\ndo this, add their titles to the list of Invariant Sections in the Modified\nVersion's license notice. These titles must be distinct from any other section\ntitles.\n\nYou may add a section Entitled \"Endorsements\", provided it contains nothing but\nendorsements of your Modified Version by various parties—for example,\nstatements of peer review or that the text has been approved by an organization\nas the authoritative definition of a standard.\n\nYou may add a passage of up to five words as a Front-Cover Text, and a passage\nof up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts\nin the Modified Version. Only one passage of Front-Cover Text and one of\nBack-Cover Text may be added by (or through arrangements made by) any one\nentity. If the Document already includes a cover text for the same cover,\npreviously added by you or by arrangement made by the same entity you are\nacting on behalf of, you may not add another; but you may replace the old one,\non explicit permission from the previous publisher that added the old one.\n\nThe author(s) and publisher(s) of the Document do not by this License give\npermission to use their names for publicity for or to assert or imply\nendorsement of any Modified Version.\n\n=== 5. COMBINING DOCUMENTS\n\nYou may combine the Document with other documents released under this License,\nunder the terms defined in section 4 above for modified versions, provided that\nyou include in the combination all of the Invariant Sections of all of the\noriginal documents, unmodified, and list them all as Invariant Sections of your\ncombined work in its license notice, and that you preserve all their Warranty\nDisclaimers.\n\nThe combined work need only contain one copy of this License, and multiple\nidentical Invariant Sections may be replaced with a single copy. If there are\nmultiple Invariant Sections with the same name but different contents, make the\ntitle of each such section unique by adding at the end of it, in parentheses,\nthe name of the original author or publisher of that section if known, or else\na unique number. Make the same adjustment to the section titles in the list of\nInvariant Sections in the license notice of the combined work.\n\nIn the combination, you must combine any sections Entitled \"History\" in the\nvarious original documents, forming one section Entitled \"History\"; likewise\ncombine any sections Entitled \"Acknowledgements\", and any sections Entitled\n\"Dedications\". You must delete all sections Entitled \"Endorsements\".\n\n=== 6. COLLECTIONS OF DOCUMENTS\n\nYou may make a collection consisting of the Document and other documents\nreleased under this License, and replace the individual copies of this License\nin the various documents with a single copy that is included in the collection,\nprovided that you follow the rules of this License for verbatim copying of each\nof the documents in all other respects.\n\nYou may extract a single document from such a collection, and distribute it\nindividually under this License, provided you insert a copy of this License\ninto the extracted document, and follow this License in all other respects\nregarding verbatim copying of that document.\n\n=== 7. AGGREGATION WITH INDEPENDENT WORKS\n\nA compilation of the Document or its derivatives with other separate and\nindependent documents or works, in or on a volume of a storage or distribution\nmedium, is called an \"aggregate\" if the copyright resulting from the\ncompilation is not used to limit the legal rights of the compilation's users\nbeyond what the individual works permit. When the Document is included in an\naggregate, this License does not apply to the other works in the aggregate\nwhich are not themselves derivative works of the Document.\n\nIf the Cover Text requirement of section 3 is applicable to these copies of the\nDocument, then if the Document is less than one half of the entire aggregate,\nthe Document's Cover Texts may be placed on covers that bracket the Document\nwithin the aggregate, or the electronic equivalent of covers if the Document is\nin electronic form. Otherwise they must appear on printed covers that bracket\nthe whole aggregate.\n\n=== 8. TRANSLATION\n\nTranslation is considered a kind of modification, so you may distribute\ntranslations of the Document under the terms of section 4. Replacing Invariant\nSections with translations requires special permission from their copyright\nholders, but you may include translations of some or all Invariant Sections in\naddition to the original versions of these Invariant Sections. You may include\na translation of this License, and all the license notices in the Document, and\nany Warranty Disclaimers, provided that you also include the original English\nversion of this License and the original versions of those notices and\ndisclaimers. In case of a disagreement between the translation and the original\nversion of this License or a notice or disclaimer, the original version will\nprevail.\n\nIf a section in the Document is Entitled \"Acknowledgements\", \"Dedications\", or\n\"History\", the requirement (section 4) to Preserve its Title (section 1) will\ntypically require changing the actual title.\n\n=== 9. TERMINATION\n\nYou may not copy, modify, sublicense, or distribute the Document except as\nexpressly provided under this License. Any attempt otherwise to copy, modify,\nsublicense, or distribute it is void, and will automatically terminate your\nrights under this License.\n\nHowever, if you cease all violation of this License, then your license from a\nparticular copyright holder is reinstated (a) provisionally, unless and until\nthe copyright holder explicitly and finally terminates your license, and (b)\npermanently, if the copyright holder fails to notify you of the violation by\nsome reasonable means prior to 60 days after the cessation.\n\nMoreover, your license from a particular copyright holder is reinstated\npermanently if the copyright holder notifies you of the violation by some\nreasonable means, this is the first time you have received notice of violation\nof this License (for any work) from that copyright holder, and you cure the\nviolation prior to 30 days after your receipt of the notice.\n\nTermination of your rights under this section does not terminate the licenses\nof parties who have received copies or rights from you under this License. If\nyour rights have been terminated and not permanently reinstated, receipt of a\ncopy of some or all of the same material does not give you any rights to use it.\n\n=== 10. FUTURE REVISIONS OF THIS LICENSE\n\nThe Free Software Foundation may publish new, revised versions of the GNU Free\nDocumentation License from time to time. Such new versions will be similar in\nspirit to the present version, but may differ in detail to address new problems\nor concerns. See http://www.gnu.org/copyleft/.\n\nEach version of the License is given a distinguishing version number. If the\nDocument specifies that a particular numbered version of this License \"or any\nlater version\" applies to it, you have the option of following the terms and\nconditions either of that specified version or of any later version that has\nbeen published (not as a draft) by the Free Software Foundation. If the\nDocument does not specify a version number of this License, you may choose any\nversion ever published (not as a draft) by the Free Software Foundation. If the\nDocument specifies that a proxy can decide which future versions of this\nLicense can be used, that proxy's public statement of acceptance of a version\npermanently authorizes you to choose that version for the Document.\n\n=== 11. RELICENSING\n\n\"Massive Multiauthor Collaboration Site\" (or \"MMC Site\") means any World Wide\nWeb server that publishes copyrightable works and also provides prominent\nfacilities for anybody to edit those works. A public wiki that anybody can edit\nis an example of such a server. A \"Massive Multiauthor Collaboration\" (or\n\"MMC\") contained in the site means any set of copyrightable works thus\npublished on the MMC site.\n\n\"CC-BY-SA\" means the Creative Commons Attribution-Share Alike 3.0 license\npublished by Creative Commons Corporation, a not-for-profit corporation with a\nprincipal place of business in San Francisco, California, as well as future\ncopyleft versions of that license published by that same organization.\n\n\"Incorporate\" means to publish or republish a Document, in whole or in part, as\npart of another Document.\n\nAn MMC is \"eligible for relicensing\" if it is licensed under this License, and\nif all works that were first published under this License somewhere other than\nthis MMC, and subsequently incorporated in whole or in part into the MMC, (1)\nhad no cover texts or invariant sections, and (2) were thus incorporated prior\nto November 1, 2008.\n\nThe operator of an MMC Site may republish an MMC contained in the site under\nCC-BY-SA on the same site at any time before August 1, 2009, provided the MMC\nis eligible for relicensing.\n\n"
  },
  {
    "path": "dpkg/changelog.in",
    "content": "libfsrefs (@VERSION@-1) unstable; urgency=low\n\n  * Auto-generated\n\n -- Joachim Metz <joachim.metz@gmail.com>  @DPKG_DATE@\n"
  },
  {
    "path": "dpkg/compat",
    "content": "10\n"
  },
  {
    "path": "dpkg/control",
    "content": "Source: libfsrefs\nPriority: extra\nMaintainer: Joachim Metz <joachim.metz@gmail.com>\nBuild-Depends: debhelper (>= 9), dh-autoreconf, pkg-config\nStandards-Version: 4.1.4\nSection: libs\nHomepage: https://github.com/libyal/libfsrefs\nVcs-Git: https://github.com/libyal/libfsrefs.git\n\nPackage: libfsrefs\nArchitecture: any\nDepends: ${shlibs:Depends}, ${misc:Depends}\nConflicts: libfsrefs1\nReplaces: libfsrefs1\nSuggests: libfsrefs-dbg\nDescription: Library to access the Resiliant File System (ReFS) format\n libfsrefs is a library to access the Resiliant File System (ReFS) format.\n\nPackage: libfsrefs-dbg\nArchitecture: any\nSection: debug\nDepends: libfsrefs (= ${binary:Version}), ${misc:Depends}\nDescription: Debugging symbols for libfsrefs\n Debugging symbols for libfsrefs.\n\nPackage: libfsrefs-dev\nSection: libdevel\nArchitecture: any\nDepends: libfsrefs (= ${binary:Version}), ${misc:Depends}\nDescription: Header files and libraries for developing applications for libfsrefs\n Header files and libraries for developing applications for libfsrefs.\n\nPackage: libfsrefs-tools\nSection: utils\nArchitecture: any\nDepends: libfsrefs (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}\nConflicts: libfsrefs-utils\nReplaces: libfsrefs-utils\nDescription: Several tools for reading Resiliant File System (ReFS) volumes\n Several tools for reading Resiliant File System (ReFS) volumes.\n\nPackage: libfsrefs-tools-dbg\nSection: debug\nArchitecture: any\nDepends: libfsrefs-tools (= ${binary:Version}), ${misc:Depends}\nDescription: Debugging symbols for libfsrefs-tools\n Debugging symbols for libfsrefs-tools.\n\n"
  },
  {
    "path": "dpkg/copyright",
    "content": "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\nUpstream-Name: libfsrefs\nSource: https://github.com/libyal/libfsrefs\n\nFiles: *\nCopyright: 2012-2025, Joachim Metz <joachim.metz@gmail.com>\nLicense: LGPL-3.0+\n\nLicense: LGPL-3.0+\n This package is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 3 of the License, or (at your option) any later version.\n .\n This package is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n Lesser General Public License for more details.\n .\n You should have received a copy of the GNU General Public License\n along with this program. If not, see <http://www.gnu.org/licenses/>.\n .\n On Debian systems, the complete text of the GNU Lesser General\n Public License can be found in \"/usr/share/common-licenses/LGPL-3\".\n\n"
  },
  {
    "path": "dpkg/libfsrefs-dev.install",
    "content": "usr/include/*\nusr/lib/*-*/lib*.a\nusr/lib/*-*/lib*.so\nusr/lib/*-*/pkgconfig/*\nusr/share/man/man3\n"
  },
  {
    "path": "dpkg/libfsrefs-tools.install",
    "content": "usr/bin\nusr/share/man/man1\n"
  },
  {
    "path": "dpkg/libfsrefs.install",
    "content": "usr/lib/*-*/lib*.so.*\n"
  },
  {
    "path": "dpkg/rules",
    "content": "#!/usr/bin/make -f\n# -*- makefile -*-\n\n# Uncomment for debhelper verbose output.\n# export DH_VERBOSE=1\n\n%:\n\tdh $@ --buildsystem=autoconf --with=autoreconf\n\n.PHONY: override_dh_auto_configure\noverride_dh_auto_configure:\n\tdh_auto_configure -- CFLAGS=\"-g\"\n\n.PHONY: override_dh_install\noverride_dh_install:\n\tdh_install --fail-missing -X.la\n\n.PHONY: override_dh_strip\noverride_dh_strip:\nifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))\n\tdh_strip -plibfsrefs --dbg-package=libfsrefs-dbg\n\tdh_strip -plibfsrefs-tools --dbg-package=libfsrefs-tools-dbg\nendif\n\n"
  },
  {
    "path": "dpkg/source/format",
    "content": "3.0 (quilt)\n"
  },
  {
    "path": "fsrefstools/Makefile.am",
    "content": "AM_CPPFLAGS = \\\n\t-I../include -I$(top_srcdir)/include \\\n\t-I../common -I$(top_srcdir)/common \\\n\t@LIBCERROR_CPPFLAGS@ \\\n\t@LIBCDATA_CPPFLAGS@ \\\n\t@LIBCLOCALE_CPPFLAGS@ \\\n\t@LIBCNOTIFY_CPPFLAGS@ \\\n\t@LIBCSPLIT_CPPFLAGS@ \\\n\t@LIBUNA_CPPFLAGS@ \\\n\t@LIBCFILE_CPPFLAGS@ \\\n\t@LIBCPATH_CPPFLAGS@ \\\n\t@LIBBFIO_CPPFLAGS@ \\\n\t@LIBFCACHE_CPPFLAGS@ \\\n\t@LIBFDATA_CPPFLAGS@ \\\n\t@LIBFDATETIME_CPPFLAGS@ \\\n\t@LIBFGUID_CPPFLAGS@ \\\n\t@LIBFWNT_CPPFLAGS@ \\\n\t@LIBFSREFS_DLL_IMPORT@\n\nAM_LDFLAGS = @STATIC_LDFLAGS@\n\nbin_PROGRAMS = \\\n\tfsrefsinfo\n\nfsrefsinfo_SOURCES = \\\n\tfsrefsinfo.c \\\n\tfsrefstools_getopt.c fsrefstools_getopt.h \\\n\tfsrefstools_i18n.h \\\n\tfsrefstools_libbfio.h \\\n\tfsrefstools_libcerror.h \\\n\tfsrefstools_libclocale.h \\\n\tfsrefstools_libcnotify.h \\\n\tfsrefstools_libfcache.h \\\n\tfsrefstools_libfdata.h \\\n\tfsrefstools_libfdatetime.h \\\n\tfsrefstools_libfguid.h \\\n\tfsrefstools_libfsrefs.h \\\n\tfsrefstools_libfwnt.h \\\n\tfsrefstools_libuna.h \\\n\tfsrefstools_output.c fsrefstools_output.h \\\n\tfsrefstools_signal.c fsrefstools_signal.h \\\n\tfsrefstools_unused.h \\\n\tinfo_handle.c info_handle.h\n\nfsrefsinfo_LDADD = \\\n\t@LIBBFIO_LIBADD@ \\\n\t@LIBCPATH_LIBADD@ \\\n\t@LIBCFILE_LIBADD@ \\\n\t@LIBUNA_LIBADD@ \\\n\t@LIBCSPLIT_LIBADD@ \\\n\t@LIBCNOTIFY_LIBADD@ \\\n\t@LIBCLOCALE_LIBADD@ \\\n\t@LIBCDATA_LIBADD@ \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@ \\\n\t@LIBINTL@\n\nDISTCLEANFILES = \\\n\tMakefile \\\n\tMakefile.in\n\nsplint-local:\n\t@echo \"Running splint on fsrefsinfo ...\"\n\t-splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(fsrefsinfo_SOURCES)\n\n"
  },
  {
    "path": "fsrefstools/fsrefsinfo.c",
    "content": "/*\n * Shows information obtained from a Resiliant File System (ReFS) volume.\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <memory.h>\n#include <system_string.h>\n#include <types.h>\n\n#include <stdio.h>\n\n#if defined( HAVE_IO_H ) || defined( WINAPI )\n#include <io.h>\n#endif\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#if defined( HAVE_UNISTD_H )\n#include <unistd.h>\n#endif\n\n#include \"fsrefstools_getopt.h\"\n#include \"fsrefstools_libcerror.h\"\n#include \"fsrefstools_libclocale.h\"\n#include \"fsrefstools_libcnotify.h\"\n#include \"fsrefstools_libfsrefs.h\"\n#include \"fsrefstools_output.h\"\n#include \"fsrefstools_signal.h\"\n#include \"fsrefstools_unused.h\"\n#include \"info_handle.h\"\n\nenum FSREFSINFO_MODES\n{\n\tFSREFSINFO_MODE_FILE_ENTRY,\n\tFSREFSINFO_MODE_FILE_SYSTEM_HIERARCHY,\n\tFSREFSINFO_MODE_USN_CHANGE_JOURNAL,\n\tFSREFSINFO_MODE_VOLUME\n};\n\ninfo_handle_t *fsrefsinfo_info_handle = NULL;\nint fsrefsinfo_abort                  = 0;\n\n/* Prints usage information\n */\nvoid usage_fprint(\n      FILE *stream )\n{\n\tif( stream == NULL )\n\t{\n\t\treturn;\n\t}\n\tfprintf( stream, \"Use fsrefsinfo to determine information about a Resiliant\\n\"\n\t                 \" File System (ReFS).\\n\\n\" );\n\n\tfprintf( stream, \"Usage: fsrefsinfo [ -o offset ] [ -hHvV ] source\\n\\n\" );\n\n\tfprintf( stream, \"\\tsource: the source file or device\\n\\n\" );\n\n\tfprintf( stream, \"\\t-h:     shows this help\\n\" );\n\tfprintf( stream, \"\\t-H:     shows the file system hierarchy\\n\" );\n\tfprintf( stream, \"\\t-o:     specify the volume offset\\n\" );\n\tfprintf( stream, \"\\t-v:     verbose output to stderr\\n\" );\n\tfprintf( stream, \"\\t-V:     print version\\n\" );\n}\n\n/* Signal handler for fsrefsinfo\n */\nvoid fsrefsinfo_signal_handler(\n      fsrefstools_signal_t signal FSREFSTOOLS_ATTRIBUTE_UNUSED )\n{\n\tlibcerror_error_t *error = NULL;\n\tstatic char *function    = \"fsrefsinfo_signal_handler\";\n\n\tFSREFSTOOLS_UNREFERENCED_PARAMETER( signal )\n\n\tfsrefsinfo_abort = 1;\n\n\tif( fsrefsinfo_info_handle != NULL )\n\t{\n\t\tif( info_handle_signal_abort(\n\t\t     fsrefsinfo_info_handle,\n\t\t     &error ) != 1 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unable to signal info handle to abort.\\n\",\n\t\t\t function );\n\n\t\t\tlibcnotify_print_error_backtrace(\n\t\t\t error );\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\t/* Force stdin to close otherwise any function reading it will remain blocked\n\t */\n#if defined( WINAPI ) && !defined( __CYGWIN__ )\n\tif( _close(\n\t     0 ) != 0 )\n#else\n\tif( close(\n\t     0 ) != 0 )\n#endif\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: unable to close stdin.\\n\",\n\t\t function );\n\t}\n}\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain( int argc, wchar_t * const argv[] )\n#else\nint main( int argc, char * const argv[] )\n#endif\n{\n\tlibfsrefs_error_t *error                 = NULL;\n\tsystem_character_t *option_volume_offset = NULL;\n\tsystem_character_t *source               = NULL;\n\tchar *program                            = \"fsrefsinfo\";\n\tsystem_integer_t option                  = 0;\n\tuint8_t calculate_md5                    = 0;\n\tint option_mode                          = FSREFSINFO_MODE_VOLUME;\n\tint verbose                              = 0;\n\n\tlibcnotify_stream_set(\n\t stderr,\n\t NULL );\n\tlibcnotify_verbose_set(\n\t 1 );\n\n\tif( libclocale_initialize(\n\t     \"fsrefstools\",\n\t     &error ) != 1 )\n\t{\n\t\tfprintf(\n\t\t stderr,\n\t\t \"Unable to initialize locale values.\\n\" );\n\n\t\tgoto on_error;\n\t}\n\tif( fsrefstools_output_initialize(\n\t     _IONBF,\n\t     &error ) != 1 )\n\t{\n\t\tfprintf(\n\t\t stderr,\n\t\t \"Unable to initialize output settings.\\n\" );\n\n\t\tgoto on_error;\n\t}\n\tfsrefstools_output_version_fprint(\n\t stdout,\n\t program );\n\n\twhile( ( option = fsrefstools_getopt(\n\t                   argc,\n\t                   argv,\n\t                   _SYSTEM_STRING( \"hHo:vV\" ) ) ) != (system_integer_t) -1 )\n\t{\n\t\tswitch( option )\n\t\t{\n\t\t\tcase (system_integer_t) '?':\n\t\t\tdefault:\n\t\t\t\tfprintf(\n\t\t\t\t stderr,\n\t\t\t\t \"Invalid argument: %\" PRIs_SYSTEM \"\\n\",\n\t\t\t\t argv[ optind - 1 ] );\n\n\t\t\t\tusage_fprint(\n\t\t\t\t stdout );\n\n\t\t\t\treturn( EXIT_FAILURE );\n\n\t\t\tcase (system_integer_t) 'h':\n\t\t\t\tusage_fprint(\n\t\t\t\t stdout );\n\n\t\t\t\treturn( EXIT_SUCCESS );\n\n\t\t\tcase (system_integer_t) 'H':\n\t\t\t\toption_mode = FSREFSINFO_MODE_FILE_SYSTEM_HIERARCHY;\n\n\t\t\t\tbreak;\n\n\t\t\tcase (system_integer_t) 'o':\n\t\t\t\toption_volume_offset = optarg;\n\n\t\t\t\tbreak;\n\n\t\t\tcase (system_integer_t) 'v':\n\t\t\t\tverbose = 1;\n\n\t\t\t\tbreak;\n\n\t\t\tcase (system_integer_t) 'V':\n\t\t\t\tfsrefstools_output_copyright_fprint(\n\t\t\t\t stdout );\n\n\t\t\t\treturn( EXIT_SUCCESS );\n\t\t}\n\t}\n\tif( optind == argc )\n\t{\n\t\tfprintf(\n\t\t stderr,\n\t\t \"Missing source file or device.\\n\" );\n\n\t\tusage_fprint(\n\t\t stdout );\n\n\t\treturn( EXIT_FAILURE );\n\t}\n\tsource = argv[ optind ];\n\n\tlibcnotify_verbose_set(\n\t verbose );\n\tlibfsrefs_notify_set_stream(\n\t stderr,\n\t NULL );\n\tlibfsrefs_notify_set_verbose(\n\t verbose );\n\n\tif( info_handle_initialize(\n\t     &fsrefsinfo_info_handle,\n\t     calculate_md5,\n\t     &error ) != 1 )\n\t{\n\t\tfprintf(\n\t\t stderr,\n\t\t \"Unable to initialize info handle.\\n\" );\n\n\t\tgoto on_error;\n\t}\n\tif( option_volume_offset != NULL )\n\t{\n\t\tif( info_handle_set_volume_offset(\n\t\t     fsrefsinfo_info_handle,\n\t\t     option_volume_offset,\n\t\t     &error ) != 1 )\n\t\t{\n\t\t\tlibcnotify_print_error_backtrace(\n\t\t\t error );\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\n\t\t\tfprintf(\n\t\t\t stderr,\n\t\t\t \"Unsupported volume offset defaulting to: %\" PRIi64 \".\\n\",\n\t\t\t fsrefsinfo_info_handle->volume_offset );\n\t\t}\n\t}\n\tif( info_handle_open_input(\n\t     fsrefsinfo_info_handle,\n\t     source,\n\t     &error ) != 1 )\n\t{\n\t\tfprintf(\n\t\t stderr,\n\t\t \"Unable to open: %\" PRIs_SYSTEM \".\\n\",\n\t\t source );\n\n\t\tgoto on_error;\n\t}\n\tswitch( option_mode )\n\t{\n\t\tcase FSREFSINFO_MODE_FILE_SYSTEM_HIERARCHY:\n\t\t\tif( info_handle_file_system_hierarchy_fprint(\n\t\t\t     fsrefsinfo_info_handle,\n\t\t\t     &error ) != 1 )\n\t\t\t{\n\t\t\t\tfprintf(\n\t\t\t\t stderr,\n\t\t\t\t \"Unable to print file system hierarchy.\\n\" );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase FSREFSINFO_MODE_VOLUME:\n\t\tdefault:\n\t\t\tif( info_handle_volume_fprint(\n\t\t\t     fsrefsinfo_info_handle,\n\t\t\t     &error ) != 1 )\n\t\t\t{\n\t\t\t\tfprintf(\n\t\t\t\t stderr,\n\t\t\t\t \"Unable to print volume information.\\n\" );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tbreak;\n\t}\n\tif( info_handle_close_input(\n\t     fsrefsinfo_info_handle,\n\t     &error ) != 0 )\n\t{\n\t\tfprintf(\n\t\t stderr,\n\t\t \"Unable to close info handle.\\n\" );\n\n\t\tgoto on_error;\n\t}\n\tif( info_handle_free(\n\t     &fsrefsinfo_info_handle,\n\t     &error ) != 1 )\n\t{\n\t\tfprintf(\n\t\t stderr,\n\t\t \"Unable to free info handle.\\n\" );\n\n\t\tgoto on_error;\n\t}\n\treturn( EXIT_SUCCESS );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcnotify_print_error_backtrace(\n\t\t error );\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( fsrefsinfo_info_handle != NULL )\n\t{\n\t\tinfo_handle_free(\n\t\t &fsrefsinfo_info_handle,\n\t\t NULL );\n\t}\n\treturn( EXIT_FAILURE );\n}\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_getopt.c",
    "content": "/*\n * GetOpt functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <narrow_string.h>\n#include <system_string.h>\n#include <types.h>\n#include <wide_string.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefstools_getopt.h\"\n#include \"fsrefstools_libcnotify.h\"\n\n#if !defined( HAVE_GETOPT )\n\n/* The option index\n * Start with argument 1 (argument 0 is the program name)\n */\nint optind = 1;\n\n/* The current option argument\n */\nsystem_character_t *optarg = NULL;\n\n/* Value to indicate the current option\n */\nsystem_integer_t optopt = 0;\n\n/* The next option in a group\n */\nsystem_character_t *next_option = NULL;\n\n/* Get the program options\n * Function for platforms that do not have the getopt function\n * Returns the option character processed, or -1 on error,\n * ? if the option was not in the options string, : if the option argument was missing\n */\nsystem_integer_t fsrefstools_getopt(\n                  int argument_count,\n                  system_character_t * const argument_values[],\n                  const system_character_t *options_string )\n{\n\tsystem_character_t *argument_value = NULL;\n\tsystem_character_t *option_value   = NULL;\n\tstatic char *function              = \"fsrefstools_getopt\";\n\tsize_t options_string_length       = 0;\n\n\tif( next_option != NULL )\n\t{\n\t\targument_value = next_option;\n\t\tnext_option    = NULL;\n\t}\n\telse if( optind >= argument_count )\n\t{\n\t\treturn( (system_integer_t) -1 );\n\t}\n\telse\n\t{\n\t\targument_value = argument_values[ optind ];\n\n\t\t/* Check if the argument value is not an empty string\n\t\t */\n\t\tif( *argument_value == (system_character_t) '\\0' )\n\t\t{\n\t\t\treturn( (system_integer_t) -1 );\n\t\t}\n\t\t/* Check if the first character is a option marker '-'\n\t\t */\n\t\tif( *argument_value != (system_character_t) '-' )\n\t\t{\n\t\t\treturn( (system_integer_t) -1 );\n\t\t}\n\t\targument_value++;\n\n\t\t/* Check if long options are provided '--'\n\t\t */\n\t\tif( *argument_value == (system_character_t) '-' )\n\t\t{\n\t\t\toptind++;\n\n\t\t\treturn( (system_integer_t) -1 );\n\t\t}\n\t}\n\toptions_string_length = system_string_length(\n\t                         options_string );\n\n\toptopt       = *argument_value;\n\toption_value = system_string_search_character(\n\t                options_string,\n\t                optopt,\n\t                options_string_length );\n\n\targument_value++;\n\n\t/* Check if an argument was specified or that the option was not found\n\t * in the option string\n\t */\n\tif( ( optopt == (system_integer_t) ':' )\n\t || ( option_value == NULL ) )\n\t{\n\t\tif( *argument_value == (system_character_t) '\\0' )\n\t\t{\n\t\t\toptind++;\n\t\t}\n\t\tif( ( *options_string != (system_character_t) ':' )\n\t\t && ( optopt != (system_integer_t) '?' ) )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: no such option: %\" PRIc_SYSTEM \".\\n\",\n\t\t\t function,\n\t\t\t optopt );\n\t\t}\n\t\treturn( (system_integer_t) '?' );\n\t}\n\toption_value++;\n\n\t/* Check if no option argument is required\n\t */\n\tif( *option_value != (system_character_t) ':' )\n\t{\n\t\toptarg = NULL;\n\n\t\tif( *argument_value == (system_character_t) '\\0' )\n\t\t{\n\t\t\toptind++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/* Multiple options are grouped\n\t\t\t */\n\t\t\tnext_option = argument_value;\n\t\t}\n\t}\n\t/* Check if the argument is right after the option flag with no space in between\n\t */\n\telse if( *argument_value != (system_character_t) '\\0' )\n\t{\n\t\toptarg = argument_value;\n\n\t\toptind++;\n\t}\n\telse\n\t{\n\t\toptind++;\n\n\t\t/* Check if the argument was provided as the next argument value\n\t\t */\n\t\tif( argument_count <= optind )\n\t\t{\n\t\t\tif( *option_value == ':' )\n\t\t\t{\n\t\t\t\treturn( (system_integer_t) ':' );\n\t\t\t}\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: option: %\" PRIc_SYSTEM \" requires an argument.\\n\",\n\t\t\t function,\n\t\t\t optopt );\n\n\t\t\treturn( (system_integer_t) '?' );\n\t\t}\n\t\toptarg = argument_values[ optind ];\n\n\t\toptind++;\n\t}\n\treturn( optopt );\n}\n\n#endif /* !defined( HAVE_GETOPT ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_getopt.h",
    "content": "/*\n * GetOpt functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFSTOOLS_GETOPT_H )\n#define _FSREFSTOOLS_GETOPT_H\n\n#include <common.h>\n#include <types.h>\n\n/* unistd.h is included here to export getopt, optarg, optind and optopt\n */\n#if defined( HAVE_UNISTD_H )\n#include <unistd.h>\n#endif\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\n#if defined( HAVE_GETOPT )\n#define fsrefstools_getopt( argument_count, argument_values, options_string ) \\\n\tgetopt( argument_count, argument_values, options_string )\n\n#else\n\n#if !defined( __CYGWIN__ )\nextern int optind;\nextern system_character_t *optarg;\nextern system_integer_t optopt;\n\n#else\nint optind;\nsystem_character_t *optarg;\nsystem_integer_t optopt;\n\n#endif /* !defined( __CYGWIN__ ) */\n\nsystem_integer_t fsrefstools_getopt(\n                  int argument_count,\n                  system_character_t * const argument_values[],\n                  const system_character_t *options_string );\n\n#endif /* defined( HAVE_GETOPT ) */\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _FSREFSTOOLS_GETOPT_H ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_i18n.h",
    "content": "/*\n * Internationalization (i18n) functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFSTOOLS_I18N_H )\n#define _FSREFSTOOLS_I18N_H\n\n#include <common.h>\n\n#if defined( HAVE_LIBINTL_H )\n#include <libintl.h>\n#endif\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\n/* TODO for now do nothing i18n-like\n#define\t_( string ) \\\n\tgettext( string )\n*/\n\n#define\t_( string ) \\\n\tstring\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _FSREFSTOOLS_I18N_H ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_libbfio.h",
    "content": "/*\n * The libbfio header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFSTOOLS_LIBBFIO_H )\n#define _FSREFSTOOLS_LIBBFIO_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBBFIO for local use of libbfio\n */\n#if defined( HAVE_LOCAL_LIBBFIO )\n\n#include <libbfio_definitions.h>\n#include <libbfio_file.h>\n#include <libbfio_file_pool.h>\n#include <libbfio_file_range.h>\n#include <libbfio_handle.h>\n#include <libbfio_memory_range.h>\n#include <libbfio_pool.h>\n#include <libbfio_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBBFIO_DLL_IMPORT\n * before including libbfio.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES )\n#define LIBBFIO_DLL_IMPORT\n#endif\n\n#include <libbfio.h>\n\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( LIBBFIO_HAVE_MULTI_THREAD_SUPPORT )\n#error Multi-threading support requires libbfio with multi-threading support\n#endif\n\n#endif /* defined( HAVE_LOCAL_LIBBFIO ) */\n\n#endif /* !defined( _FSREFSTOOLS_LIBBFIO_H ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_libcerror.h",
    "content": "/*\n * The libcerror header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFSTOOLS_LIBCERROR_H )\n#define _FSREFSTOOLS_LIBCERROR_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBCERROR for local use of libcerror\n */\n#if defined( HAVE_LOCAL_LIBCERROR )\n\n#include <libcerror_definitions.h>\n#include <libcerror_error.h>\n#include <libcerror_system.h>\n#include <libcerror_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT\n * before including libcerror.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES )\n#define LIBCERROR_DLL_IMPORT\n#endif\n\n#include <libcerror.h>\n\n#endif /* defined( HAVE_LOCAL_LIBCERROR ) */\n\n#endif /* !defined( _FSREFSTOOLS_LIBCERROR_H ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_libclocale.h",
    "content": "/*\n * The libclocale header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFSTOOLS_LIBCLOCALE_H )\n#define _FSREFSTOOLS_LIBCLOCALE_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBCLOCALE for local use of libclocale\n */\n#if defined( HAVE_LOCAL_LIBCLOCALE )\n\n#include <libclocale_codepage.h>\n#include <libclocale_definitions.h>\n#include <libclocale_locale.h>\n#include <libclocale_support.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBCLOCALE_DLL_IMPORT\n * before including libclocale.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES )\n#define LIBCLOCALE_DLL_IMPORT\n#endif\n\n#include <libclocale.h>\n\n#endif /* defined( HAVE_LOCAL_LIBCLOCALE ) */\n\n#endif /* !defined( _FSREFSTOOLS_LIBCLOCALE_H ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_libcnotify.h",
    "content": "/*\n * The libcnotify header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFSTOOLS_LIBCNOTIFY_H )\n#define _FSREFSTOOLS_LIBCNOTIFY_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBCNOTIFY for local use of libcnotify\n */\n#if defined( HAVE_LOCAL_LIBCNOTIFY )\n\n#include <libcnotify_definitions.h>\n#include <libcnotify_print.h>\n#include <libcnotify_stream.h>\n#include <libcnotify_verbose.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBCNOTIFY_DLL_IMPORT\n * before including libcnotify.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES )\n#define LIBCNOTIFY_DLL_IMPORT\n#endif\n\n#include <libcnotify.h>\n\n#endif /* defined( HAVE_LOCAL_LIBCNOTIFY ) */\n\n#endif /* !defined( _FSREFSTOOLS_LIBCNOTIFY_H ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_libfcache.h",
    "content": "/*\n * The libfcache header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFSTOOLS_LIBFCACHE_H )\n#define _FSREFSTOOLS_LIBFCACHE_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBFCACHE for local use of libfcache\n */\n#if defined( HAVE_LOCAL_LIBFCACHE )\n\n#include <libfcache_cache.h>\n#include <libfcache_date_time.h>\n#include <libfcache_definitions.h>\n#include <libfcache_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBFCACHE_DLL_IMPORT\n * before including libfcache.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES )\n#define LIBFCACHE_DLL_IMPORT\n#endif\n\n#include <libfcache.h>\n\n#endif /* defined( HAVE_LOCAL_LIBFCACHE ) */\n\n#endif /* !defined( _FSREFSTOOLS_LIBFCACHE_H ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_libfdata.h",
    "content": "/*\n * The libfdata header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFSTOOLS_LIBFDATA_H )\n#define _FSREFSTOOLS_LIBFDATA_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBFDATA for local use of libfdata\n */\n#if defined( HAVE_LOCAL_LIBFDATA )\n\n#include <libfdata_area.h>\n#include <libfdata_definitions.h>\n#include <libfdata_list.h>\n#include <libfdata_list_element.h>\n#include <libfdata_range_list.h>\n#include <libfdata_stream.h>\n#include <libfdata_types.h>\n#include <libfdata_vector.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBFDATA_DLL_IMPORT\n * before including libfdata.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES )\n#define LIBFDATA_DLL_IMPORT\n#endif\n\n#include <libfdata.h>\n\n#endif /* defined( HAVE_LOCAL_LIBFDATA ) */\n\n#endif /* !defined( _FSREFSTOOLS_LIBFDATA_H ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_libfdatetime.h",
    "content": "/*\n * The libfdatetime header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFSTOOLS_LIBFDATETIME_H )\n#define _FSREFSTOOLS_LIBFDATETIME_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBFDATETIME for local use of libfdatetime\n */\n#if defined( HAVE_LOCAL_LIBFDATETIME )\n\n#include <libfdatetime_date_time_values.h>\n#include <libfdatetime_definitions.h>\n#include <libfdatetime_fat_date_time.h>\n#include <libfdatetime_filetime.h>\n#include <libfdatetime_floatingtime.h>\n#include <libfdatetime_hfs_time.h>\n#include <libfdatetime_nsf_timedate.h>\n#include <libfdatetime_posix_time.h>\n#include <libfdatetime_systemtime.h>\n#include <libfdatetime_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBFDATETIME_DLL_IMPORT\n * before including libfdatetime.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES )\n#define LIBFDATETIME_DLL_IMPORT\n#endif\n\n#include <libfdatetime.h>\n\n#endif /* defined( HAVE_LOCAL_LIBFDATETIME ) */\n\n#endif /* !defined( _FSREFSTOOLS_LIBFDATETIME_H ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_libfguid.h",
    "content": "/*\n * The libfguid header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFSTOOLS_LIBFGUID_H )\n#define _FSREFSTOOLS_LIBFGUID_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBFGUID for local use of libfguid\n */\n#if defined( HAVE_LOCAL_LIBFGUID )\n\n#include <libfguid_definitions.h>\n#include <libfguid_identifier.h>\n#include <libfguid_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBFGUID_DLL_IMPORT\n * before including libfguid.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES )\n#define LIBFGUID_DLL_IMPORT\n#endif\n\n#include <libfguid.h>\n\n#endif /* defined( HAVE_LOCAL_LIBFGUID ) */\n\n#endif /* !defined( _FSREFSTOOLS_LIBFGUID_H ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_libfsrefs.h",
    "content": "/*\n * The libfsrefs header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFSTOOLS_LIBFSREFS_H )\n#define _FSREFSTOOLS_LIBFSREFS_H\n\n#include <common.h>\n\n#include <libfsrefs.h>\n\n#endif /* !defined( _FSREFSTOOLS_LIBFSREFS_H ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_libfwnt.h",
    "content": "/*\n * The libfwnt header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFSTOOLS_LIBFWNT_H )\n#define _FSREFSTOOLS_LIBFWNT_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBFWNT for local use of libfwnt\n */\n#if defined( HAVE_LOCAL_LIBFWNT )\n\n#include <libfwnt_access_control_entry.h>\n#include <libfwnt_access_control_list.h>\n#include <libfwnt_bit_stream.h>\n#include <libfwnt_definitions.h>\n#include <libfwnt_huffman_tree.h>\n#include <libfwnt_locale_identifier.h>\n#include <libfwnt_lznt1.h>\n#include <libfwnt_lzx.h>\n#include <libfwnt_lzxpress.h>\n#include <libfwnt_security_descriptor.h>\n#include <libfwnt_security_identifier.h>\n#include <libfwnt_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBFWNT_DLL_IMPORT\n * before including libfwnt.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES )\n#define LIBFWNT_DLL_IMPORT\n#endif\n\n#include <libfwnt.h>\n\n#endif /* defined( HAVE_LOCAL_LIBFWNT ) */\n\n#endif /* !defined( _FSREFSTOOLS_LIBFWNT_H ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_libuna.h",
    "content": "/*\n * The libuna header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFSTOOLS_LIBUNA_H )\n#define _FSREFSTOOLS_LIBUNA_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBUNA for local use of libuna\n */\n#if defined( HAVE_LOCAL_LIBUNA )\n\n#include <libuna_base16_stream.h>\n#include <libuna_base32_stream.h>\n#include <libuna_base64_stream.h>\n#include <libuna_byte_stream.h>\n#include <libuna_unicode_character.h>\n#include <libuna_url_stream.h>\n#include <libuna_utf16_stream.h>\n#include <libuna_utf16_string.h>\n#include <libuna_utf32_stream.h>\n#include <libuna_utf32_string.h>\n#include <libuna_utf7_stream.h>\n#include <libuna_utf8_stream.h>\n#include <libuna_utf8_string.h>\n#include <libuna_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBUNA_DLL_IMPORT\n * before including libuna.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES )\n#define LIBUNA_DLL_IMPORT\n#endif\n\n#include <libuna.h>\n\n#endif /* defined( HAVE_LOCAL_LIBUNA ) */\n\n#endif /* !defined( _FSREFSTOOLS_LIBUNA_H ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_output.c",
    "content": "/*\n * Common output functions for the fsrefstools\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"fsrefstools_i18n.h\"\n#include \"fsrefstools_libbfio.h\"\n#include \"fsrefstools_libcerror.h\"\n#include \"fsrefstools_libclocale.h\"\n#include \"fsrefstools_libcnotify.h\"\n#include \"fsrefstools_libfcache.h\"\n#include \"fsrefstools_libfdata.h\"\n#include \"fsrefstools_libfdatetime.h\"\n#include \"fsrefstools_libfguid.h\"\n#include \"fsrefstools_libfsrefs.h\"\n#include \"fsrefstools_libfwnt.h\"\n#include \"fsrefstools_libuna.h\"\n#include \"fsrefstools_output.h\"\n\n/* Initializes output settings\n * Returns 1 if successful or -1 on error\n */\nint fsrefstools_output_initialize(\n     int stdio_mode,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"fsrefstools_output_initialize\";\n\n\tif( ( stdio_mode != _IOFBF )\n\t && ( stdio_mode != _IOLBF )\n\t && ( stdio_mode != _IONBF ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported standard IO mode.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if !defined( __BORLANDC__ )\n\tif( setvbuf(\n\t     stdout,\n\t     NULL,\n\t     stdio_mode,\n\t     0 ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to set IO mode of stdout.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( setvbuf(\n\t     stderr,\n\t     NULL,\n\t     stdio_mode,\n\t     0 ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to set IO mode of stderr.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif /* !defined( __BORLANDC__ ) */\n\n\treturn( 1 );\n}\n\n/* Prints the copyright information\n */\nvoid fsrefstools_output_copyright_fprint(\n      FILE *stream )\n{\n\tif( stream == NULL )\n\t{\n\t\treturn;\n\t}\n\t/* TRANSLATORS: This is a proper name.\n\t */\n\tfprintf(\n\t stream,\n\t _( \"Copyright (C) 2012-2025, %s.\\n\" ),\n\t _( \"Joachim Metz\" ) );\n\n\tfprintf(\n\t stream,\n\t _( \"This is free software; see the source for copying conditions. There is NO\\n\"\n\t    \"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\\n\" ) );\n\n\t/* TRANSLATORS: The placeholder indicates the bug-reporting address\n\t * for this package.  Please add _another line_ saying\n\t * \"Report translation bugs to <...>\\n\" with the address for translation\n\t * bugs (typically your translation team's web or email address).\n\t */\n\tfprintf(\n\t stream,\n\t _( \"Report bugs to <%s>.\\n\" ),\n\t PACKAGE_BUGREPORT );\n}\n\n/* Prints the version information\n */\nvoid fsrefstools_output_version_fprint(\n      FILE *stream,\n      const char *program )\n{\n\tif( stream == NULL )\n\t{\n\t\treturn;\n\t}\n\tif( program == NULL )\n\t{\n\t\treturn;\n\t}\n        fprintf(\n\t stream,\n\t \"%s %s\\n\\n\",\n         program,\n\t LIBFSREFS_VERSION_STRING );\n}\n\n/* Prints the detailed version information\n */\nvoid fsrefstools_output_version_detailed_fprint(\n      FILE *stream,\n      const char *program )\n{\n\tif( stream == NULL )\n\t{\n\t\treturn;\n\t}\n\tif( program == NULL )\n\t{\n\t\treturn;\n\t}\n        fprintf(\n\t stream,\n\t \"%s %s (libfsrefs %s\",\n         program,\n\t LIBFSREFS_VERSION_STRING,\n\t LIBFSREFS_VERSION_STRING );\n\n\tfprintf(\n\t stream,\n\t \", libuna %s\",\n\t LIBUNA_VERSION_STRING );\n\n\tfprintf(\n\t stream,\n\t \", libbfio %s\",\n\t LIBBFIO_VERSION_STRING );\n\n\tfprintf(\n\t stream,\n\t \", libfdata %s\",\n\t LIBFDATA_VERSION_STRING );\n\n\tfprintf(\n\t stream,\n\t \", libfdatetime %s\",\n\t LIBFDATETIME_VERSION_STRING );\n\n\tfprintf(\n\t stream,\n\t \", libfguid %s\",\n\t LIBFGUID_VERSION_STRING );\n\n\tfprintf(\n\t stream,\n\t \", libfwnt %s\",\n\t LIBFWNT_VERSION_STRING );\n\n        fprintf(\n\t stream,\n\t \")\\n\\n\" );\n}\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_output.h",
    "content": "/*\n * Common output functions for the fsrefstools\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFSTOOLS_OUTPUT_H )\n#define _FSREFSTOOLS_OUTPUT_H\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#include \"fsrefstools_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\nint fsrefstools_output_initialize(\n     int stdio_mode,\n     libcerror_error_t **error );\n\nvoid fsrefstools_output_copyright_fprint(\n      FILE *stream );\n\nvoid fsrefstools_output_version_fprint(\n      FILE *stream,\n      const char *program );\n\nvoid fsrefstools_output_version_detailed_fprint(\n      FILE *stream,\n      const char *program );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _FSREFSTOOLS_OUTPUT_H ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_signal.c",
    "content": "/*\n * Signal handling functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <types.h>\n\n#if defined( HAVE_SIGNAL_H )\n#include <signal.h>\n#endif\n\n#if defined( _MSC_VER )\n#include <crtdbg.h>\n#endif\n\n#include \"fsrefstools_libcerror.h\"\n#include \"fsrefstools_signal.h\"\n\n#if defined( WINAPI )\n\nvoid (*fsrefstools_signal_signal_handler)( fsrefstools_signal_t ) = NULL;\n\n/* Signal handler for Ctrl+C or Ctrl+Break signals\n */\nBOOL WINAPI fsrefstools_signal_handler(\n             fsrefstools_signal_t signal )\n{\n\tstatic char *function = \"fsrefstools_signal_handler\";\n\n\tswitch( signal )\n\t{\n\t\t/* use Ctrl+C or Ctrl+Break to simulate SERVICE_CONTROL_STOP in debug mode\n\t\t */\n\t\tcase CTRL_BREAK_EVENT:\n\t\tcase CTRL_C_EVENT:\n\t\t\tif( fsrefstools_signal_signal_handler != NULL )\n\t\t\t{\n\t\t\t\tfsrefstools_signal_signal_handler(\n\t\t\t\t signal );\n\t\t\t}\n\t\t\treturn( TRUE );\n\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\treturn( FALSE );\n}\n\n#if defined( _MSC_VER )\n\n/* Initialize memory usage and leakage debugging\n */\nvoid fsrefstools_signal_initialize_memory_debug(\n      void )\n{\n\tint flag = 0;\n\n\t/* Get the current state of the flag and store it in a temporary variable\n\t */\n\tflag = _CrtSetDbgFlag(\n\t         _CRTDBG_REPORT_FLAG );\n\n\t/* Turn on client block identifiers and automatic leak detection\n\t */\n\tflag |= ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );\n\n\t/* Set the new state for the flag\n\t */\n\t_CrtSetDbgFlag(\n\t flag );\n}\n\n#endif /* defined( _MSC_VER ) */\n\n/* Attaches a signal handler for Ctrl+C or Ctrl+Break signals\n * Returns 1 if successful or -1 on error\n */\nint fsrefstools_signal_attach(\n     void (*signal_handler)( fsrefstools_signal_t ),\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"fsrefstools_signal_attach\";\n\n\tif( signal_handler == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid signal handler.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tfsrefstools_signal_signal_handler = signal_handler;\n\n\tif( SetConsoleCtrlHandler(\n\t     (PHANDLER_ROUTINE) fsrefstools_signal_handler,\n\t     TRUE ) == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to attach signal handler.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( SetConsoleCtrlHandler(\n\t     NULL,\n\t     FALSE ) == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to attach break signal.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( _MSC_VER )\n\tfsrefstools_signal_initialize_memory_debug();\n#endif\n\n\tSetErrorMode(\n\t SEM_FAILCRITICALERRORS );\n\n#if defined( LOCALE_SUPPORT )\n\t/* Allow subsequent threads to have their own locale.\n\t * If the application is single threaded this call has\n\t * no practical effect.\n\t */\n\t_configthreadlocale(\n\t  _ENABLE_PER_THREAD_LOCALE );\n\n\t/* Set the current thread locale to the user default\n\t * ANSI code page.\n\t */\n\tsetlocale(\n\t LC_ALL,\n\t \"\" );\n\n\t/* Set the the code page used by multibyte functions\n\t * to use the same code page as the previous call to setlocale.\n\t */\n\t_setmbcp(\n\t  _MB_CP_LOCALE );\n\n#endif /* defined( LOCALE_SUPPORT ) */\n\n\treturn( 1 );\n}\n\n/* Detaches a signal handler for Ctrl+C or Ctrl+Break signals\n * Returns 1 if successful or -1 on error\n */\nint fsrefstools_signal_detach(\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"fsrefstools_signal_detach\";\n\n\tif( SetConsoleCtrlHandler(\n\t     (PHANDLER_ROUTINE) fsrefstools_signal_handler,\n\t     FALSE ) == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to detach signal handler.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tfsrefstools_signal_signal_handler = NULL;\n\n\treturn( 1 );\n}\n\n#else\n\n/* Attaches a signal handler for SIGINT\n * Returns 1 if successful or -1 on error\n */\nint fsrefstools_signal_attach(\n     void (*signal_handler)( fsrefstools_signal_t ),\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"fsrefstools_signal_attach\";\n\n\tif( signal_handler == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid signal handler.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( signal(\n\t     SIGINT,\n\t     signal_handler ) == SIG_ERR )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to attach signal handler.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Detaches a signal handler for SIGINT\n * Returns 1 if successful or -1 on error\n */\nint fsrefstools_signal_detach(\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"fsrefstools_signal_detach\";\n\n\tif( signal(\n\t     SIGINT,\n\t     SIG_DFL ) == SIG_ERR )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to detach signal handler.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n#endif /* defined( WINAPI ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_signal.h",
    "content": "/*\n * Signal handling functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFSTOOLS_SIGNAL_H )\n#define _FSREFSTOOLS_SIGNAL_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"fsrefstools_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\n#if !defined( HAVE_SIGNAL_H ) && !defined( WINAPI )\n#error missing signal functions\n#endif\n\n#if defined( WINAPI )\ntypedef unsigned long fsrefstools_signal_t;\n\n#else\ntypedef int fsrefstools_signal_t;\n\n#endif /* defined( WINAPI ) */\n\n#if defined( WINAPI )\n\nBOOL WINAPI fsrefstools_signal_handler(\n             fsrefstools_signal_t signal );\n\n#if defined( _MSC_VER )\n\nvoid fsrefstools_signal_initialize_memory_debug(\n      void );\n\n#endif /* defined( _MSC_VER ) */\n\n#endif /* defined( WINAPI ) */\n\nint fsrefstools_signal_attach(\n     void (*signal_handler)( fsrefstools_signal_t ),\n     libcerror_error_t **error );\n\nint fsrefstools_signal_detach(\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _FSREFSTOOLS_SIGNAL_H ) */\n\n"
  },
  {
    "path": "fsrefstools/fsrefstools_unused.h",
    "content": "/*\n * Definitions to silence compiler warnings about unused function attributes/parameters.\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFSTOOLS_UNUSED_H )\n#define _FSREFSTOOLS_UNUSED_H\n\n#include <common.h>\n\n#if !defined( FSREFSTOOLS_ATTRIBUTE_UNUSED )\n\n#if defined( __GNUC__ ) && __GNUC__ >= 3\n#define FSREFSTOOLS_ATTRIBUTE_UNUSED\t__attribute__ ((__unused__))\n\n#else\n#define FSREFSTOOLS_ATTRIBUTE_UNUSED\n\n#endif /* defined( __GNUC__ ) && __GNUC__ >= 3 */\n\n#endif /* !defined( FSREFSTOOLS_ATTRIBUTE_UNUSED ) */\n\n#if defined( _MSC_VER )\n#define FSREFSTOOLS_UNREFERENCED_PARAMETER( parameter ) \\\n\tUNREFERENCED_PARAMETER( parameter );\n\n#else\n#define FSREFSTOOLS_UNREFERENCED_PARAMETER( parameter ) \\\n\t/* parameter */\n\n#endif /* defined( _MSC_VER ) */\n\n#endif /* !defined( _FSREFSTOOLS_UNUSED_H ) */\n\n"
  },
  {
    "path": "fsrefstools/info_handle.c",
    "content": "/*\n * Info handle\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <memory.h>\n#include <narrow_string.h>\n#include <system_string.h>\n#include <types.h>\n#include <wide_string.h>\n\n#include \"fsrefstools_libbfio.h\"\n#include \"fsrefstools_libcerror.h\"\n#include \"fsrefstools_libclocale.h\"\n#include \"fsrefstools_libfsrefs.h\"\n#include \"fsrefstools_libuna.h\"\n#include \"info_handle.h\"\n\n#if !defined( LIBFSREFS_HAVE_BFIO )\n\nextern \\\nint libfsrefs_volume_open_file_io_handle(\n     libfsrefs_volume_t *volume,\n     libbfio_handle_t *file_io_handle,\n     int access_flags,\n     libfsrefs_error_t **error );\n\n#endif /* !defined( LIBFSREFS_HAVE_BFIO ) */\n\n#define INFO_HANDLE_NOTIFY_STREAM\tstdout\n\n/* Copies a string of a decimal value to a 64-bit value\n * Returns 1 if successful or -1 on error\n */\nint fsrefstools_system_string_copy_from_64_bit_in_decimal(\n     const system_character_t *string,\n     size_t string_size,\n     uint64_t *value_64bit,\n     libcerror_error_t **error )\n{\n\tstatic char *function              = \"fsrefstools_system_string_copy_from_64_bit_in_decimal\";\n\tsize_t string_index                = 0;\n\tsystem_character_t character_value = 0;\n\tuint8_t maximum_string_index       = 20;\n\tint8_t sign                        = 1;\n\n\tif( string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid string.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( string_size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid string size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( value_64bit == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid value 64-bit.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*value_64bit = 0;\n\n\tif( string[ string_index ] == (system_character_t) '-' )\n\t{\n\t\tstring_index++;\n\t\tmaximum_string_index++;\n\n\t\tsign = -1;\n\t}\n\telse if( string[ string_index ] == (system_character_t) '+' )\n\t{\n\t\tstring_index++;\n\t\tmaximum_string_index++;\n\t}\n\twhile( string_index < string_size )\n\t{\n\t\tif( string[ string_index ] == 0 )\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\tif( string_index > (size_t) maximum_string_index )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_LARGE,\n\t\t\t \"%s: string too large.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\t*value_64bit *= 10;\n\n\t\tif( ( string[ string_index ] >= (system_character_t) '0' )\n\t\t && ( string[ string_index ] <= (system_character_t) '9' ) )\n\t\t{\n\t\t\tcharacter_value = (system_character_t) ( string[ string_index ] - (system_character_t) '0' );\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t\t \"%s: unsupported character value: %\" PRIc_SYSTEM \" at index: %d.\",\n\t\t\t function,\n\t\t\t string[ string_index ],\n\t\t\t string_index );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\t*value_64bit += character_value;\n\n\t\tstring_index++;\n\t}\n\tif( sign == -1 )\n\t{\n\t\t*value_64bit *= (uint64_t) -1;\n\t}\n\treturn( 1 );\n}\n\n/* Creates an info handle\n * Make sure the value info_handle is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint info_handle_initialize(\n     info_handle_t **info_handle,\n     uint8_t calculate_md5,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"info_handle_initialize\";\n\n\tif( info_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid info handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *info_handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid info handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*info_handle = memory_allocate_structure(\n\t                info_handle_t );\n\n\tif( *info_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create info handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *info_handle,\n\t     0,\n\t     sizeof( info_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear info handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libbfio_file_range_initialize(\n\t     &( ( *info_handle )->input_file_io_handle ),\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to initialize input file IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_volume_initialize(\n\t     &( ( *info_handle )->input_volume ),\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to initialize input volume.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *info_handle )->calculate_md5 = calculate_md5;\n\t( *info_handle )->notify_stream = INFO_HANDLE_NOTIFY_STREAM;\n\n\treturn( 1 );\n\non_error:\n\tif( *info_handle != NULL )\n\t{\n\t\tif( ( *info_handle )->input_file_io_handle != NULL )\n\t\t{\n\t\t\tlibbfio_handle_free(\n\t\t\t &( ( *info_handle )->input_file_io_handle ),\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t *info_handle );\n\n\t\t*info_handle = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees an info handle\n * Returns 1 if successful or -1 on error\n */\nint info_handle_free(\n     info_handle_t **info_handle,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"info_handle_free\";\n\tint result            = 1;\n\n\tif( info_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid info handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *info_handle != NULL )\n\t{\n\t\tif( libfsrefs_volume_free(\n\t\t     &( ( *info_handle )->input_volume ),\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free input volume.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t\tif( libbfio_handle_free(\n\t\t     &( ( *info_handle )->input_file_io_handle ),\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free input file IO handle.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t\tmemory_free(\n\t\t *info_handle );\n\n\t\t*info_handle = NULL;\n\t}\n\treturn( result );\n}\n\n/* Signals the info handle to abort\n * Returns 1 if successful or -1 on error\n */\nint info_handle_signal_abort(\n     info_handle_t *info_handle,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"info_handle_signal_abort\";\n\n\tif( info_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid info handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinfo_handle->abort = 1;\n\n\tif( info_handle->input_volume != NULL )\n\t{\n\t\tif( libfsrefs_volume_signal_abort(\n\t\t     info_handle->input_volume,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t\t \"%s: unable to signal input volume to abort.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t}\n\treturn( 1 );\n}\n\n/* Sets the bodyfile\n * Returns 1 if successful or -1 on error\n */\nint info_handle_set_bodyfile(\n     info_handle_t *info_handle,\n     const system_character_t *filename,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"info_handle_set_bodyfile\";\n\n\tif( info_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid info handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( info_handle->bodyfile_stream != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid info handle - bodyfile stream value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( filename == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid filename.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tinfo_handle->bodyfile_stream = file_stream_open_wide(\n\t                                filename,\n\t                                L\"wb\" );\n#else\n\tinfo_handle->bodyfile_stream = file_stream_open(\n\t                                filename,\n\t                                \"wb\" );\n#endif\n\tif( info_handle->bodyfile_stream == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_OPEN_FAILED,\n\t\t \"%s: unable to open bodyfile stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Sets the volume offset\n * Returns 1 if successful or -1 on error\n */\nint info_handle_set_volume_offset(\n     info_handle_t *info_handle,\n     const system_character_t *string,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"info_handle_set_volume_offset\";\n\tsize_t string_length  = 0;\n\tuint64_t value_64bit  = 0;\n\n\tif( info_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid info handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tstring_length = system_string_length(\n\t                 string );\n\n\tif( fsrefstools_system_string_copy_from_64_bit_in_decimal(\n\t     string,\n\t     string_length + 1,\n\t     &value_64bit,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_COPY_FAILED,\n\t\t \"%s: unable to copy string to 64-bit decimal.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinfo_handle->volume_offset = (off64_t) value_64bit;\n\n\treturn( 1 );\n}\n\n/* Opens the input\n * Returns 1 if successful or -1 on error\n */\nint info_handle_open_input(\n     info_handle_t *info_handle,\n     const system_character_t *filename,\n     libcerror_error_t **error )\n{\n\tstatic char *function  = \"info_handle_open_input\";\n\tsize_t filename_length = 0;\n\n\tif( info_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid info handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tfilename_length = system_string_length(\n\t                   filename );\n\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tif( libbfio_file_range_set_name_wide(\n\t     info_handle->input_file_io_handle,\n\t     filename,\n\t     filename_length,\n\t     error ) != 1 )\n#else\n\tif( libbfio_file_range_set_name(\n\t     info_handle->input_file_io_handle,\n\t     filename,\n\t     filename_length,\n\t     error ) != 1 )\n#endif\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_OPEN_FAILED,\n\t\t \"%s: unable to open set file name.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libbfio_file_range_set(\n\t     info_handle->input_file_io_handle,\n\t     info_handle->volume_offset,\n\t     0,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_OPEN_FAILED,\n\t\t \"%s: unable to open set volume offset.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_volume_open_file_io_handle(\n\t     info_handle->input_volume,\n\t     info_handle->input_file_io_handle,\n\t     LIBFSREFS_OPEN_READ,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_OPEN_FAILED,\n\t\t \"%s: unable to open input volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Closes the input\n * Returns the 0 if succesful or -1 on error\n */\nint info_handle_close_input(\n     info_handle_t *info_handle,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"info_handle_close_input\";\n\n\tif( info_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid info handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_volume_close(\n\t     info_handle->input_volume,\n\t     error ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_CLOSE_FAILED,\n\t\t \"%s: unable to close input volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 0 );\n}\n\n/* Prints a file entry or data stream name\n * Returns 1 if successful or -1 on error\n */\nint info_handle_name_value_fprint(\n     info_handle_t *info_handle,\n     const system_character_t *value_string,\n     size_t value_string_length,\n     libcerror_error_t **error )\n{\n\tsystem_character_t *escaped_value_string     = NULL;\n\tstatic char *function                        = \"info_handle_name_value_fprint\";\n\tlibuna_unicode_character_t unicode_character = 0;\n\tsize_t escaped_value_string_index            = 0;\n\tsize_t escaped_value_string_size             = 0;\n\tsize_t value_string_index                    = 0;\n\tint print_count                              = 0;\n\tint result                                   = 0;\n\n\tif( info_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid info handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( value_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid value string.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t/* To ensure normalization in the escaped string is handled correctly\n\t * it stored in a temporary variable. Note that there is a worst-case of\n\t * a 1 to 4 ratio for each escaped character.\n\t */\n\tif( value_string_length > (size_t) ( ( SSIZE_MAX - 1 ) / ( sizeof( system_character_t ) * 4 ) ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid value string length value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tescaped_value_string_size = ( value_string_length * 4 ) + 1;\n\n\tescaped_value_string = (system_character_t *) memory_allocate(\n\t                                               sizeof( system_character_t ) * escaped_value_string_size );\n\n\tif( escaped_value_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create escaped value string.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t/* Using UCS-2 or RFC 2279 UTF-8 to support unpaired UTF-16 surrogates\n\t */\n\twhile( value_string_index < value_string_length )\n\t{\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\t\tresult = libuna_unicode_character_copy_from_ucs2(\n\t\t          &unicode_character,\n\t\t          (libuna_utf16_character_t *) value_string,\n\t\t          value_string_length,\n\t\t          &value_string_index,\n\t\t          error );\n#else\n\t\tresult = libuna_unicode_character_copy_from_utf8_rfc2279(\n\t\t          &unicode_character,\n\t\t          (libuna_utf8_character_t *) value_string,\n\t\t          value_string_length,\n\t\t          &value_string_index,\n\t\t          error );\n#endif\n\t\tif( result != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t\t LIBCERROR_CONVERSION_ERROR_INPUT_FAILED,\n\t\t\t \"%s: unable to copy Unicode character from value string.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\t/* Replace:\n\t\t *   Control characters ([U+0-U+1f, U+7f-U+9f]) by \\x##\n\t\t */\n\t\tif( ( unicode_character <= 0x1f )\n\t\t || ( ( unicode_character >= 0x7f )\n\t\t  &&  ( unicode_character <= 0x9f ) ) )\n\t\t{\n\t\t\tprint_count = system_string_sprintf(\n\t\t\t               &( escaped_value_string[ escaped_value_string_index ] ),\n\t\t\t               escaped_value_string_size - escaped_value_string_index,\n\t\t\t               \"\\\\x%02\" PRIx32 \"\",\n\t\t\t               unicode_character );\n\n\t\t\tif( print_count < 0 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t\t\t LIBCERROR_CONVERSION_ERROR_INPUT_FAILED,\n\t\t\t\t \"%s: unable to copy escaped Unicode character to escaped value string.\",\n\t\t\t\t function );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tescaped_value_string_index += print_count;\n\t\t}\n\t\t/* Replace:\n\t\t *   Unicode surrogate characters ([U+d800-U+dfff]) by \\u####\n\t\t *   Undefined Unicode characters ([U+fdd0-U+fddf, U+fffe-U+ffff]) by \\u####\n\t\t */\n\t\telse if( ( ( unicode_character >= 0x0000d800UL )\n\t\t       &&  ( unicode_character <= 0x0000dfffUL ) )\n\t\t      || ( ( unicode_character >= 0x0000fdd0UL )\n\t\t       &&  ( unicode_character <= 0x0000fddfUL ) )\n\t\t      || ( ( unicode_character >= 0x0000fffeUL )\n\t\t       &&  ( unicode_character <= 0x0000ffffUL ) ) )\n\t\t{\n\t\t\tprint_count = system_string_sprintf(\n\t\t\t               &( escaped_value_string[ escaped_value_string_index ] ),\n\t\t\t               escaped_value_string_size - escaped_value_string_index,\n\t\t\t               \"\\\\u%04\" PRIx32 \"\",\n\t\t\t               unicode_character );\n\n\t\t\tif( print_count < 0 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t\t\t LIBCERROR_CONVERSION_ERROR_INPUT_FAILED,\n\t\t\t\t \"%s: unable to copy escaped Unicode character to escaped value string.\",\n\t\t\t\t function );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tescaped_value_string_index += print_count;\n\t\t}\n\t\t/* Replace:\n\t\t *   Undefined Unicode characters ([\n\t\t *       U+1fffe-U+1ffff, U+2fffe-U+2ffff, U+3fffe-U+3ffff, U+4fffe-U+4ffff,\n\t\t *       U+5fffe-U+5ffff, U+6fffe-U+6ffff, U+7fffe-U+7ffff, U+8fffe-U+8ffff,\n\t\t *       U+9fffe-U+9ffff, U+afffe-U+affff, U+bfffe-U+bffff, U+cfffe-U+cffff,\n\t\t *       U+dfffe-U+dffff, U+efffe-U+effff, U+ffffe-U+fffff, U+10fffe-U+ffffffff]) by \\U########\n\t\t */\n\t\telse if( ( ( ( unicode_character & 0x0000ffffUL ) >= 0x0000fffeUL )\n\t\t       &&  ( ( unicode_character & 0x0000ffffUL ) <= 0x0000ffffUL ) )\n\t\t      || ( unicode_character > 0x0010fffeUL ) )\n\t\t{\n\t\t\tprint_count = system_string_sprintf(\n\t\t\t               &( escaped_value_string[ escaped_value_string_index ] ),\n\t\t\t               escaped_value_string_size - escaped_value_string_index,\n\t\t\t               \"\\\\U%08\" PRIx32 \"\",\n\t\t\t               unicode_character );\n\n\t\t\tif( print_count < 0 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t\t\t LIBCERROR_CONVERSION_ERROR_INPUT_FAILED,\n\t\t\t\t \"%s: unable to copy escaped Unicode character to escaped value string.\",\n\t\t\t\t function );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tescaped_value_string_index += print_count;\n\t\t}\n\t\telse\n\t\t{\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\t\t\tresult = libuna_unicode_character_copy_to_utf16(\n\t\t\t          unicode_character,\n\t\t\t          (libuna_utf16_character_t *) escaped_value_string,\n\t\t\t          escaped_value_string_size,\n\t\t\t          &escaped_value_string_index,\n\t\t\t          error );\n#else\n\t\t\tresult = libuna_unicode_character_copy_to_utf8(\n\t\t\t          unicode_character,\n\t\t\t          (libuna_utf8_character_t *) escaped_value_string,\n\t\t\t          escaped_value_string_size,\n\t\t\t          &escaped_value_string_index,\n\t\t\t          error );\n#endif\n\t\t\tif( result != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t\t\t LIBCERROR_CONVERSION_ERROR_INPUT_FAILED,\n\t\t\t\t \"%s: unable to copy Unicode character to escaped value string.\",\n\t\t\t\t function );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t}\n\t}\n\tescaped_value_string[ escaped_value_string_index ] = 0;\n\n\tfprintf(\n\t info_handle->notify_stream,\n\t \"%\" PRIs_SYSTEM \"\",\n\t escaped_value_string );\n\n\tmemory_free(\n\t escaped_value_string );\n\n\treturn( 1 );\n\non_error:\n\tif( escaped_value_string != NULL )\n\t{\n\t\tmemory_free(\n\t\t escaped_value_string );\n\t}\n\treturn( -1 );\n}\n\n/* Prints file entry as part of the file system hierarchy or to a bodyfile\n * Returns 1 if successful or -1 on error\n */\nint info_handle_file_entry_fprint(\n     info_handle_t *info_handle,\n     libfsrefs_file_entry_t *file_entry,\n     const system_character_t *path,\n     const system_character_t *file_entry_name,\n     libcerror_error_t **error )\n{\n\tstatic char *function         = \"info_handle_file_entry_fprint\";\n\tsize_t file_entry_name_length = 0;\n\tsize_t path_length            = 0;\n\n\tif( info_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid info handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( path == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid path.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tpath_length = system_string_length(\n\t               path );\n\n\tif( file_entry_name != NULL )\n\t{\n\t\tfile_entry_name_length = system_string_length(\n\t\t                          file_entry_name );\n\t}\n\tif( info_handle_name_value_fprint(\n\t     info_handle,\n\t     path,\n\t     path_length,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t \"%s: unable to print path string.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( file_entry_name != NULL )\n\t{\n\t\tif( info_handle_name_value_fprint(\n\t\t     info_handle,\n\t\t     file_entry_name,\n\t\t     file_entry_name_length,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t\t \"%s: unable to print file entry name string.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tfprintf(\n\t info_handle->notify_stream,\n\t \"\\n\" );\n\n\treturn( 1 );\n\non_error:\n\treturn( -1 );\n}\n\n/* Prints file entry information as part of the file system hierarchy\n * Returns 1 if successful or -1 on error\n */\nint info_handle_file_system_hierarchy_fprint_file_entry(\n     info_handle_t *info_handle,\n     libfsrefs_file_entry_t *file_entry,\n     const system_character_t *path,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_file_entry_t *sub_file_entry = NULL;\n\tsystem_character_t *file_entry_name    = NULL;\n\tsystem_character_t *sub_path           = NULL;\n\tstatic char *function                  = \"info_handle_file_system_hierarchy_fprint_file_entry\";\n\tsize_t file_entry_name_size            = 0;\n\tsize_t path_length                     = 0;\n\tsize_t sub_path_size                   = 0;\n\tint number_of_sub_file_entries         = 0;\n\tint result                             = 0;\n\tint sub_file_entry_index               = 0;\n\n\tif( info_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid info handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( path == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid path.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tpath_length = system_string_length(\n\t               path );\n\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tresult = libfsrefs_file_entry_get_utf16_name_size(\n\t          file_entry,\n\t          &file_entry_name_size,\n\t          error );\n#else\n\tresult = libfsrefs_file_entry_get_utf8_name_size(\n\t          file_entry,\n\t          &file_entry_name_size,\n\t          error );\n#endif\n\tif( result == -1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve file entry name string size.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( ( result == 1 )\n\t && ( file_entry_name_size > 0 ) )\n\t{\n\t\tfile_entry_name = system_string_allocate(\n\t\t                   file_entry_name_size );\n\n\t\tif( file_entry_name == NULL )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t\t \"%s: unable to create file entry name string.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\t\tresult = libfsrefs_file_entry_get_utf16_name(\n\t\t          file_entry,\n\t\t          (uint16_t *) file_entry_name,\n\t\t          file_entry_name_size,\n\t\t          error );\n#else\n\t\tresult = libfsrefs_file_entry_get_utf8_name(\n\t\t          file_entry,\n\t\t          (uint8_t *) file_entry_name,\n\t\t          file_entry_name_size,\n\t\t          error );\n#endif\n\t\tif( result != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve file entry name string.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( ( info_handle->bodyfile_stream != NULL )\n\t || ( file_entry_name != NULL ) )\n\t{\n\t\tif( info_handle_file_entry_fprint(\n\t\t     info_handle,\n\t\t     file_entry,\n\t\t     path,\n\t\t     file_entry_name,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t\t \"%s: unable to print file entry.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( libfsrefs_file_entry_get_number_of_sub_file_entries(\n\t     file_entry,\n\t     &number_of_sub_file_entries,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of sub file entries.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( number_of_sub_file_entries > 0 )\n\t{\n\t\tsub_path_size = path_length + 1;\n\n\t\tif( file_entry_name != NULL )\n\t\t{\n\t\t\tsub_path_size += file_entry_name_size;\n\t\t}\n\t\tsub_path = system_string_allocate(\n\t\t            sub_path_size );\n\n\t\tif( sub_path == NULL )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t\t \"%s: unable to create sub path.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( system_string_copy(\n\t\t     sub_path,\n\t\t     path,\n\t\t     path_length ) == NULL )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t\t LIBCERROR_MEMORY_ERROR_COPY_FAILED,\n\t\t\t \"%s: unable to copy path to sub path.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( file_entry_name != NULL )\n\t\t{\n\t\t\tif( system_string_copy(\n\t\t\t     &( sub_path[ path_length ] ),\n\t\t\t     file_entry_name,\n\t\t\t     file_entry_name_size - 1 ) == NULL )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t\t\t LIBCERROR_MEMORY_ERROR_COPY_FAILED,\n\t\t\t\t \"%s: unable to copy file entry name to sub path.\",\n\t\t\t\t function );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tsub_path[ sub_path_size - 2 ] = (system_character_t) LIBFSREFS_SEPARATOR;\n\t\t}\n\t\tsub_path[ sub_path_size - 1 ] = (system_character_t) 0;\n\n\t\tfor( sub_file_entry_index = 0;\n\t\t     sub_file_entry_index < number_of_sub_file_entries;\n\t\t     sub_file_entry_index++ )\n\t\t{\n\t\t\tif( libfsrefs_file_entry_get_sub_file_entry_by_index(\n\t\t\t     file_entry,\n\t\t\t     sub_file_entry_index,\n\t\t\t     &sub_file_entry,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t\t \"%s: unable to retrieve sub file entry: %d.\",\n\t\t\t\t function,\n\t\t\t\t sub_file_entry_index );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tif( info_handle_file_system_hierarchy_fprint_file_entry(\n\t\t\t     info_handle,\n\t\t\t     sub_file_entry,\n\t\t\t     sub_path,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t\t\t \"%s: unable to print file entry: %d information.\",\n\t\t\t\t function,\n\t\t\t\t sub_file_entry_index );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tif( libfsrefs_file_entry_free(\n\t\t\t     &sub_file_entry,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t\t \"%s: unable to free sub file entry: %d.\",\n\t\t\t\t function,\n\t\t\t\t sub_file_entry_index );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t}\n\t\tif( sub_path != NULL )\n\t\t{\n\t\t\tmemory_free(\n\t\t\t sub_path );\n\n\t\t\tsub_path = NULL;\n\t\t}\n\t}\n\tif( file_entry_name != NULL )\n\t{\n\t\tmemory_free(\n\t\t file_entry_name );\n\n\t\tfile_entry_name = NULL;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( sub_file_entry != NULL )\n\t{\n\t\tlibfsrefs_file_entry_free(\n\t\t &sub_file_entry,\n\t\t NULL );\n\t}\n\tif( sub_path != NULL )\n\t{\n\t\tmemory_free(\n\t\t sub_path );\n\t}\n\tif( file_entry_name != NULL )\n\t{\n\t\tmemory_free(\n\t\t file_entry_name );\n\t}\n\treturn( -1 );\n}\n\n/* Prints the file system hierarchy information\n * Returns 1 if successful or -1 on error\n */\nint info_handle_file_system_hierarchy_fprint(\n     info_handle_t *info_handle,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_file_entry_t *file_entry = NULL;\n\tstatic char *function              = \"info_handle_file_system_hierarchy_fprint\";\n\n\tif( info_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid info handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( info_handle->bodyfile_stream == NULL )\n\t{\n\t\tfprintf(\n\t\t info_handle->notify_stream,\n\t\t \"Resiliant File System (ReFS) information:\\n\\n\" );\n\n\t\tfprintf(\n\t\t info_handle->notify_stream,\n\t\t \"File system hierarchy:\\n\" );\n\t}\n\tif( libfsrefs_volume_get_root_directory(\n\t     info_handle->input_volume,\n\t     &file_entry,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve root directory file entry.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( info_handle_file_system_hierarchy_fprint_file_entry(\n\t     info_handle,\n\t     file_entry,\n\t     _SYSTEM_STRING( \"\\\\\" ),\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t \"%s: unable to print root directory file entry information.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_file_entry_free(\n\t     &file_entry,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t \"%s: unable to free file entry.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( info_handle->bodyfile_stream == NULL )\n\t{\n\t\tfprintf(\n\t\t info_handle->notify_stream,\n\t\t \"\\n\" );\n\t}\n\treturn( 1 );\n\non_error:\n\tif( file_entry != NULL )\n\t{\n\t\tlibfsrefs_file_entry_free(\n\t\t &file_entry,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}\n\n/* Prints the volume information\n * Returns 1 if successful or -1 on error\n */\nint info_handle_volume_fprint(\n     info_handle_t *info_handle,\n     libcerror_error_t **error )\n{\n\tsystem_character_t *volume_name = NULL;\n\tstatic char *function           = \"info_handle_volume_fprint\";\n\tsize32_t cluster_block_size     = 0;\n\tsize_t volume_name_size         = 0;\n\tuint64_t serial_number          = 0;\n\tuint16_t bytes_per_sector       = 0;\n\tuint8_t major_version           = 0;\n\tuint8_t minor_version           = 0;\n\tint result                      = 0;\n\n\tif( info_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid info handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tfprintf(\n\t info_handle->notify_stream,\n\t \"Resiliant File System (ReFS) information:\\n\\n\" );\n\n\tfprintf(\n\t info_handle->notify_stream,\n\t \"\\nVolume information:\\n\" );\n\n\tfprintf(\n\t info_handle->notify_stream,\n\t \"\\tName\\t\\t\\t\\t:\" );\n\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tresult = libfsrefs_volume_get_utf16_name_size(\n\t          info_handle->input_volume,\n\t          &volume_name_size,\n\t          error );\n#else\n\tresult = libfsrefs_volume_get_utf8_name_size(\n\t          info_handle->input_volume,\n\t          &volume_name_size,\n\t          error );\n#endif\n\tif( result == -1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve volume name string size.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\telse if( ( result != 0 )\n\t      && ( volume_name_size > 0 ) )\n\t{\n\t\tvolume_name = system_string_allocate(\n\t\t               volume_name_size );\n\n\t\tif( volume_name == NULL )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t\t \"%s: unable to create volume name string.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\t\tresult = libfsrefs_volume_get_utf16_name(\n\t\t          info_handle->input_volume,\n\t\t          (uint16_t *) volume_name,\n\t\t          volume_name_size,\n\t\t          error );\n#else\n\t\tresult = libfsrefs_volume_get_utf8_name(\n\t\t          info_handle->input_volume,\n\t\t          (uint8_t *) volume_name,\n\t\t          volume_name_size,\n\t\t          error );\n#endif\n\t\tif( result != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve volume name string.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tfprintf(\n\t\t info_handle->notify_stream,\n\t\t \" %\" PRIs_SYSTEM \"\",\n\t\t volume_name );\n\n\t\tmemory_free(\n\t\t volume_name );\n\n\t\tvolume_name = NULL;\n\t}\n\tfprintf(\n\t info_handle->notify_stream,\n\t \"\\n\" );\n\n\tfprintf(\n\t info_handle->notify_stream,\n\t \"\\tVersion\\t\\t\\t\\t:\" );\n\n\tif( libfsrefs_volume_get_version(\n\t     info_handle->input_volume,\n\t     &major_version,\n\t     &minor_version,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve version.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\telse if( result != 0 )\n\t{\n\t\tfprintf(\n\t\t info_handle->notify_stream,\n\t\t \" %\" PRIu8 \".%\" PRIu8 \"\",\n\t\t major_version,\n\t\t minor_version );\n\t}\n\tfprintf(\n\t info_handle->notify_stream,\n\t \"\\n\" );\n\n\tif( libfsrefs_volume_get_serial_number(\n\t     info_handle->input_volume,\n\t     &serial_number,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve serial number.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tfprintf(\n\t info_handle->notify_stream,\n\t \"\\tSerial number\\t\\t\\t: %08\" PRIx64 \"\\n\",\n\t serial_number );\n\n\tif( libfsrefs_volume_get_bytes_per_sector(\n\t     info_handle->input_volume,\n\t     &bytes_per_sector,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve bytes per sector.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tfprintf(\n\t info_handle->notify_stream,\n\t \"\\tBytes per sector\\t\\t: %\" PRIu16 \"\\n\",\n\t bytes_per_sector );\n\n\tif( libfsrefs_volume_get_cluster_block_size(\n\t     info_handle->input_volume,\n\t     &cluster_block_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve cluster block size.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tfprintf(\n\t info_handle->notify_stream,\n\t \"\\tCluster block size\\t\\t: %\" PRIu32 \"\\n\",\n\t cluster_block_size );\n\n/* TODO */\n\n\tfprintf(\n\t info_handle->notify_stream,\n\t \"\\n\" );\n\n\treturn( 1 );\n\non_error:\n\tif( volume_name != NULL )\n\t{\n\t\tmemory_free(\n\t\t volume_name );\n\t}\n\treturn( -1 );\n}\n\n"
  },
  {
    "path": "fsrefstools/info_handle.h",
    "content": "/*\n * Info handle\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _INFO_HANDLE_H )\n#define _INFO_HANDLE_H\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#include \"fsrefstools_libbfio.h\"\n#include \"fsrefstools_libcerror.h\"\n#include \"fsrefstools_libfsrefs.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct info_handle info_handle_t;\n\nstruct info_handle\n{\n\t/* The volume offset\n\t */\n\toff64_t volume_offset;\n\n\t/* The libbfio input file IO handle\n\t */\n\tlibbfio_handle_t *input_file_io_handle;\n\n\t/* The libfsrefs input volume\n\t */\n\tlibfsrefs_volume_t *input_volume;\n\n\t/* Value to indicate if the MD5 hash should be calculated\n\t */\n\tuint8_t calculate_md5;\n\n\t/* The bodyfile output stream\n\t */\n\tFILE *bodyfile_stream;\n\n\t/* The notification output stream\n\t */\n\tFILE *notify_stream;\n\n\t/* Value to indicate if abort was signalled\n\t */\n\tint abort;\n};\n\nint fsrefstools_system_string_copy_from_64_bit_in_decimal(\n     const system_character_t *string,\n     size_t string_size,\n     uint64_t *value_64bit,\n     libcerror_error_t **error );\n\nint info_handle_initialize(\n     info_handle_t **info_handle,\n     uint8_t calculate_md5,\n     libcerror_error_t **error );\n\nint info_handle_free(\n     info_handle_t **info_handle,\n     libcerror_error_t **error );\n\nint info_handle_signal_abort(\n     info_handle_t *info_handle,\n     libcerror_error_t **error );\n\nint info_handle_set_bodyfile(\n     info_handle_t *info_handle,\n     const system_character_t *filename,\n     libcerror_error_t **error );\n\nint info_handle_set_volume_offset(\n     info_handle_t *info_handle,\n     const system_character_t *string,\n     libcerror_error_t **error );\n\nint info_handle_open_input(\n     info_handle_t *info_handle,\n     const system_character_t *filename,\n     libcerror_error_t **error );\n\nint info_handle_close_input(\n     info_handle_t *info_handle,\n     libcerror_error_t **error );\n\nint info_handle_name_value_fprint(\n     info_handle_t *info_handle,\n     const system_character_t *value_string,\n     size_t value_string_length,\n     libcerror_error_t **error );\n\nint info_handle_file_entry_fprint(\n     info_handle_t *info_handle,\n     libfsrefs_file_entry_t *file_entry,\n     const system_character_t *path,\n     const system_character_t *file_entry_name,\n     libcerror_error_t **error );\n\nint info_handle_file_system_hierarchy_fprint_file_entry(\n     info_handle_t *info_handle,\n     libfsrefs_file_entry_t *file_entry,\n     const system_character_t *path,\n     libcerror_error_t **error );\n\nint info_handle_file_system_hierarchy_fprint(\n     info_handle_t *info_handle,\n     libcerror_error_t **error );\n\nint info_handle_volume_fprint(\n     info_handle_t *info_handle,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _INFO_HANDLE_H ) */\n\n"
  },
  {
    "path": "include/Makefile.am",
    "content": "include_HEADERS = \\\n\tlibfsrefs.h\n\npkginclude_HEADERS = \\\n\tlibfsrefs/codepage.h \\\n\tlibfsrefs/definitions.h \\\n\tlibfsrefs/error.h \\\n\tlibfsrefs/extern.h \\\n\tlibfsrefs/features.h \\\n\tlibfsrefs/types.h\n\nEXTRA_DIST = \\\n\tlibfsrefs.h.in \\\n\tlibfsrefs/definitions.h.in \\\n\tlibfsrefs/features.h.in \\\n\tlibfsrefs/types.h.in\n\nDISTCLEANFILES = \\\n\tlibfsrefs.h \\\n\tlibfsrefs/definitions.h \\\n\tlibfsrefs/features.h \\\n\tlibfsrefs/types.h \\\n\tMakefile \\\n\tMakefile.in\n\n"
  },
  {
    "path": "include/libfsrefs/codepage.h",
    "content": "/*\n * Codepage definitions for libfsrefs\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_CODEPAGE_H )\n#define _LIBFSREFS_CODEPAGE_H\n\n#include <libfsrefs/types.h>\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\n/* The codepage definitions\n */\nenum LIBFSREFS_CODEPAGES\n{\n\tLIBFSREFS_CODEPAGE_ASCII\t\t\t= 20127,\n\n\tLIBFSREFS_CODEPAGE_ISO_8859_1\t\t\t= 28591,\n\tLIBFSREFS_CODEPAGE_ISO_8859_2\t\t\t= 28592,\n\tLIBFSREFS_CODEPAGE_ISO_8859_3\t\t\t= 28593,\n\tLIBFSREFS_CODEPAGE_ISO_8859_4\t\t\t= 28594,\n\tLIBFSREFS_CODEPAGE_ISO_8859_5\t\t\t= 28595,\n\tLIBFSREFS_CODEPAGE_ISO_8859_6\t\t\t= 28596,\n\tLIBFSREFS_CODEPAGE_ISO_8859_7\t\t\t= 28597,\n\tLIBFSREFS_CODEPAGE_ISO_8859_8\t\t\t= 28598,\n\tLIBFSREFS_CODEPAGE_ISO_8859_9\t\t\t= 28599,\n\tLIBFSREFS_CODEPAGE_ISO_8859_10\t\t\t= 28600,\n\tLIBFSREFS_CODEPAGE_ISO_8859_11\t\t\t= 28601,\n\tLIBFSREFS_CODEPAGE_ISO_8859_13\t\t\t= 28603,\n\tLIBFSREFS_CODEPAGE_ISO_8859_14\t\t\t= 28604,\n\tLIBFSREFS_CODEPAGE_ISO_8859_15\t\t\t= 28605,\n\tLIBFSREFS_CODEPAGE_ISO_8859_16\t\t\t= 28606,\n\n\tLIBFSREFS_CODEPAGE_KOI8_R\t\t\t= 20866,\n\tLIBFSREFS_CODEPAGE_KOI8_U\t\t\t= 21866,\n\n\tLIBFSREFS_CODEPAGE_WINDOWS_874\t\t\t= 874,\n\tLIBFSREFS_CODEPAGE_WINDOWS_932\t\t\t= 932,\n\tLIBFSREFS_CODEPAGE_WINDOWS_936\t\t\t= 936,\n\tLIBFSREFS_CODEPAGE_WINDOWS_949\t\t\t= 949,\n\tLIBFSREFS_CODEPAGE_WINDOWS_950\t\t\t= 950,\n\tLIBFSREFS_CODEPAGE_WINDOWS_1250\t\t\t= 1250,\n\tLIBFSREFS_CODEPAGE_WINDOWS_1251\t\t\t= 1251,\n\tLIBFSREFS_CODEPAGE_WINDOWS_1252\t\t\t= 1252,\n\tLIBFSREFS_CODEPAGE_WINDOWS_1253\t\t\t= 1253,\n\tLIBFSREFS_CODEPAGE_WINDOWS_1254\t\t\t= 1254,\n\tLIBFSREFS_CODEPAGE_WINDOWS_1255\t\t\t= 1255,\n\tLIBFSREFS_CODEPAGE_WINDOWS_1256\t\t\t= 1256,\n\tLIBFSREFS_CODEPAGE_WINDOWS_1257\t\t\t= 1257,\n\tLIBFSREFS_CODEPAGE_WINDOWS_1258\t\t\t= 1258\n};\n\n#define LIBFSREFS_CODEPAGE_US_ASCII\t\t\tLIBFSREFS_CODEPAGE_ASCII\n\n#define LIBFSREFS_CODEPAGE_ISO_WESTERN_EUROPEAN\t\tLIBFSREFS_CODEPAGE_ISO_8859_1\n#define LIBFSREFS_CODEPAGE_ISO_CENTRAL_EUROPEAN\t\tLIBFSREFS_CODEPAGE_ISO_8859_2\n#define LIBFSREFS_CODEPAGE_ISO_SOUTH_EUROPEAN\t\tLIBFSREFS_CODEPAGE_ISO_8859_3\n#define LIBFSREFS_CODEPAGE_ISO_NORTH_EUROPEAN\t\tLIBFSREFS_CODEPAGE_ISO_8859_4\n#define LIBFSREFS_CODEPAGE_ISO_CYRILLIC\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_5\n#define LIBFSREFS_CODEPAGE_ISO_ARABIC\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_6\n#define LIBFSREFS_CODEPAGE_ISO_GREEK\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_7\n#define LIBFSREFS_CODEPAGE_ISO_HEBREW\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_8\n#define LIBFSREFS_CODEPAGE_ISO_TURKISH\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_9\n#define LIBFSREFS_CODEPAGE_ISO_NORDIC\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_10\n#define LIBFSREFS_CODEPAGE_ISO_THAI\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_11\n#define LIBFSREFS_CODEPAGE_ISO_BALTIC\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_13\n#define LIBFSREFS_CODEPAGE_ISO_CELTIC\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_14\n\n#define LIBFSREFS_CODEPAGE_ISO_LATIN_1\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_1\n#define LIBFSREFS_CODEPAGE_ISO_LATIN_2\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_2\n#define LIBFSREFS_CODEPAGE_ISO_LATIN_3\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_3\n#define LIBFSREFS_CODEPAGE_ISO_LATIN_4\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_4\n#define LIBFSREFS_CODEPAGE_ISO_LATIN_5\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_9\n#define LIBFSREFS_CODEPAGE_ISO_LATIN_6\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_10\n#define LIBFSREFS_CODEPAGE_ISO_LATIN_7\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_13\n#define LIBFSREFS_CODEPAGE_ISO_LATIN_8\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_14\n#define LIBFSREFS_CODEPAGE_ISO_LATIN_9\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_15\n#define LIBFSREFS_CODEPAGE_ISO_LATIN_10\t\t\tLIBFSREFS_CODEPAGE_ISO_8859_16\n\n#define LIBFSREFS_CODEPAGE_KOI8_RUSSIAN\t\t\tLIBFSREFS_CODEPAGE_KOI8_R\n#define LIBFSREFS_CODEPAGE_KOI8_UKRAINIAN\t\tLIBFSREFS_CODEPAGE_KOI8_U\n\n#define LIBFSREFS_CODEPAGE_WINDOWS_THAI\t\t\tLIBFSREFS_CODEPAGE_WINDOWS_874\n#define LIBFSREFS_CODEPAGE_WINDOWS_JAPANESE\t\tLIBFSREFS_CODEPAGE_WINDOWS_932\n#define LIBFSREFS_CODEPAGE_WINDOWS_CHINESE_SIMPLIFIED\tLIBFSREFS_CODEPAGE_WINDOWS_936\n#define LIBFSREFS_CODEPAGE_WINDOWS_KOREAN\t\tLIBFSREFS_CODEPAGE_WINDOWS_949\n#define LIBFSREFS_CODEPAGE_WINDOWS_CHINESE_TRADITIONAL\tLIBFSREFS_CODEPAGE_WINDOWS_950\n#define LIBFSREFS_CODEPAGE_WINDOWS_CENTRAL_EUROPEAN\tLIBFSREFS_CODEPAGE_WINDOWS_1250\n#define LIBFSREFS_CODEPAGE_WINDOWS_CYRILLIC\t\tLIBFSREFS_CODEPAGE_WINDOWS_1251\n#define LIBFSREFS_CODEPAGE_WINDOWS_WESTERN_EUROPEAN\tLIBFSREFS_CODEPAGE_WINDOWS_1252\n#define LIBFSREFS_CODEPAGE_WINDOWS_GREEK\t\tLIBFSREFS_CODEPAGE_WINDOWS_1253\n#define LIBFSREFS_CODEPAGE_WINDOWS_TURKISH\t\tLIBFSREFS_CODEPAGE_WINDOWS_1254\n#define LIBFSREFS_CODEPAGE_WINDOWS_HEBREW\t\tLIBFSREFS_CODEPAGE_WINDOWS_1255\n#define LIBFSREFS_CODEPAGE_WINDOWS_ARABIC\t\tLIBFSREFS_CODEPAGE_WINDOWS_1256\n#define LIBFSREFS_CODEPAGE_WINDOWS_BALTIC\t\tLIBFSREFS_CODEPAGE_WINDOWS_1257\n#define LIBFSREFS_CODEPAGE_WINDOWS_VIETNAMESE\t\tLIBFSREFS_CODEPAGE_WINDOWS_1258\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_CODEPAGE_H ) */\n\n"
  },
  {
    "path": "include/libfsrefs/definitions.h.in",
    "content": "/*\n * Definitions for libfsrefs\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_DEFINITIONS_H )\n#define _LIBFSREFS_DEFINITIONS_H\n\n#include <libfsrefs/types.h>\n\n#define LIBFSREFS_VERSION\t\t\t\t\t@VERSION@\n\n/* The version string\n */\n#define LIBFSREFS_VERSION_STRING\t\t\t\t\"@VERSION@\"\n\n/* The file access\n * bit 1        set to 1 for read access\n * bit 2        set to 1 for write access\n * bit 3-8      not used\n */\nenum LIBFSREFS_ACCESS_FLAGS\n{\n\tLIBFSREFS_ACCESS_FLAG_READ\t\t\t\t= 0x01,\n/* Reserved: not supported yet */\n\tLIBFSREFS_ACCESS_FLAG_WRITE\t\t\t\t= 0x02\n};\n\n/* The file access macros\n */\n#define LIBFSREFS_OPEN_READ\t\t\t\t\t( LIBFSREFS_ACCESS_FLAG_READ )\n/* Reserved: not supported yet */\n#define LIBFSREFS_OPEN_WRITE\t\t\t\t\t( LIBFSREFS_ACCESS_FLAG_WRITE )\n/* Reserved: not supported yet */\n#define LIBFSREFS_OPEN_READ_WRITE\t\t\t\t( LIBFSREFS_ACCESS_FLAG_READ | LIBFSREFS_ACCESS_FLAG_WRITE )\n\n/* The path segment separator\n */\n#define LIBFSREFS_SEPARATOR\t\t\t\t\t'\\\\'\n\n/* The file attribute flags\n */\nenum LIBFSREFS_FILE_ATTRIBUTE_FLAGS\n{\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_READ_ONLY\t\t\t= 0x00000001UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_HIDDEN\t\t\t= 0x00000002UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_SYSTEM\t\t\t= 0x00000004UL,\n\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_DIRECTORY\t\t\t= 0x00000010UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_ARCHIVE\t\t\t= 0x00000020UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_DEVICE\t\t\t= 0x00000040UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_NORMAL\t\t\t= 0x00000080UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_TEMPORARY\t\t\t= 0x00000100UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_SPARSE_FILE\t\t= 0x00000200UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_REPARSE_POINT\t\t= 0x00000400UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_COMPRESSED\t\t= 0x00000800UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_OFFLINE\t\t\t= 0x00001000UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_NOT_CONTENT_INDEXED\t= 0x00002000UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_ENCRYPTED\t\t\t= 0x00004000UL,\n\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_VIRTUAL\t\t\t= 0x00010000UL\n};\n\n#endif /* !defined( _LIBFSREFS_DEFINITIONS_H ) */\n\n"
  },
  {
    "path": "include/libfsrefs/error.h",
    "content": "/*\n * The error code definitions for libfsrefs\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_ERROR_H )\n#define _LIBFSREFS_ERROR_H\n\n#include <libfsrefs/types.h>\n\n/* External error type definition hides internal structure\n */\ntypedef intptr_t libfsrefs_error_t;\n\n/* The error domains\n */\nenum LIBFSREFS_ERROR_DOMAINS\n{\n\tLIBFSREFS_ERROR_DOMAIN_ARGUMENTS\t\t= (int) 'a',\n\tLIBFSREFS_ERROR_DOMAIN_CONVERSION\t\t= (int) 'c',\n\tLIBFSREFS_ERROR_DOMAIN_COMPRESSION\t\t= (int) 'C',\n\tLIBFSREFS_ERROR_DOMAIN_IO\t\t\t= (int) 'I',\n\tLIBFSREFS_ERROR_DOMAIN_INPUT\t\t\t= (int) 'i',\n\tLIBFSREFS_ERROR_DOMAIN_MEMORY\t\t\t= (int) 'm',\n\tLIBFSREFS_ERROR_DOMAIN_OUTPUT\t\t\t= (int) 'o',\n\tLIBFSREFS_ERROR_DOMAIN_RUNTIME\t\t\t= (int) 'r'\n};\n\n/* The argument error codes\n * to signify errors regarding arguments passed to a function\n */\nenum LIBFSREFS_ARGUMENT_ERROR\n{\n\tLIBFSREFS_ARGUMENT_ERROR_GENERIC\t\t= 0,\n\n\t/* The argument contains an invalid value\n\t */\n\tLIBFSREFS_ARGUMENT_ERROR_INVALID_VALUE\t\t= 1,\n\n\t/* The argument contains a value less than zero\n\t */\n\tLIBFSREFS_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO\t= 2,\n\n\t/* The argument contains a value zero or less\n\t */\n\tLIBFSREFS_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS\t= 3,\n\n\t/* The argument contains a value that exceeds the maximum\n\t * for the specific type\n\t */\n\tLIBFSREFS_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM\t= 4,\n\n\t/* The argument contains a value that is too small\n\t */\n\tLIBFSREFS_ARGUMENT_ERROR_VALUE_TOO_SMALL\t= 5,\n\n\t/* The argument contains a value that is too large\n\t */\n\tLIBFSREFS_ARGUMENT_ERROR_VALUE_TOO_LARGE\t= 6,\n\n\t/* The argument contains a value that is out of bounds\n\t */\n\tLIBFSREFS_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS\t= 7,\n\n\t/* The argument contains a value that is not supported\n\t */\n\tLIBFSREFS_ARGUMENT_ERROR_UNSUPPORTED_VALUE\t= 8,\n\n\t/* The argument contains a value that conficts with another argument\n\t */\n\tLIBFSREFS_ARGUMENT_ERROR_CONFLICTING_VALUE\t= 9\n};\n\n/* The conversion error codes\n * to signify errors regarding conversions\n */\nenum LIBFSREFS_CONVERSION_ERROR\n{\n\tLIBFSREFS_CONVERSION_ERROR_GENERIC\t\t= 0,\n\n\t/* The conversion failed on the input\n\t */\n\tLIBFSREFS_CONVERSION_ERROR_INPUT_FAILED\t\t= 1,\n\n\t/* The conversion failed on the output\n\t */\n\tLIBFSREFS_CONVERSION_ERROR_OUTPUT_FAILED\t= 2\n};\n\n/* The compression error codes\n * to signify errors regarding compression\n */\nenum LIBFSREFS_COMPRESSION_ERROR\n{\n\tLIBFSREFS_COMPRESSION_ERROR_GENERIC\t\t= 0,\n\n\t/* The compression failed\n\t */\n\tLIBFSREFS_COMPRESSION_ERROR_COMPRESS_FAILED\t= 1,\n\n\t/* The decompression failed\n\t */\n\tLIBFSREFS_COMPRESSION_ERROR_DECOMPRESS_FAILED\t= 2\n};\n\n/* The input/output error codes\n * to signify errors regarding input/output\n */\nenum LIBFSREFS_IO_ERROR\n{\n\tLIBFSREFS_IO_ERROR_GENERIC\t\t\t= 0,\n\n\t/* The open failed\n\t */\n\tLIBFSREFS_IO_ERROR_OPEN_FAILED\t\t\t= 1,\n\n\t/* The close failed\n\t */\n\tLIBFSREFS_IO_ERROR_CLOSE_FAILED\t\t\t= 2,\n\n\t/* The seek failed\n\t */\n\tLIBFSREFS_IO_ERROR_SEEK_FAILED\t\t\t= 3,\n\n\t/* The read failed\n\t */\n\tLIBFSREFS_IO_ERROR_READ_FAILED\t\t\t= 4,\n\n\t/* The write failed\n\t */\n\tLIBFSREFS_IO_ERROR_WRITE_FAILED\t\t\t= 5,\n\n\t/* Access denied\n\t */\n\tLIBFSREFS_IO_ERROR_ACCESS_DENIED\t\t= 6,\n\n\t/* The resource is invalid i.e. a missing file\n\t */\n\tLIBFSREFS_IO_ERROR_INVALID_RESOURCE\t\t= 7,\n\n\t/* The ioctl failed\n\t */\n\tLIBFSREFS_IO_ERROR_IOCTL_FAILED\t\t\t= 8,\n\n\t/* The unlink failed\n\t */\n\tLIBFSREFS_IO_ERROR_UNLINK_FAILED\t\t= 9\n};\n\n/* The input error codes\n * to signify errors regarding handing input data\n */\nenum LIBFSREFS_INPUT_ERROR\n{\n\tLIBFSREFS_INPUT_ERROR_GENERIC\t\t\t= 0,\n\n\t/* The input contains invalid data\n\t */\n\tLIBFSREFS_INPUT_ERROR_INVALID_DATA\t\t= 1,\n\n\t/* The input contains an unsupported signature\n\t */\n\tLIBFSREFS_INPUT_ERROR_SIGNATURE_MISMATCH\t= 2,\n\n\t/* A checksum in the input did not match\n\t */\n\tLIBFSREFS_INPUT_ERROR_CHECKSUM_MISMATCH\t\t= 3,\n\n\t/* A value in the input did not match a previously\n\t * read value or calculated value\n\t */\n\tLIBFSREFS_INPUT_ERROR_VALUE_MISMATCH\t\t= 4\n};\n\n/* The memory error codes\n * to signify errors regarding memory\n */\nenum LIBFSREFS_MEMORY_ERROR\n{\n\tLIBFSREFS_MEMORY_ERROR_GENERIC\t\t\t= 0,\n\n\t/* There is insufficient memory available\n\t */\n\tLIBFSREFS_MEMORY_ERROR_INSUFFICIENT\t\t= 1,\n\n\t/* The memory failed to be copied\n\t */\n\tLIBFSREFS_MEMORY_ERROR_COPY_FAILED\t\t= 2,\n\n\t/* The memory failed to be set\n\t */\n\tLIBFSREFS_MEMORY_ERROR_SET_FAILED\t\t= 3\n};\n\n/* The output error codes\n */\nenum LIBFSREFS_OUTPUT_ERROR\n{\n\tLIBFSREFS_OUTPUT_ERROR_GENERIC\t\t\t= 0,\n\n\t/* There is insuficient space to write the output\n\t */\n\tLIBFSREFS_OUTPUT_ERROR_INSUFFICIENT_SPACE\t= 1\n};\n\n/* The runtime error codes\n * to signify errors regarding runtime processing\n */\nenum LIBFSREFS_RUNTIME_ERROR\n{\n\tLIBFSREFS_RUNTIME_ERROR_GENERIC\t\t\t= 0,\n\n\t/* The value is missing\n\t */\n\tLIBFSREFS_RUNTIME_ERROR_VALUE_MISSING\t\t= 1,\n\n\t/* The value was already set\n\t */\n\tLIBFSREFS_RUNTIME_ERROR_VALUE_ALREADY_SET\t= 2,\n\n\t/* The creation and/or initialization of an internal structure failed\n\t */\n\tLIBFSREFS_RUNTIME_ERROR_INITIALIZE_FAILED\t= 3,\n\n\t/* The resize of an internal structure failed\n\t */\n\tLIBFSREFS_RUNTIME_ERROR_RESIZE_FAILED\t\t= 4,\n\n\t/* The free and/or finalization of an internal structure failed\n\t */\n\tLIBFSREFS_RUNTIME_ERROR_FINALIZE_FAILED\t\t= 5,\n\n\t/* The value could not be determined\n\t */\n\tLIBFSREFS_RUNTIME_ERROR_GET_FAILED\t\t= 6,\n\n\t/* The value could not be set\n\t */\n\tLIBFSREFS_RUNTIME_ERROR_SET_FAILED\t\t= 7,\n\n\t/* The value could not be appended/prepended\n\t */\n\tLIBFSREFS_RUNTIME_ERROR_APPEND_FAILED\t\t= 8,\n\n\t/* The value could not be copied\n\t */\n\tLIBFSREFS_RUNTIME_ERROR_COPY_FAILED\t\t= 9,\n\n\t/* The value could not be removed\n\t */\n\tLIBFSREFS_RUNTIME_ERROR_REMOVE_FAILED\t\t= 10,\n\n\t/* The value could not be printed\n\t */\n\tLIBFSREFS_RUNTIME_ERROR_PRINT_FAILED\t\t= 11,\n\n\t/* The value was out of bounds\n\t */\n\tLIBFSREFS_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS\t= 12,\n\n\t/* The value exceeds the maximum for its specific type\n\t */\n\tLIBFSREFS_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM\t= 13,\n\n\t/* The value is unsupported\n\t */\n\tLIBFSREFS_RUNTIME_ERROR_UNSUPPORTED_VALUE\t= 14,\n\n\t/* An abort was requested\n\t */\n\tLIBFSREFS_RUNTIME_ERROR_ABORT_REQUESTED\t\t= 15\n};\n\n#endif /* !defined( _LIBFSREFS_ERROR_H ) */\n\n"
  },
  {
    "path": "include/libfsrefs/extern.h",
    "content": "/*\n * The extern definition\n *\n * This header should be included in header files that export or import\n * library functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_EXTERN_H )\n#define _LIBFSREFS_EXTERN_H\n\n/* To export functions from the libfsrefs DLL define LIBFSREFS_DLL_EXPORT\n * To import functions from the libfsrefs DLL define LIBFSREFS_DLL_IMPORT\n * Otherwise use default extern statement\n */\n#if defined( LIBFSREFS_DLL_EXPORT )\n#define LIBFSREFS_EXTERN __declspec(dllexport)\n\n#elif defined( LIBFSREFS_DLL_IMPORT )\n#define LIBFSREFS_EXTERN extern __declspec(dllimport)\n\n#else\n#define LIBFSREFS_EXTERN extern\n\n#endif\n\n#endif /* !defined( _LIBFSREFS_EXTERN_H ) */\n\n"
  },
  {
    "path": "include/libfsrefs/features.h.in",
    "content": "/*\n * Features of libfsrefs\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_FEATURES_H )\n#define _LIBFSREFS_FEATURES_H\n\n/* The libfsrefs type support features\n */\n#if defined( WINAPI ) || @HAVE_WIDE_CHARACTER_TYPE@\n#define LIBFSREFS_HAVE_WIDE_CHARACTER_TYPE\t1\n#endif\n\n#if defined( WINAPI ) || @HAVE_MULTI_THREAD_SUPPORT@\n#define LIBFSREFS_HAVE_MULTI_THREAD_SUPPORT\t1\n#endif\n\n#if defined( HAVE_LIBBFIO ) || ( !defined( WINAPI ) && @HAVE_LIBBFIO@ )\n#define LIBFSREFS_HAVE_BFIO\t\t\t1\n#endif\n\n#if !defined( LIBFSREFS_DEPRECATED )\n#if defined( __GNUC__ ) && __GNUC__ >= 3\n#define LIBFSREFS_DEPRECATED\t__attribute__ ((__deprecated__))\n#elif defined( _MSC_VER )\n#define LIBFSREFS_DEPRECATED\t__declspec(deprecated)\n#else\n#define LIBFSREFS_DEPRECATED\n#endif\n#endif\n\n#endif /* !defined( _LIBFSREFS_FEATURES_H ) */\n\n"
  },
  {
    "path": "include/libfsrefs/types.h.in",
    "content": "/*\n * Type definitions for libfsrefs\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_TYPES_H )\n#define _LIBFSREFS_TYPES_H\n\n#include <libfsrefs/features.h>\n\n/* Integer type definitions\n */\n#if ( defined( _MSC_VER ) && ( _MSC_VER < 1600 ) ) || ( defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0560 ) )\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Microsoft Visual Studio C++ before Visual Studio 2010 or earlier versions of the Borland C++ Builder\n * do not support the (u)int#_t type definitions but have __int# definitions instead\n */\n#if !defined( HAVE_INT8_T )\n#define HAVE_INT8_T\ntypedef __int8 int8_t;\n#endif\n\n#if !defined( HAVE_UINT8_T )\n#define HAVE_UINT8_T\ntypedef unsigned __int8 uint8_t;\n#endif\n\n#if !defined( HAVE_INT16_T )\n#define HAVE_INT16_T\ntypedef __int16 int16_t;\n#endif\n\n#if !defined( HAVE_UINT16_T )\n#define HAVE_UINT16_T\ntypedef unsigned __int16 uint16_t;\n#endif\n\n#if !defined( HAVE_INT32_T )\n#define HAVE_INT32_T\ntypedef __int32 int32_t;\n#endif\n\n#if !defined( HAVE_UINT32_T )\n#define HAVE_UINT32_T\ntypedef unsigned __int32 uint32_t;\n#endif\n\n#if !defined( HAVE_INT64_T )\n#define HAVE_INT64_T\ntypedef __int64 int64_t;\n#endif\n\n#if !defined( HAVE_UINT64_T )\n#define HAVE_UINT64_T\ntypedef unsigned __int64 uint64_t;\n#endif\n\n#ifdef __cplusplus\n}\n#endif\n\n#elif defined( _MSC_VER ) || defined( __BORLANDC__ )\n\n/* Later versions of Microsoft Visual Studio C++ and Borland C/C++ define the types in <stdint.h>\n */\n#include <stdint.h>\n\n#else\n\n#if @HAVE_SYS_TYPES_H@ || defined( HAVE_SYS_TYPES_H )\n#include <sys/types.h>\n\n#else\n#error Missing system type definitions (sys/types.h)\n#endif\n\n/* Type definitions for compilers that have access to\n * <inttypes.h> or <stdint.h>\n */\n#if @HAVE_INTTYPES_H@ || defined( HAVE_INTTYPES_H )\n#include <inttypes.h>\n\n#elif @HAVE_STDINT_H@ || defined( HAVE_STDINT_H )\n#include <stdint.h>\n\n#else\n#error Missing integer type definitions (inttypes.h, stdint.h)\n#endif\n\n#endif\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#if defined( _MSC_VER ) || ( defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0560 ) )\n\n/* Microsoft Visual Studio C++ or earlier versions of the Borland C++ Builder\n * do not support the ssize_t type definition\n */\n#if !defined( HAVE_SSIZE_T )\n#define HAVE_SSIZE_T\n\n#if defined( _WIN64 )\ntypedef __int64 ssize_t;\n#else\ntypedef __int32 ssize_t;\n#endif\n\n#endif /* !defined( HAVE_SSIZE_T ) */\n\n#endif /* defined( _MSC_VER ) || ( defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0560 ) ) */\n\n#if defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0560 )\n\n/* Earlier versions of Borland C++ Builder do not support the intptr_t type definition\n */\n#if !defined( HAVE_INTPTR_T )\n#define HAVE_INTPTR_T\n\n#if defined( _WIN64 )\ntypedef __int64\tintptr_t;\n#else\ntypedef __int32\tintptr_t;\n#endif\n\n#endif /* !defined( HAVE_INTPTR_T ) */\n\n#endif /* defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0560 ) */\n\n#if ( !defined( HAVE_SIZE32_T ) && ! @HAVE_SIZE32_T@ ) || HAVE_SIZE32_T == 0\n#define HAVE_SIZE32_T\t1\ntypedef uint32_t size32_t;\n#endif\n\n#if ( !defined( HAVE_SSIZE32_T ) && ! @HAVE_SSIZE32_T@ ) || HAVE_SSIZE32_T == 0\n#define HAVE_SSIZE32_T\t1\ntypedef int32_t ssize32_t;\n#endif\n\n#if ( !defined( HAVE_SIZE64_T ) && ! @HAVE_SIZE64_T@ ) || HAVE_SIZE64_T == 0\n#define HAVE_SIZE64_T\t1\ntypedef uint64_t size64_t;\n#endif\n\n#if ( !defined( HAVE_SSIZE64_T ) && ! @HAVE_SSIZE64_T@ ) || HAVE_SSIZE64_T == 0\n#define HAVE_SSIZE64_T\t1\ntypedef int64_t ssize64_t;\n#endif\n\n#if ( !defined( HAVE_OFF64_T ) && ! @HAVE_OFF64_T@ ) || HAVE_OFF64_T == 0\n#define HAVE_OFF64_T\t1\ntypedef int64_t off64_t;\n#endif\n\n/* Wide character definition\n */\n#if defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0520 )\n#include <string.h>\n\n#elif defined( WINAPI )\n#include <wchar.h>\n\n#elif @HAVE_WCHAR_H@ || defined( HAVE_WCHAR_H )\n\n/* __USE_UNIX98 is required to add swprintf definition\n */\n#if !defined( __USE_UNIX98 )\n#define __USE_UNIX98\n#define LIBFSREFS_DEFINITION_UNIX98\n#endif\n\n#include <wchar.h>\n\n#if defined( LIBFSREFS_DEFINITION_UNIX98 )\n#undef __USE_UNIX98\n#undef LIBFSREFS_DEFINITION_UNIX98\n#endif\n\n#endif\n\n/* The following type definitions hide internal data structures\n */\ntypedef intptr_t libfsrefs_file_entry_t;\ntypedef intptr_t libfsrefs_volume_t;\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_TYPES_H ) */\n\n"
  },
  {
    "path": "include/libfsrefs.h.in",
    "content": "/*\n * Library to access the Resiliant File System (ReFS) format\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_H )\n#define _LIBFSREFS_H\n\n#include <libfsrefs/codepage.h>\n#include <libfsrefs/definitions.h>\n#include <libfsrefs/error.h>\n#include <libfsrefs/extern.h>\n#include <libfsrefs/features.h>\n#include <libfsrefs/types.h>\n\n#include <stdio.h>\n\n#if defined( LIBFSREFS_HAVE_BFIO )\n#include <libbfio.h>\n#endif\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\n/* -------------------------------------------------------------------------\n * Support functions\n * ------------------------------------------------------------------------- */\n\n/* Returns the library version\n */\nLIBFSREFS_EXTERN \\\nconst char *libfsrefs_get_version(\n             void );\n\n/* Returns the access flags for reading\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_get_access_flags_read(\n     void );\n\n/* Retrieves the narrow system string codepage\n * A value of 0 represents no codepage, UTF-8 encoding is used instead\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_get_codepage(\n     int *codepage,\n     libfsrefs_error_t **error );\n\n/* Sets the narrow system string codepage\n * A value of 0 represents no codepage, UTF-8 encoding is used instead\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_set_codepage(\n     int codepage,\n     libfsrefs_error_t **error );\n\n/* Determines if a file contains a REFS volume signature\n * Returns 1 if true, 0 if not or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_check_volume_signature(\n     const char *filename,\n     libfsrefs_error_t **error );\n\n#if defined( LIBFSREFS_HAVE_WIDE_CHARACTER_TYPE )\n\n/* Determines if a file contains a REFS volume signature\n * Returns 1 if true, 0 if not or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_check_volume_signature_wide(\n     const wchar_t *filename,\n     libfsrefs_error_t **error );\n\n#endif /* defined( LIBFSREFS_HAVE_WIDE_CHARACTER_TYPE ) */\n\n#if defined( LIBFSREFS_HAVE_BFIO )\n\n/* Determines if a file contains a REFS volume signature using a Basic File IO (bfio) handle\n * Returns 1 if true, 0 if not or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_check_volume_signature_file_io_handle(\n     libbfio_handle_t *file_io_handle,\n     libfsrefs_error_t **error );\n\n#endif /* defined( LIBFSREFS_HAVE_BFIO ) */\n\n/* -------------------------------------------------------------------------\n * Notify functions\n * ------------------------------------------------------------------------- */\n\n/* Sets the verbose notification\n */\nLIBFSREFS_EXTERN \\\nvoid libfsrefs_notify_set_verbose(\n      int verbose );\n\n/* Sets the notification stream\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_notify_set_stream(\n     FILE *stream,\n     libfsrefs_error_t **error );\n\n/* Opens the notification stream using a filename\n * The stream is opened in append mode\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_notify_stream_open(\n     const char *filename,\n     libfsrefs_error_t **error );\n\n/* Closes the notification stream if opened using a filename\n * Returns 0 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_notify_stream_close(\n     libfsrefs_error_t **error );\n\n/* -------------------------------------------------------------------------\n * Error functions\n * ------------------------------------------------------------------------- */\n\n/* Frees an error\n */\nLIBFSREFS_EXTERN \\\nvoid libfsrefs_error_free(\n      libfsrefs_error_t **error );\n\n/* Prints a descriptive string of the error to the stream\n * Returns the number of printed characters if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_error_fprint(\n     libfsrefs_error_t *error,\n     FILE *stream );\n\n/* Prints a descriptive string of the error to the string\n * The end-of-string character is not included in the return value\n * Returns the number of printed characters if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_error_sprint(\n     libfsrefs_error_t *error,\n     char *string,\n     size_t size );\n\n/* Prints a backtrace of the error to the stream\n * Returns the number of printed characters if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_error_backtrace_fprint(\n     libfsrefs_error_t *error,\n     FILE *stream );\n\n/* Prints a backtrace of the error to the string\n * The end-of-string character is not included in the return value\n * Returns the number of printed characters if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_error_backtrace_sprint(\n     libfsrefs_error_t *error,\n     char *string,\n     size_t size );\n\n/* -------------------------------------------------------------------------\n * Volume functions\n * ------------------------------------------------------------------------- */\n\n/* Creates a volume\n * Make sure the value volume is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_initialize(\n     libfsrefs_volume_t **volume,\n     libfsrefs_error_t **error );\n\n/* Frees a volume\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_free(\n     libfsrefs_volume_t **volume,\n     libfsrefs_error_t **error );\n\n/* Signals the volume to abort its current activity\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_signal_abort(\n     libfsrefs_volume_t *volume,\n     libfsrefs_error_t **error );\n\n/* Opens a volume\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_open(\n     libfsrefs_volume_t *volume,\n     const char *filename,\n     int access_flags,\n     libfsrefs_error_t **error );\n\n#if defined( LIBFSREFS_HAVE_WIDE_CHARACTER_TYPE )\n\n/* Opens a volume\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_open_wide(\n     libfsrefs_volume_t *volume,\n     const wchar_t *filename,\n     int access_flags,\n     libfsrefs_error_t **error );\n\n#endif /* defined( LIBFSREFS_HAVE_WIDE_CHARACTER_TYPE ) */\n\n#if defined( LIBFSREFS_HAVE_BFIO )\n\n/* Opens a volume using a Basic File IO (bfio) handle\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_open_file_io_handle(\n     libfsrefs_volume_t *volume,\n     libbfio_handle_t *file_io_handle,\n     int access_flags,\n     libfsrefs_error_t **error );\n\n#endif /* defined( LIBFSREFS_HAVE_BFIO ) */\n\n/* Closes a volume\n * Returns 0 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_close(\n     libfsrefs_volume_t *volume,\n     libfsrefs_error_t **error );\n\n/* Retrieves the bytes per sector\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_bytes_per_sector(\n     libfsrefs_volume_t *volume,\n     uint16_t *bytes_per_sector,\n     libfsrefs_error_t **error );\n\n/* Retrieves the cluster block size\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_cluster_block_size(\n     libfsrefs_volume_t *volume,\n     size32_t *cluster_block_size,\n     libfsrefs_error_t **error );\n\n/* Retrieves the size of the UTF-8 encoded name\n * The returned size includes the end of string character\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_utf8_name_size(\n     libfsrefs_volume_t *volume,\n     size_t *utf8_string_size,\n     libfsrefs_error_t **error );\n\n/* Retrieves the UTF-8 encoded name value\n * The size should include the end of string character\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_utf8_name(\n     libfsrefs_volume_t *volume,\n     uint8_t *utf8_string,\n     size_t utf8_string_size,\n     libfsrefs_error_t **error );\n\n/* Retrieves the size of the UTF-16 encoded name\n * The returned size includes the end of string character\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_utf16_name_size(\n     libfsrefs_volume_t *volume,\n     size_t *utf16_string_size,\n     libfsrefs_error_t **error );\n\n/* Retrieves the UTF-16 encoded name value\n * The size should include the end of string character\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_utf16_name(\n     libfsrefs_volume_t *volume,\n     uint16_t *utf16_string,\n     size_t utf16_string_size,\n     libfsrefs_error_t **error );\n\n/* Retrieves the format version\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_version(\n     libfsrefs_volume_t *volume,\n     uint8_t *major_version,\n     uint8_t *minor_version,\n     libfsrefs_error_t **error );\n\n/* Retrieves the serial number\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_serial_number(\n     libfsrefs_volume_t *volume,\n     uint64_t *serial_number,\n     libfsrefs_error_t **error );\n\n/* Retrieves the root directory file entry\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_root_directory(\n     libfsrefs_volume_t *volume,\n     libfsrefs_file_entry_t **file_entry,\n     libfsrefs_error_t **error );\n\n/* -------------------------------------------------------------------------\n * File entry functions\n * ------------------------------------------------------------------------- */\n\n/* Frees a file entry\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_free(\n     libfsrefs_file_entry_t **file_entry,\n     libfsrefs_error_t **error );\n\n/* Retrieves the creation date and time\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_creation_time(\n     libfsrefs_file_entry_t *file_entry,\n     uint64_t *filetime,\n     libfsrefs_error_t **error );\n\n/* Retrieves the modification date and time\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_modification_time(\n     libfsrefs_file_entry_t *file_entry,\n     uint64_t *filetime,\n     libfsrefs_error_t **error );\n\n/* Retrieves the access date and time\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_access_time(\n     libfsrefs_file_entry_t *file_entry,\n     uint64_t *filetime,\n     libfsrefs_error_t **error );\n\n/* Retrieves the entry modification date and time\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_entry_modification_time(\n     libfsrefs_file_entry_t *file_entry,\n     uint64_t *filetime,\n     libfsrefs_error_t **error );\n\n/* Retrieves the file attribute flags\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_file_attribute_flags(\n     libfsrefs_file_entry_t *file_entry,\n     uint32_t *file_attribute_flags,\n     libfsrefs_error_t **error );\n\n/* Retrieves the size of the UTF-8 encoded name\n * This function uses UTF-8 RFC 2279 (or 6-byte UTF-8) to support characters outside Unicode\n * The returned size includes the end of string character\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_utf8_name_size(\n     libfsrefs_file_entry_t *file_entry,\n     size_t *utf8_string_size,\n     libfsrefs_error_t **error );\n\n/* Retrieves the UTF-8 encoded name\n * This function uses UTF-8 RFC 2279 (or 6-byte UTF-8) to support characters outside Unicode\n * The size should include the end of string character\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_utf8_name(\n     libfsrefs_file_entry_t *file_entry,\n     uint8_t *utf8_string,\n     size_t utf8_string_size,\n     libfsrefs_error_t **error );\n\n/* Retrieves the size of the UTF-16 encoded name\n * This function uses UCS-2 (with surrogates) to support characters outside Unicode\n * The returned size includes the end of string character\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_utf16_name_size(\n     libfsrefs_file_entry_t *file_entry,\n     size_t *utf16_string_size,\n     libfsrefs_error_t **error );\n\n/* Retrieves the UTF-16 encoded name\n * This function uses UCS-2 (with surrogates) to support characters outside Unicode\n * The size should include the end of string character\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_utf16_name(\n     libfsrefs_file_entry_t *file_entry,\n     uint16_t *utf16_string,\n     size_t utf16_string_size,\n     libfsrefs_error_t **error );\n\n/* Retrieves the number of sub file entries\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_number_of_sub_file_entries(\n     libfsrefs_file_entry_t *file_entry,\n     int *number_of_sub_file_entries,\n     libfsrefs_error_t **error );\n\n/* Retrieves the sub file entry for the specific index\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_sub_file_entry_by_index(\n     libfsrefs_file_entry_t *file_entry,\n     int sub_file_entry_index,\n     libfsrefs_file_entry_t **sub_file_entry,\n     libfsrefs_error_t **error );\n\n/* Retrieves the size of the default data stream (nameless $DATA attribute)\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_size(\n     libfsrefs_file_entry_t *file_entry,\n     size64_t *size,\n     libfsrefs_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_H ) */\n\n"
  },
  {
    "path": "libfsrefs/Makefile.am",
    "content": "AM_CPPFLAGS = \\\n\t-I../include -I$(top_srcdir)/include \\\n\t-I../common -I$(top_srcdir)/common \\\n\t@LIBCERROR_CPPFLAGS@ \\\n\t@LIBCTHREADS_CPPFLAGS@ \\\n\t@LIBCDATA_CPPFLAGS@ \\\n\t@LIBCLOCALE_CPPFLAGS@ \\\n\t@LIBCNOTIFY_CPPFLAGS@ \\\n\t@LIBCSPLIT_CPPFLAGS@ \\\n\t@LIBUNA_CPPFLAGS@ \\\n\t@LIBCFILE_CPPFLAGS@ \\\n\t@LIBCPATH_CPPFLAGS@ \\\n\t@LIBBFIO_CPPFLAGS@ \\\n\t@LIBFCACHE_CPPFLAGS@ \\\n\t@LIBFDATA_CPPFLAGS@ \\\n\t@LIBFDATETIME_CPPFLAGS@ \\\n\t@LIBFGUID_CPPFLAGS@ \\\n\t@LIBFWNT_CPPFLAGS@ \\\n\t@PTHREAD_CPPFLAGS@ \\\n\t@LIBFSREFS_DLL_EXPORT@\n\nlib_LTLIBRARIES = libfsrefs.la\n\nlibfsrefs_la_SOURCES = \\\n\tfsrefs_checkpoint.h \\\n\tfsrefs_directory_object.h \\\n\tfsrefs_metadata_block.h \\\n\tfsrefs_ministore_tree.h \\\n\tfsrefs_superblock.h \\\n\tfsrefs_volume_header.h \\\n\tlibfsrefs.c \\\n\tlibfsrefs_attribute_values.c libfsrefs_attribute_values.h \\\n\tlibfsrefs_block_descriptor.c libfsrefs_block_descriptor.h \\\n\tlibfsrefs_block_reference.c libfsrefs_block_reference.h \\\n\tlibfsrefs_block_tree.c libfsrefs_block_tree.h \\\n\tlibfsrefs_block_tree_node.c libfsrefs_block_tree_node.h \\\n\tlibfsrefs_checkpoint.c libfsrefs_checkpoint.h \\\n\tlibfsrefs_data_run.c libfsrefs_data_run.h \\\n\tlibfsrefs_debug.c libfsrefs_debug.h \\\n\tlibfsrefs_definitions.h \\\n\tlibfsrefs_directory_entry.c libfsrefs_directory_entry.h \\\n\tlibfsrefs_directory_object.c libfsrefs_directory_object.h \\\n\tlibfsrefs_error.c libfsrefs_error.h \\\n\tlibfsrefs_extern.h \\\n\tlibfsrefs_file_entry.c libfsrefs_file_entry.h \\\n\tlibfsrefs_file_system.c libfsrefs_file_system.h \\\n\tlibfsrefs_io_handle.c libfsrefs_io_handle.h \\\n\tlibfsrefs_libbfio.h \\\n\tlibfsrefs_libcdata.h \\\n\tlibfsrefs_libcerror.h \\\n\tlibfsrefs_libclocale.h \\\n\tlibfsrefs_libcnotify.h \\\n\tlibfsrefs_libcthreads.h \\\n\tlibfsrefs_libfcache.h \\\n\tlibfsrefs_libfdata.h \\\n\tlibfsrefs_libfdatetime.h \\\n\tlibfsrefs_libfguid.h \\\n\tlibfsrefs_libfwnt.h \\\n\tlibfsrefs_libuna.h \\\n\tlibfsrefs_metadata_block_header.c libfsrefs_metadata_block_header.h \\\n\tlibfsrefs_ministore_node.c libfsrefs_ministore_node.h \\\n\tlibfsrefs_node_header.c libfsrefs_node_header.h \\\n\tlibfsrefs_node_record.c libfsrefs_node_record.h \\\n\tlibfsrefs_notify.c libfsrefs_notify.h \\\n\tlibfsrefs_objects_tree.c libfsrefs_objects_tree.h \\\n\tlibfsrefs_superblock.c libfsrefs_superblock.h \\\n\tlibfsrefs_support.c libfsrefs_support.h \\\n\tlibfsrefs_tree_header.c libfsrefs_tree_header.h \\\n\tlibfsrefs_types.h \\\n\tlibfsrefs_unused.h \\\n\tlibfsrefs_volume.c libfsrefs_volume.h \\\n\tlibfsrefs_volume_header.c libfsrefs_volume_header.h\n\nlibfsrefs_la_LIBADD = \\\n\t@LIBCERROR_LIBADD@ \\\n\t@LIBCTHREADS_LIBADD@ \\\n\t@LIBCDATA_LIBADD@ \\\n\t@LIBCLOCALE_LIBADD@ \\\n\t@LIBCNOTIFY_LIBADD@ \\\n\t@LIBCSPLIT_LIBADD@ \\\n\t@LIBUNA_LIBADD@ \\\n\t@LIBCFILE_LIBADD@ \\\n\t@LIBCPATH_LIBADD@ \\\n\t@LIBBFIO_LIBADD@ \\\n\t@LIBFCACHE_LIBADD@ \\\n\t@LIBFDATA_LIBADD@ \\\n\t@LIBFDATETIME_LIBADD@ \\\n\t@LIBFGUID_LIBADD@ \\\n\t@LIBFWNT_LIBADD@ \\\n\t@PTHREAD_LIBADD@\n\nlibfsrefs_la_LDFLAGS = -no-undefined -version-info 1:0:0\n\nEXTRA_DIST = \\\n\tlibfsrefs_definitions.h.in \\\n\tlibfsrefs.rc \\\n\tlibfsrefs.rc.in\n\nDISTCLEANFILES = \\\n\tlibfsrefs_definitions.h \\\n\tlibfsrefs.rc \\\n\tMakefile \\\n\tMakefile.in\n\nsources-local: $(BUILT_SOURCES)\n\nsplint-local:\n\t@echo \"Running splint on libfsrefs ...\"\n\t-splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libfsrefs_la_SOURCES)\n\n"
  },
  {
    "path": "libfsrefs/fsrefs_checkpoint.h",
    "content": "/*\n * The ReFS checkpoint definition\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_CHECKPOINT_H )\n#define _FSREFS_CHECKPOINT_H\n\n#include <common.h>\n#include <types.h>\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct fsrefs_checkpoint_header fsrefs_checkpoint_header_t;\n\nstruct fsrefs_checkpoint_header\n{\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown1[ 4 ];\n\n\t/* Major format version\n\t * Consists of 2 bytes\n\t */\n\tuint8_t major_format_version[ 2 ];\n\n\t/* Minor format version\n\t * Consists of 2 bytes\n\t */\n\tuint8_t minor_format_version[ 2 ];\n\n\t/* Self reference data offset\n\t * Consists of 4 bytes\n\t */\n\tuint8_t self_reference_data_offset[ 4 ];\n\n\t/* Self reference data size\n\t * Consists of 4 bytes\n\t */\n\tuint8_t self_reference_data_size[ 4 ];\n};\n\ntypedef struct fsrefs_checkpoint_trailer_v1 fsrefs_checkpoint_trailer_v1_t;\n\nstruct fsrefs_checkpoint_trailer_v1\n{\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown2[ 8 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown3[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown4[ 4 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown5[ 8 ];\n\n\t/* Number of offsets\n\t * Consists of 4 bytes\n\t */\n\tuint8_t number_of_offsets[ 4 ];\n};\n\ntypedef struct fsrefs_checkpoint_trailer_v3 fsrefs_checkpoint_trailer_v3_t;\n\nstruct fsrefs_checkpoint_trailer_v3\n{\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown2[ 8 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown3[ 8 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown4[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown5[ 4 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown6[ 8 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown7[ 8 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown8[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown9[ 4 ];\n\n\t/* Number of offsets\n\t * Consists of 4 bytes\n\t */\n\tuint8_t number_of_offsets[ 4 ];\n};\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _FSREFS_CHECKPOINT_H ) */\n\n"
  },
  {
    "path": "libfsrefs/fsrefs_directory_object.h",
    "content": "/*\n * The ReFS directory object definitions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_DIRECTORY_OBJECT_H )\n#define _FSREFS_DIRECTORY_OBJECT_H\n\n#include <common.h>\n#include <types.h>\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct fsrefs_attribute_non_resident fsrefs_attribute_non_resident_t;\n\nstruct fsrefs_attribute_non_resident\n{\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown1[ 4 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown2[ 8 ];\n\n\t/* Allocated file data size\n\t * Consists of 8 bytes\n\t */\n\tuint8_t allocated_data_size[ 8 ];\n\n\t/* File data size\n\t * Consists of 8 bytes\n\t */\n\tuint8_t data_size[ 8 ];\n\n\t/* Valid file data size\n\t * Consists of 8 bytes\n\t */\n\tuint8_t valid_data_size[ 8 ];\n\n\t/* Unknown\n\t * Consists of 60 bytes\n\t */\n\tuint8_t unknown3[ 60 ];\n};\n\ntypedef struct fsrefs_attribute_resident fsrefs_attribute_resident_t;\n\nstruct fsrefs_attribute_resident\n{\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown1[ 4 ];\n\n\t/* Inline data offset\n\t * Consists of 4 bytes\n\t */\n\tuint8_t inline_data_offset[ 4 ];\n\n\t/* Inline data size\n\t * Consists of 4 bytes\n\t */\n\tuint8_t inline_data_size[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown3[ 4 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown4[ 8 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown5[ 8 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown6[ 8 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown7[ 8 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown8[ 8 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown9[ 4 ];\n};\n\ntypedef struct fsrefs_data_run fsrefs_data_run_t;\n\nstruct fsrefs_data_run\n{\n\t/* Logical offset\n\t * Consists of 8 bytes\n\t */\n\tuint8_t logical_offset[ 8 ];\n\n\t/* Size\n\t * Consists of 8 bytes\n\t */\n\tuint8_t size[ 8 ];\n\n\t/* Physical offset\n\t * Consists of 8 bytes\n\t */\n\tuint8_t physical_offset[ 8 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown1[ 8 ];\n};\n\ntypedef struct fsrefs_directory_values fsrefs_directory_values_t;\n\nstruct fsrefs_directory_values\n{\n\t/* The object identifier\n\t * Consists of 8 bytes\n\t */\n\tuint8_t object_identifier[ 8 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown1[ 8 ];\n\n\t/* The creation date and time\n\t * Consists of 8 bytes\n\t * Contains a FILETIME\n\t */\n\tuint8_t creation_time[ 8 ];\n\n\t/* The last modification date and time\n\t * Consists of 8 bytes\n\t * Contains a FILETIME\n\t */\n\tuint8_t modification_time[ 8 ];\n\n\t/* The entry last modification date and time\n\t * Consists of 8 bytes\n\t * Contains a FILETIME\n\t */\n\tuint8_t entry_modification_time[ 8 ];\n\n\t/* The last access date and time\n\t * Consists of 8 bytes\n\t * Contains a FILETIME\n\t */\n\tuint8_t access_time[ 8 ];\n\n\t/* Unknown\n\t * Consists of 16 bytes\n\t */\n\tuint8_t unknown2[ 16 ];\n\n\t/* The file attribute flags\n\t * Consists of 4 bytes\n\t */\n\tuint8_t file_attribute_flags[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown3[ 4 ];\n};\n\ntypedef struct fsrefs_file_values fsrefs_file_values_t;\n\nstruct fsrefs_file_values\n{\n\t/* The creation date and time\n\t * Consists of 8 bytes\n\t * Contains a FILETIME\n\t */\n\tuint8_t creation_time[ 8 ];\n\n\t/* The last modification date and time\n\t * Consists of 8 bytes\n\t * Contains a FILETIME\n\t */\n\tuint8_t modification_time[ 8 ];\n\n\t/* The entry last modification date and time\n\t * Consists of 8 bytes\n\t * Contains a FILETIME\n\t */\n\tuint8_t entry_modification_time[ 8 ];\n\n\t/* The last access date and time\n\t * Consists of 8 bytes\n\t * Contains a FILETIME\n\t */\n\tuint8_t access_time[ 8 ];\n\n\t/* The file attribute flags\n\t * Consists of 4 bytes\n\t */\n\tuint8_t file_attribute_flags[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown1[ 4 ];\n\n\t/* File system identifier (lower 64-bit)\n\t * Consists of 8 bytes\n\t */\n\tuint8_t identifier_lower[ 8 ];\n\n\t/* File system identifier (upper 64-bit)\n\t * Consists of 4 bytes\n\t */\n\tuint8_t identifier_upper[ 8 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown4[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown5[ 4 ];\n\n\t/* File data size\n\t * Consists of 8 bytes\n\t */\n\tuint8_t data_size[ 8 ];\n\n\t/* Allocated file data size\n\t * Consists of 8 bytes\n\t */\n\tuint8_t allocated_data_size[ 8 ];\n\n\t/* Unknown\n\t * Consists of 32 bytes\n\t */\n\tuint8_t unknown6[ 32 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown7[ 8 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown8[ 8 ];\n};\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _FSREFS_DIRECTORY_OBJECT_H ) */\n\n"
  },
  {
    "path": "libfsrefs/fsrefs_metadata_block.h",
    "content": "/*\n * The ReFS metadata block definition\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_METADATA_BLOCK_H )\n#define _FSREFS_METADATA_BLOCK_H\n\n#include <common.h>\n#include <types.h>\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct fsrefs_metadata_block_header_v1 fsrefs_metadata_block_header_v1_t;\n\nstruct fsrefs_metadata_block_header_v1\n{\n\t/* The metadata block number\n\t * Consists of 8 bytes\n\t */\n\tuint8_t block_number[ 8 ];\n\n\t/* The sequence number\n\t * Consists of 8 bytes\n\t */\n\tuint8_t sequence_number[ 8 ];\n\n\t/* The object identifier\n\t * Consists of 16 bytes\n\t */\n\tuint8_t object_identifier[ 16 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown1[ 8 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown2[ 8 ];\n};\n\ntypedef struct fsrefs_metadata_block_header_v3 fsrefs_metadata_block_header_v3_t;\n\nstruct fsrefs_metadata_block_header_v3\n{\n\t/* The signature\n\t * Consists of 4 bytes\n\t */\n\tuint8_t signature[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown1[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown2[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown3[ 4 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown4[ 8 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown5[ 8 ];\n\n\t/* The first metadata block number\n\t * Consists of 8 bytes\n\t */\n\tuint8_t block_number1[ 8 ];\n\n\t/* The second metadata block number\n\t * Consists of 8 bytes\n\t */\n\tuint8_t block_number2[ 8 ];\n\n\t/* The third metadata block number\n\t * Consists of 8 bytes\n\t */\n\tuint8_t block_number3[ 8 ];\n\n\t/* The fourth metadata block number\n\t * Consists of 8 bytes\n\t */\n\tuint8_t block_number4[ 8 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown6[ 8 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown7[ 8 ];\n};\n\ntypedef struct fsrefs_metadata_block_reference_v1 fsrefs_metadata_block_reference_v1_t;\n\nstruct fsrefs_metadata_block_reference_v1\n{\n\t/* The metadata block number\n\t * Consists of 8 bytes\n\t */\n\tuint8_t block_number[ 8 ];\n\n\t/* Unknown\n\t * Consists of 2 bytes\n\t */\n\tuint8_t unknown1[ 2 ];\n\n\t/* Checksum type\n\t * Consists of 1 byte\n\t */\n\tuint8_t checksum_type;\n\n\t/* Checksum data offset\n\t * Consists of 1 byte\n\t */\n\tuint8_t checksum_data_offset;\n\n\t/* Checksum data size\n\t * Consists of 2 bytes\n\t */\n\tuint8_t checksum_data_size[ 2 ];\n\n\t/* Unknown\n\t * Consists of 2 bytes\n\t */\n\tuint8_t unknown2[ 2 ];\n};\n\ntypedef struct fsrefs_metadata_block_reference_v3 fsrefs_metadata_block_reference_v3_t;\n\nstruct fsrefs_metadata_block_reference_v3\n{\n\t/* The first metadata block number\n\t * Consists of 8 bytes\n\t */\n\tuint8_t block_number1[ 8 ];\n\n\t/* The second metadata block number\n\t * Consists of 8 bytes\n\t */\n\tuint8_t block_number2[ 8 ];\n\n\t/* The third metadata block number\n\t * Consists of 8 bytes\n\t */\n\tuint8_t block_number3[ 8 ];\n\n\t/* The fourth metadata block number\n\t * Consists of 8 bytes\n\t */\n\tuint8_t block_number4[ 8 ];\n\n\t/* Unknown\n\t * Consists of 2 bytes\n\t */\n\tuint8_t unknown1[ 2 ];\n\n\t/* Checksum type\n\t * Consists of 1 byte\n\t */\n\tuint8_t checksum_type;\n\n\t/* Checksum data offset\n\t * Consists of 1 byte\n\t */\n\tuint8_t checksum_data_offset;\n\n\t/* Checksum data size\n\t * Consists of 2 bytes\n\t */\n\tuint8_t checksum_data_size[ 2 ];\n\n\t/* Unknown\n\t * Consists of 2 bytes\n\t */\n\tuint8_t unknown2[ 2 ];\n};\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _FSREFS_METADATA_BLOCK_H ) */\n\n"
  },
  {
    "path": "libfsrefs/fsrefs_ministore_tree.h",
    "content": "/*\n * The ReFS ministore tree definitions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_MINISTORE_TREE_H )\n#define _FSREFS_MINISTORE_TREE_H\n\n#include <common.h>\n#include <types.h>\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct fsrefs_ministore_tree_header fsrefs_ministore_tree_header_t;\n\nstruct fsrefs_ministore_tree_header\n{\n\t/* Table data offset\n\t * Consists of 2 bytes\n\t */\n\tuint8_t table_data_offset[ 2 ];\n\n\t/* Unknown\n\t * Consists of 2 bytes\n\t */\n\tuint8_t unknown1[ 2 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown2[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown3[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown4[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown5[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown6[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown7[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown8[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown9[ 4 ];\n};\n\ntypedef struct fsrefs_ministore_tree_node_header fsrefs_ministore_tree_node_header_t;\n\nstruct fsrefs_ministore_tree_node_header\n{\n\t/* Data area start offset\n\t * Consists of 4 bytes\n\t */\n\tuint8_t data_area_start_offset[ 4 ];\n\n\t/* Data area end offset\n\t * Consists of 4 bytes\n\t */\n\tuint8_t data_area_end_offset[ 4 ];\n\n\t/* Unused data size\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unused_data_size[ 4 ];\n\n\t/* Node level\n\t * Consists of 1 byte\n\t */\n\tuint8_t node_level;\n\n\t/* Node type flags\n\t * Consists of 1 byte\n\t */\n\tuint8_t node_type_flags;\n\n\t/* Unknown\n\t * Consists of 2 bytes\n\t */\n\tuint8_t unknown1[ 2 ];\n\n\t/* Record offsets start offset\n\t * Consists of 4 bytes\n\t */\n\tuint8_t record_offsets_start_offset[ 4 ];\n\n\t/* Number of record offsets\n\t * Consists of 4 bytes\n\t */\n\tuint8_t number_of_record_offsets[ 4 ];\n\n\t/* Record offsets end offset\n\t * Consists of 4 bytes\n\t */\n\tuint8_t record_offsets_end_offset[ 4 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown2[ 4 ];\n};\n\ntypedef struct fsrefs_ministore_tree_node_record fsrefs_ministore_tree_node_record_t;\n\nstruct fsrefs_ministore_tree_node_record\n{\n\t/* Size\n\t * Consists of 4 bytes\n\t */\n\tuint8_t size[ 4 ];\n\n\t/* Key data offset\n\t * Consists of 2 bytes\n\t */\n\tuint8_t key_data_offset[ 2 ];\n\n\t/* Key data size\n\t * Consists of 2 bytes\n\t */\n\tuint8_t key_data_size[ 2 ];\n\n\t/* Flags\n\t * Consists of 2 bytes\n\t */\n\tuint8_t flags[ 2 ];\n\n\t/* Value data offset\n\t * Consists of 2 bytes\n\t */\n\tuint8_t value_data_offset[ 2 ];\n\n\t/* Value data size\n\t * Consists of 2 bytes\n\t */\n\tuint8_t value_data_size[ 2 ];\n};\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _FSREFS_MINISTORE_TREE_H ) */\n\n"
  },
  {
    "path": "libfsrefs/fsrefs_superblock.h",
    "content": "/*\n * The ReFS superblock definition\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_SUPERBLOCK_H )\n#define _FSREFS_SUPERBLOCK_H\n\n#include <common.h>\n#include <types.h>\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct fsrefs_superblock fsrefs_superblock_t;\n\nstruct fsrefs_superblock\n{\n\t/* The volume identifier\n\t * Consists of 16 bytes\n\t */\n\tuint8_t volume_identifier[ 16 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown1[ 8 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown2[ 8 ];\n\n\t/* Checkpoints data offset\n\t * Consists of 4 bytes\n\t */\n\tuint8_t checkpoints_data_offset[ 4 ];\n\n\t/* Number of checkpoints\n\t * Consists of 4 bytes\n\t */\n\tuint8_t number_of_checkpoints[ 4 ];\n\n\t/* Self reference data offset\n\t * Consists of 4 bytes\n\t */\n\tuint8_t self_reference_data_offset[ 4 ];\n\n\t/* Self reference data size\n\t * Consists of 4 bytes\n\t */\n\tuint8_t self_reference_data_size[ 4 ];\n};\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _FSREFS_SUPERBLOCK_H ) */\n\n"
  },
  {
    "path": "libfsrefs/fsrefs_volume_header.h",
    "content": "/*\n * The ReFS volume header definition\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_VOLUME_HEADER_H )\n#define _FSREFS_VOLUME_HEADER_H\n\n#include <common.h>\n#include <types.h>\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct fsrefs_volume_header fsrefs_volume_header_t;\n\nstruct fsrefs_volume_header\n{\n\t/* Unknown\n\t * Consists of 3 bytes\n\t */\n\tuint8_t unknown1[ 3 ];\n\n\t/* The file system signature\n\t * Consists of 4 bytes\n\t * Contains: \"ReFS\"\n\t */\n\tuint8_t file_system_signature[ 4 ];\n\n\t/* Unknown\n\t * Consists of 9 bytes\n\t */\n\tuint8_t unknown2[ 9 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t * Contains: \"FSRS\"\n\t */\n\tuint8_t unknown3[ 4 ];\n\n\t/* Unknown\n\t * Consists of 2 bytes\n\t */\n\tuint8_t unknown4[ 2 ];\n\n\t/* Checksum\n\t * Consists of 2 bytes\n\t */\n\tuint8_t checksum[ 2 ];\n\n\t/* The number of sectors\n\t * Consists of 8 bytes\n\t */\n\tuint8_t number_of_sectors[ 8 ];\n\n\t/* The number of bytes per sector\n\t * Consists of 4 bytes\n\t */\n\tuint8_t bytes_per_sector[ 4 ];\n\n\t/* The number of sectors per cluster block\n\t * Consists of 4 bytes\n\t */\n\tuint8_t sectors_per_cluster_block[ 4 ];\n\n\t/* Major format version\n\t * Consists of 1 byte\n\t */\n\tuint8_t major_format_version;\n\n\t/* Minor format version\n\t * Consists of 1 byte\n\t */\n\tuint8_t minor_format_version;\n\n\t/* Unknown\n\t * Consists of 2 bytes\n\t */\n\tuint8_t unknown7[ 2 ];\n\n\t/* Unknown\n\t * Consists of 4 bytes\n\t */\n\tuint8_t unknown8[ 4 ];\n\n\t/* Unknown\n\t * Consists of 8 bytes\n\t */\n\tuint8_t unknown9[ 8 ];\n\n\t/* Volume serial number\n\t * Consists of 8 bytes\n\t */\n\tuint8_t volume_serial_number[ 8 ];\n\n\t/* Container size\n\t * Consists of 8 bytes\n\t */\n\tuint8_t container_size[ 8 ];\n\n\t/* Unknown\n\t * Consists of 440 bytes\n\t */\n\tuint8_t unknown11[ 440 ];\n};\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _FSREFS_VOLUME_HEADER_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs.c",
    "content": "/*\n * Library to access the Resiliant File System (ReFS) format\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n\n#if defined( WINAPI )\n#include <windows.h>\n#endif\n\n#include \"libfsrefs_unused.h\"\n\n/* Define HAVE_LOCAL_LIBFSREFS for local use of libfsrefs\n */\n#if !defined( HAVE_LOCAL_LIBFSREFS )\n\n#if defined( WINAPI ) && defined( HAVE_DLLMAIN )\n\n#if defined( _MANAGED )\n#pragma managed( push, off )\n#endif\n\n/* Defines the entry point for the DLL\n */\nBOOL WINAPI DllMain(\n             HINSTANCE hinstDLL,\n             DWORD fdwReason,\n             LPVOID lpvReserved )\n{\n\tLIBFSREFS_UNREFERENCED_PARAMETER( lpvReserved )\n\n\tswitch( fdwReason )\n\t{\n\t\tcase DLL_PROCESS_ATTACH:\n\t\t\tDisableThreadLibraryCalls(\n\t\t\t hinstDLL );\n\t\t\tbreak;\n\n\t\tcase DLL_THREAD_ATTACH:\n\t\t\tbreak;\n\n\t\tcase DLL_THREAD_DETACH:\n\t\t\tbreak;\n\n\t\tcase DLL_PROCESS_DETACH:\n\t\t\tbreak;\n\t}\n\treturn( TRUE );\n}\n\n/* Function that indicates the library is a DLL\n * Returns 1\n */\nint libfsrefs_is_dll(\n     void )\n{\n\treturn( 1 );\n}\n\n#endif /* defined( WINAPI ) && defined( HAVE_DLLMAIN ) */\n\n#endif /* !defined( HAVE_LOCAL_LIBFSREFS ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs.rc.in",
    "content": "#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\tMOVEABLE IMPURE LOADONCALL DISCARDABLE\r\n#endif\r\n  FILEVERSION\t\t\t\t1,0,0,0\r\n  PRODUCTVERSION\t\t\t1,0,0,0\r\n  FILEFLAGSMASK\t\t\t\tVS_FFI_FILEFLAGSMASK\r\n#ifdef _DEBUG\r\n  FILEFLAGS\t\t\t\t0x1L\r\n#else\r\n  FILEFLAGS\t\t\t\t0x0L\r\n#endif\r\n  FILEOS\t\t\t\tVOS__WINDOWS32\r\n  FILETYPE\t\t\t\tVFT_DLL\r\n  FILESUBTYPE\t\t\t\t0x0L\r\nBEGIN\r\n  BLOCK \"StringFileInfo\"\r\n  BEGIN\r\n    BLOCK \"040904E4\"\r\n    BEGIN\r\n      VALUE \"FileDescription\",\t\t\"Library to access the Resiliant File System (ReFS) format\\0\"\r\n      VALUE \"FileVersion\",\t\t\"@VERSION@\" \"\\0\"\r\n      VALUE \"InternalName\",\t\t\"libfsrefs.dll\\0\"\r\n      VALUE \"LegalCopyright\",\t\t\"(C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\\0\"\r\n      VALUE \"OriginalFilename\",\t\t\"libfsrefs.dll\\0\"\r\n      VALUE \"ProductName\",\t\t\"libfsrefs\\0\"\r\n      VALUE \"ProductVersion\",\t\t\"@VERSION@\" \"\\0\"\r\n      VALUE \"Comments\",\t\t\t\"For more information visit https://github.com/libyal/libfsrefs/\\0\"\r\n    END\r\n  END\r\n  BLOCK \"VarFileInfo\"\r\n  BEGIN\r\n    VALUE \"Translation\", 0x0409, 1200\r\n  END\r\nEND\r\n"
  },
  {
    "path": "libfsrefs/libfsrefs_attribute_values.c",
    "content": "/*\n * Attribute values functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_attribute_values.h\"\n#include \"libfsrefs_data_run.h\"\n#include \"libfsrefs_debug.h\"\n#include \"libfsrefs_libcdata.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n#include \"libfsrefs_libfdatetime.h\"\n#include \"libfsrefs_libuna.h\"\n#include \"libfsrefs_ministore_node.h\"\n#include \"libfsrefs_node_record.h\"\n\n#include \"fsrefs_directory_object.h\"\n\n/* Creates a attribute values\n * Make sure the value attribute_values is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_attribute_values_initialize(\n     libfsrefs_attribute_values_t **attribute_values,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_attribute_values_initialize\";\n\n\tif( attribute_values == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid attribute values.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *attribute_values != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid attribute values value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*attribute_values = memory_allocate_structure(\n\t                     libfsrefs_attribute_values_t );\n\n\tif( *attribute_values == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create attribute values.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *attribute_values,\n\t     0,\n\t     sizeof( libfsrefs_attribute_values_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear attribute values.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *attribute_values );\n\n\t\t*attribute_values = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t     &( ( *attribute_values )->data_runs_array ),\n\t     0,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create data runs array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *attribute_values != NULL )\n\t{\n\t\tmemory_free(\n\t\t *attribute_values );\n\n\t\t*attribute_values = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a attribute values\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_attribute_values_free(\n     libfsrefs_attribute_values_t **attribute_values,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_attribute_values_free\";\n\tint result            = 1;\n\n\tif( attribute_values == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid attribute values.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *attribute_values != NULL )\n\t{\n\t\tif( libcdata_array_free(\n\t\t     &( ( *attribute_values )->data_runs_array ),\n\t\t     (int (*)(intptr_t **, libcerror_error_t **)) &libfsrefs_data_run_free,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free data runs array.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t\tif( ( *attribute_values )->name_data != NULL )\n\t\t{\n\t\t\tmemory_free(\n\t\t\t ( *attribute_values )->name_data );\n\t\t}\n\t\tmemory_free(\n\t\t *attribute_values );\n\n\t\t*attribute_values = NULL;\n\t}\n\treturn( result );\n}\n\n/* Reads a non-resident attribute values\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_attribute_values_read_non_resident(\n     libfsrefs_attribute_values_t *attribute_values,\n     libfsrefs_io_handle_t *io_handle,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_data_run_t *data_run       = NULL;\n\tlibfsrefs_ministore_node_t *node     = NULL;\n\tlibfsrefs_node_record_t *node_record = NULL;\n\tstatic char *function                = \"libfsrefs_attribute_values_read_non_resident\";\n\tint entry_index                      = 0;\n\tint number_of_records                = 0;\n\tint record_index                     = 0;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tuint64_t value_64bit                 = 0;\n\tuint32_t value_32bit                 = 0;\n#endif\n\n\tif( attribute_values == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid attribute values.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_ministore_node_initialize(\n\t     &node,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create non-resident attribute ministore node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_ministore_node_read_data(\n\t     node,\n\t     io_handle,\n\t     data,\n\t     data_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read non-resident attribute ministore node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( ( node->node_type_flags & 0x03 ) != 0x02 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: invalid non-resident attribute ministore node - unsupported node type flags.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( node->header_data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid non-resident attribute ministore node - missing header data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( node->header_data_size != sizeof( fsrefs_attribute_non_resident_t ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid non-resident attribute ministore node - header data size value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_attribute_non_resident_t *) node->header_data )->unknown1,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown1\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_attribute_non_resident_t *) node->header_data )->unknown2,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown2\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_attribute_non_resident_t *) node->header_data )->allocated_data_size,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: allocated data size\\t: %\" PRIu64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_attribute_non_resident_t *) node->header_data )->data_size,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: data size\\t\\t\\t: %\" PRIu64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_attribute_non_resident_t *) node->header_data )->valid_data_size,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: valid data size\\t\\t: %\" PRIu64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown3:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t ( (fsrefs_attribute_non_resident_t *) node->header_data )->unknown3,\n\t\t 60,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tif( libfsrefs_ministore_node_get_number_of_records(\n\t     node,\n\t     &number_of_records,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of records.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tfor( record_index = 0;\n\t     record_index < number_of_records;\n\t     record_index++ )\n\t{\n\t\tif( libfsrefs_ministore_node_get_record_by_index(\n\t\t     node,\n\t\t     record_index,\n\t\t     &node_record,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve data run: %d record.\",\n\t\t\t function,\n\t\t\t record_index );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_data_run_initialize(\n\t\t     &data_run,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create data run: %d.\",\n\t\t\t function,\n\t\t\t record_index );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_data_run_read_data(\n\t\t     data_run,\n\t\t     io_handle,\n\t\t     node_record->value_data,\n\t\t     node_record->value_data_size,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t \"%s: unable to read data run: %d.\",\n\t\t\t function,\n\t\t\t record_index );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libcdata_array_append_entry(\n\t\t     attribute_values->data_runs_array,\n\t\t     &entry_index,\n\t\t     (intptr_t *) data_run,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_APPEND_FAILED,\n\t\t\t \"%s: unable to append data run: %d to array.\",\n\t\t\t function,\n\t\t\t record_index );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tdata_run = NULL;\n\t}\n\tif( libfsrefs_ministore_node_free(\n\t     &node,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t \"%s: unable to free non-resident attribute ministore node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( data_run != NULL )\n\t{\n\t\tlibfsrefs_data_run_free(\n\t\t &data_run,\n\t\t NULL );\n\t}\n\tif( node != NULL )\n\t{\n\t\tlibfsrefs_ministore_node_free(\n\t\t &node,\n\t\t NULL );\n\t}\n\tlibcdata_array_empty(\n\t attribute_values->data_runs_array,\n\t (int (*)(intptr_t **, libcerror_error_t **)) &libfsrefs_data_run_free,\n\t NULL );\n\n\treturn( -1 );\n}\n\n/* Reads a resident attribute values\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_attribute_values_read_resident(\n     libfsrefs_attribute_values_t *attribute_values,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function       = \"libfsrefs_attribute_values_read_resident\";\n\tuint32_t inline_data_offset = 0;\n\tuint32_t inline_data_size   = 0;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tsize_t data_offset          = 0;\n\tuint64_t value_64bit        = 0;\n\tuint32_t value_32bit        = 0;\n#endif\n\n\tif( attribute_values == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid attribute values.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( data_size < sizeof( fsrefs_attribute_resident_t ) )\n\t || ( data_size > (size_t) SSIZE_MAX ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: resident attribute data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t data_size,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_attribute_resident_t *) data )->inline_data_offset,\n\t inline_data_offset );\n\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_attribute_resident_t *) data )->inline_data_size,\n\t inline_data_size );\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_attribute_resident_t *) data )->unknown1,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown1\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: inline data offset\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t inline_data_offset );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: inline data size\\t\\t: %\" PRIu32 \"\\n\",\n\t\t function,\n\t\t inline_data_size );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_attribute_resident_t *) data )->unknown3,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown3\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_attribute_resident_t *) data )->unknown4,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown4\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_attribute_resident_t *) data )->unknown5,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown5\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_attribute_resident_t *) data )->unknown6,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown6\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_attribute_resident_t *) data )->unknown7,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown7\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_attribute_resident_t *) data )->unknown8,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown8\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_attribute_resident_t *) data )->unknown9,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown9\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tif( ( inline_data_offset < sizeof( fsrefs_attribute_resident_t ) )\n\t || ( inline_data_offset >= data_size ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid inline data offset value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( inline_data_size > ( data_size - inline_data_offset ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid inline data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: inline data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t &( data[ inline_data_offset ] ),\n\t\t inline_data_size,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\n\t\tdata_offset = inline_data_offset + inline_data_size;\n\n\t\tif( data_offset < data_size )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: trailing data:\\n\",\n\t\t\t function );\n\t\t\tlibcnotify_print_data(\n\t\t\t &( data[ data_offset ] ),\n\t\t\t data_size - data_offset,\n\t\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t\t}\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\treturn( 1 );\n}\n\n/* Reads the attribute values from a ministore node record\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_attribute_values_read_node_record(\n     libfsrefs_attribute_values_t *attribute_values,\n     libfsrefs_io_handle_t *io_handle,\n     libfsrefs_node_record_t *node_record,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_attribute_values_read_node_record\";\n\tsize_t name_data_size = 0;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tuint64_t value_64bit  = 0;\n#endif\n\n\tif( attribute_values == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid attribute values.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( attribute_values->name_data != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid attribute values - namd data value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( node_record == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid node record.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( node_record->key_data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid node record - missing key data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: key data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t node_record->key_data,\n\t\t node_record->key_data_size,\n\t\t 0 );\n\t}\n#endif\n\tif( node_record->key_data_size < 14 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid node record - key data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: key data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t node_record->key_data,\n\t\t node_record->key_data_size,\n\t\t 0 );\n\t}\n#endif\n\tbyte_stream_copy_to_uint32_little_endian(\n\t &( node_record->key_data[ 8 ] ),\n\t attribute_values->attribute_type );\n\n\tname_data_size = node_record->key_data_size - 12;\n\n\tattribute_values->name_data = (uint8_t *) memory_allocate(\n\t                                           sizeof( uint8_t ) * name_data_size );\n\n\tif( attribute_values->name_data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create name data.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tattribute_values->name_data_size = name_data_size;\n\n\tif( memory_copy(\n\t     attribute_values->name_data,\n\t     &( node_record->key_data[ 12 ] ),\n\t     attribute_values->name_data_size ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_COPY_FAILED,\n\t\t \"%s: unable to copy name data.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t &( node_record->key_data[ 0 ] ),\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown1\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: attribute type\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t attribute_values->attribute_type );\n\n\t\tif( libfsrefs_debug_print_utf16_string_value(\n\t\t     function,\n\t\t     \"name\\t\\t\\t\",\n\t\t     attribute_values->name_data,\n\t\t     attribute_values->name_data_size,\n\t\t     LIBUNA_ENDIAN_LITTLE,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t\t \"%s: unable to print UTF-16 string value.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tif( ( node_record->flags & 0x0008 ) != 0 )\n\t{\n\t\tif( libfsrefs_attribute_values_read_non_resident(\n\t\t     attribute_values,\n\t\t     io_handle,\n\t\t     node_record->value_data,\n\t\t     node_record->value_data_size,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t \"%s: unable to read non-resident attribute values.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\telse\n\t{\n\t\tif( libfsrefs_attribute_values_read_resident(\n\t\t     attribute_values,\n\t\t     node_record->value_data,\n\t\t     node_record->value_data_size,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t \"%s: unable to read resident attribute values.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\treturn( 1 );\n\non_error:\n\tif( attribute_values->name_data != NULL )\n\t{\n\t\tmemory_free(\n\t\t attribute_values->name_data );\n\n\t\tattribute_values->name_data = NULL;\n\t}\n\tattribute_values->name_data_size = 0;\n\n\tlibcdata_array_empty(\n\t attribute_values->data_runs_array,\n\t (int (*)(intptr_t **, libcerror_error_t **)) &libfsrefs_data_run_free,\n\t NULL );\n\n\treturn( -1 );\n}\n\n/* Retrieves the size of the UTF-8 encoded name\n * The returned size includes the end of string character\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_attribute_values_get_utf8_name_size(\n     libfsrefs_attribute_values_t *attribute_values,\n     size_t *utf8_string_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_attribute_values_get_utf8_name_size\";\n\n\tif( attribute_values == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid attribute values.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libuna_utf8_string_size_from_utf16_stream(\n\t     attribute_values->name_data,\n\t     attribute_values->name_data_size,\n\t     LIBUNA_ENDIAN_LITTLE,\n\t     utf8_string_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve size of UTF-8 name.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Retrieves the UTF-8 encoded name\n * The size should include the end of string character\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_attribute_values_get_utf8_name(\n     libfsrefs_attribute_values_t *attribute_values,\n     uint8_t *utf8_string,\n     size_t utf8_string_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_attribute_values_get_utf8_name\";\n\n\tif( attribute_values == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid attribute values.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libuna_utf8_string_copy_from_utf16_stream(\n\t     utf8_string,\n\t     utf8_string_size,\n\t     attribute_values->name_data,\n\t     attribute_values->name_data_size,\n\t     LIBUNA_ENDIAN_LITTLE,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve UTF-8 name.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Retrieves the size of the UTF-16 encoded name\n * The returned size includes the end of string character\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_attribute_values_get_utf16_name_size(\n     libfsrefs_attribute_values_t *attribute_values,\n     size_t *utf16_string_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_attribute_values_get_utf16_name_size\";\n\n\tif( attribute_values == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid attribute values.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libuna_utf16_string_size_from_utf16_stream(\n\t     attribute_values->name_data,\n\t     attribute_values->name_data_size,\n\t     LIBUNA_ENDIAN_LITTLE,\n\t     utf16_string_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve size of UTF-16 name.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Retrieves the UTF-16 encoded name\n * The size should include the end of string character\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_attribute_values_get_utf16_name(\n     libfsrefs_attribute_values_t *attribute_values,\n     uint16_t *utf16_string,\n     size_t utf16_string_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_attribute_values_get_utf16_name\";\n\n\tif( attribute_values == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid attribute values.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libuna_utf16_string_copy_from_utf16_stream(\n\t     utf16_string,\n\t     utf16_string_size,\n\t     attribute_values->name_data,\n\t     attribute_values->name_data_size,\n\t     LIBUNA_ENDIAN_LITTLE,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve UTF-16 name.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_attribute_values.h",
    "content": "/*\n * Attribute values functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_ATTRIBUTE_VALUES_H )\n#define _LIBFSREFS_ATTRIBUTE_VALUES_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libcdata.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_node_record.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_attribute_values libfsrefs_attribute_values_t;\n\nstruct libfsrefs_attribute_values\n{\n\t/* The attribute type\n\t */\n\tuint32_t attribute_type;\n\n\t/* The name data\n\t */\n\tuint8_t *name_data;\n\n\t/* The name data size\n\t */\n\tsize_t name_data_size;\n\n\t/* The data runs array\n\t */\n\tlibcdata_array_t *data_runs_array;\n};\n\nint libfsrefs_attribute_values_initialize(\n     libfsrefs_attribute_values_t **attribute_values,\n     libcerror_error_t **error );\n\nint libfsrefs_attribute_values_free(\n     libfsrefs_attribute_values_t **attribute_values,\n     libcerror_error_t **error );\n\nint libfsrefs_attribute_values_read_non_resident(\n     libfsrefs_attribute_values_t *attribute_values,\n     libfsrefs_io_handle_t *io_handle,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error );\n\nint libfsrefs_attribute_values_read_resident(\n     libfsrefs_attribute_values_t *attribute_values,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error );\n\nint libfsrefs_attribute_values_read_node_record(\n     libfsrefs_attribute_values_t *attribute_values,\n     libfsrefs_io_handle_t *io_handle,\n     libfsrefs_node_record_t *node_record,\n     libcerror_error_t **error );\n\nint libfsrefs_attribute_values_get_utf8_name_size(\n     libfsrefs_attribute_values_t *attribute_values,\n     size_t *utf8_string_size,\n     libcerror_error_t **error );\n\nint libfsrefs_attribute_values_get_utf8_name(\n     libfsrefs_attribute_values_t *attribute_values,\n     uint8_t *utf8_string,\n     size_t utf8_string_size,\n     libcerror_error_t **error );\n\nint libfsrefs_attribute_values_get_utf16_name_size(\n     libfsrefs_attribute_values_t *attribute_values,\n     size_t *utf16_string_size,\n     libcerror_error_t **error );\n\nint libfsrefs_attribute_values_get_utf16_name(\n     libfsrefs_attribute_values_t *attribute_values,\n     uint16_t *utf16_string,\n     size_t utf16_string_size,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_ATTRIBUTE_VALUES_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_block_descriptor.c",
    "content": "/*\n * Block descriptor functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_block_descriptor.h\"\n#include \"libfsrefs_libcerror.h\"\n\n/* Creates a block descriptor\n * Make sure the value block_descriptor is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_block_descriptor_initialize(\n     libfsrefs_block_descriptor_t **block_descriptor,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_block_descriptor_initialize\";\n\n\tif( block_descriptor == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block descriptor.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *block_descriptor != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid block descriptor value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*block_descriptor = memory_allocate_structure(\n\t                     libfsrefs_block_descriptor_t );\n\n\tif( *block_descriptor == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create block descriptor.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *block_descriptor,\n\t     0,\n\t     sizeof( libfsrefs_block_descriptor_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear block descriptor.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *block_descriptor != NULL )\n\t{\n\t\tmemory_free(\n\t\t *block_descriptor );\n\n\t\t*block_descriptor = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a block descriptor\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_block_descriptor_free(\n     libfsrefs_block_descriptor_t **block_descriptor,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_block_descriptor_free\";\n\n\tif( block_descriptor == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block descriptor.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *block_descriptor != NULL )\n\t{\n\t\tmemory_free(\n\t\t *block_descriptor );\n\n\t\t*block_descriptor = NULL;\n\t}\n\treturn( 1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_block_descriptor.h",
    "content": "/*\n * Block descriptor functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_BLOCK_DESCRIPTOR_H )\n#define _LIBFSREFS_BLOCK_DESCRIPTOR_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_block_descriptor libfsrefs_block_descriptor_t;\n\nstruct libfsrefs_block_descriptor\n{\n\t/* The block number\n\t */\n\tuint64_t block_number;\n};\n\nint libfsrefs_block_descriptor_initialize(\n     libfsrefs_block_descriptor_t **block_descriptor,\n     libcerror_error_t **error );\n\nint libfsrefs_block_descriptor_free(\n     libfsrefs_block_descriptor_t **block_descriptor,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_BLOCK_DESCRIPTOR_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_block_reference.c",
    "content": "/*\n * Block reference functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_block_reference.h\"\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n\n#include \"fsrefs_metadata_block.h\"\n\n/* Creates a block reference\n * Make sure the value block_reference is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_block_reference_initialize(\n     libfsrefs_block_reference_t **block_reference,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_block_reference_initialize\";\n\n\tif( block_reference == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block reference.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *block_reference != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid block reference value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*block_reference = memory_allocate_structure(\n\t                     libfsrefs_block_reference_t );\n\n\tif( *block_reference == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create block reference.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *block_reference,\n\t     0,\n\t     sizeof( libfsrefs_block_reference_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear block reference.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *block_reference != NULL )\n\t{\n\t\tmemory_free(\n\t\t *block_reference );\n\n\t\t*block_reference = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a block reference\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_block_reference_free(\n     libfsrefs_block_reference_t **block_reference,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_block_reference_free\";\n\n\tif( block_reference == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block reference.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *block_reference != NULL )\n\t{\n\t\tmemory_free(\n\t\t *block_reference );\n\n\t\t*block_reference = NULL;\n\t}\n\treturn( 1 );\n}\n\n/* Reads a block reference\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_block_reference_read_data(\n     libfsrefs_block_reference_t *block_reference,\n     libfsrefs_io_handle_t *io_handle,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function        = \"libfsrefs_block_reference_read_data\";\n\tsize_t block_reference_size  = 0;\n\tuint16_t checksum_data_size  = 0;\n\tuint8_t checksum_data_offset = 0;\n\tuint8_t checksum_type        = 0;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tsize_t data_offset           = 0;\n\tuint16_t value_16bit         = 0;\n#endif\n\n\tif( block_reference == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block reference.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle->major_format_version == 1 )\n\t{\n\t\tblock_reference_size = sizeof( fsrefs_metadata_block_reference_v1_t );\n\t}\n\telse if( io_handle->major_format_version == 3 )\n\t{\n\t\tblock_reference_size = sizeof( fsrefs_metadata_block_reference_v3_t );\n\t}\n\telse\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported format version: %\" PRIu8 \".%\" PRIu8 \".\",\n\t\t function,\n\t\t io_handle->major_format_version,\n\t\t io_handle->minor_format_version );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( data_size < block_reference_size )\n\t || ( data_size > (size_t) SSIZE_MAX ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: block reference data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t block_reference_size,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n\tif( io_handle->major_format_version == 1 )\n\t{\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_metadata_block_reference_v1_t *) data )->block_number,\n\t\t block_reference->block_numbers[ 0 ] );\n\n\t\tchecksum_type = ( (fsrefs_metadata_block_reference_v1_t *) data )->checksum_type;\n\n\t\tchecksum_data_offset = ( (fsrefs_metadata_block_reference_v1_t *) data )->checksum_data_offset;\n\n\t\tbyte_stream_copy_to_uint16_little_endian(\n\t\t ( (fsrefs_metadata_block_reference_v1_t *) data )->checksum_data_size,\n\t\t checksum_data_size );\n\t}\n\telse if( io_handle->major_format_version == 3 )\n\t{\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_metadata_block_reference_v3_t *) data )->block_number1,\n\t\t block_reference->block_numbers[ 0 ] );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_metadata_block_reference_v3_t *) data )->block_number2,\n\t\t block_reference->block_numbers[ 1 ] );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_metadata_block_reference_v3_t *) data )->block_number3,\n\t\t block_reference->block_numbers[ 2 ] );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_metadata_block_reference_v3_t *) data )->block_number4,\n\t\t block_reference->block_numbers[ 3 ] );\n\n\t\tchecksum_type = ( (fsrefs_metadata_block_reference_v3_t *) data )->checksum_type;\n\n\t\tchecksum_data_offset = ( (fsrefs_metadata_block_reference_v3_t *) data )->checksum_data_offset;\n\n\t\tbyte_stream_copy_to_uint16_little_endian(\n\t\t ( (fsrefs_metadata_block_reference_v3_t *) data )->checksum_data_size,\n\t\t checksum_data_size );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tif( io_handle->major_format_version == 1 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: block number\\t\\t\\t: %\" PRIu64 \"\\n\",\n\t\t\t function,\n\t\t\t block_reference->block_numbers[ 0 ] );\n\t\t}\n\t\telse if( io_handle->major_format_version == 3 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: block number1\\t\\t\\t: %\" PRIu64 \"\\n\",\n\t\t\t function,\n\t\t\t block_reference->block_numbers[ 0 ] );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: block number2\\t\\t\\t: %\" PRIu64 \"\\n\",\n\t\t\t function,\n\t\t\t block_reference->block_numbers[ 1 ] );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: block number3\\t\\t\\t: %\" PRIu64 \"\\n\",\n\t\t\t function,\n\t\t\t block_reference->block_numbers[ 2 ] );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: block number4\\t\\t\\t: %\" PRIu64 \"\\n\",\n\t\t\t function,\n\t\t\t block_reference->block_numbers[ 3 ] );\n\t\t}\n\t\tif( io_handle->major_format_version == 1 )\n\t\t{\n\t\t\tbyte_stream_copy_to_uint16_little_endian(\n\t\t\t ( (fsrefs_metadata_block_reference_v1_t *) data )->unknown1,\n\t\t\t value_16bit );\n\t\t}\n\t\telse if( io_handle->major_format_version == 3 )\n\t\t{\n\t\t\tbyte_stream_copy_to_uint16_little_endian(\n\t\t\t ( (fsrefs_metadata_block_reference_v3_t *) data )->unknown1,\n\t\t\t value_16bit );\n\t\t}\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown1\\t\\t\\t\\t: 0x%04\" PRIx16 \"\\n\",\n\t\t function,\n\t\t value_16bit );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: checksum type\\t\\t\\t: %\" PRIu8 \"\\n\",\n\t\t function,\n\t\t checksum_type );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: checksum data offset\\t\\t: %\" PRIu8 \"\\n\",\n\t\t function,\n\t\t checksum_data_offset );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: checksum data size\\t\\t\\t: %\" PRIu16 \"\\n\",\n\t\t function,\n\t\t checksum_data_size );\n\n\t\tif( io_handle->major_format_version == 1 )\n\t\t{\n\t\t\tbyte_stream_copy_to_uint16_little_endian(\n\t\t\t ( (fsrefs_metadata_block_reference_v1_t *) data )->unknown2,\n\t\t\t value_16bit );\n\t\t}\n\t\telse if( io_handle->major_format_version == 3 )\n\t\t{\n\t\t\tbyte_stream_copy_to_uint16_little_endian(\n\t\t\t ( (fsrefs_metadata_block_reference_v3_t *) data )->unknown2,\n\t\t\t value_16bit );\n\t\t}\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown2\\t\\t\\t\\t: 0x%04\" PRIx16 \"\\n\",\n\t\t function,\n\t\t value_16bit );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tif( ( checksum_type != 1 )\n\t && ( checksum_type != 2 ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported checksum type: %\" PRIu8 \".\",\n\t\t function,\n\t\t checksum_type );\n\n\t\treturn( -1 );\n\t}\n/* TODO validate checksum data offset */\n/* TODO validate checksum data size */\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tif( io_handle->major_format_version == 1 )\n\t\t{\n\t\t\tdata_offset = 8 + checksum_data_offset;\n\t\t}\n\t\telse if( io_handle->major_format_version == 3 )\n\t\t{\n\t\t\tdata_offset = 32 + checksum_data_offset;\n\t\t}\n\t\tlibcnotify_printf(\n\t\t \"%s: checksum data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t &( data[ data_offset ] ),\n\t\t checksum_data_size,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\n/* TODO\n\t\tdata_offset += checksum_data_size;\n\n\t\tif( data_offset < data_size )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: trailing data:\\n\",\n\t\t\t function );\n\t\t\tlibcnotify_print_data(\n\t\t\t &( data[ data_offset ] ),\n\t\t\t data_size - data_offset,\n\t\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t\t}\n*/\n\t}\n#endif\n\treturn( 1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_block_reference.h",
    "content": "/*\n * Block reference functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_BLOCK_REFRENCE_H )\n#define _LIBFSREFS_BLOCK_REFRENCE_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_block_reference libfsrefs_block_reference_t;\n\nstruct libfsrefs_block_reference\n{\n\t/* The block numbers\n\t */\n\tuint64_t block_numbers[ 4 ];\n\n\t/* The checksum\n\t */\n\tuint64_t checksum;\n\n\t/* The block offsets\n\t */\n\toff64_t block_offsets[ 4 ];\n};\n\nint libfsrefs_block_reference_initialize(\n     libfsrefs_block_reference_t **block_reference,\n     libcerror_error_t **error );\n\nint libfsrefs_block_reference_free(\n     libfsrefs_block_reference_t **block_reference,\n     libcerror_error_t **error );\n\nint libfsrefs_block_reference_read_data(\n     libfsrefs_block_reference_t *block_reference,\n     libfsrefs_io_handle_t *io_handle,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_BLOCK_REFRENCE_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_block_tree.c",
    "content": "/*\n * Block tree functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_block_descriptor.h\"\n#include \"libfsrefs_block_tree.h\"\n#include \"libfsrefs_block_tree_node.h\"\n#include \"libfsrefs_definitions.h\"\n#include \"libfsrefs_libcdata.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n#include \"libfsrefs_unused.h\"\n\n/* Creates a block tree\n * Make sure the value block_tree is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_block_tree_initialize(\n     libfsrefs_block_tree_t **block_tree,\n     size64_t size,\n     size64_t leaf_value_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_block_tree_initialize\";\n\n\tif( block_tree == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *block_tree != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid block tree value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*block_tree = memory_allocate_structure(\n\t               libfsrefs_block_tree_t );\n\n\tif( *block_tree == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create block tree.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *block_tree,\n\t     0,\n\t     sizeof( libfsrefs_block_tree_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear block tree.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *block_tree );\n\n\t\t*block_tree = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_block_tree_node_initialize(\n\t     &( ( *block_tree )->root_node ),\n\t     0,\n\t     size,\n\t     leaf_value_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create root node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *block_tree )->leaf_value_size = leaf_value_size;\n\n\treturn( 1 );\n\non_error:\n\tif( *block_tree != NULL )\n\t{\n\t\tmemory_free(\n\t\t *block_tree );\n\n\t\t*block_tree = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a block tree\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_block_tree_free(\n     libfsrefs_block_tree_t **block_tree,\n     int (*value_free_function)(\n            intptr_t **value,\n            libcerror_error_t **error ),\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_block_tree_free\";\n\tint result            = 1;\n\n\tif( block_tree == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *block_tree != NULL )\n\t{\n\t\tif( ( *block_tree )->root_node != NULL )\n\t\t{\n\t\t\tif( libfsrefs_block_tree_node_free(\n\t\t\t     &( ( *block_tree )->root_node ),\n\t\t\t     value_free_function,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t\t \"%s: unable to free root node.\",\n\t\t\t\t function );\n\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}\n\t\tmemory_free(\n\t\t *block_tree );\n\n\t\t*block_tree = NULL;\n\t}\n\treturn( result );\n}\n\n/* Retrieves the block descriptor for a specific offset\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nint libfsrefs_block_tree_get_block_descriptor_by_offset(\n     libfsrefs_block_tree_t *block_tree,\n     off64_t offset,\n     libfsrefs_block_descriptor_t **block_descriptor,\n     off64_t *block_offset,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_block_descriptor_t *safe_block_descriptor = NULL;\n\tlibfsrefs_block_tree_node_t *block_tree_node        = NULL;\n\tstatic char *function                               = \"libfsrefs_block_tree_get_block_descriptor_by_offset\";\n\toff64_t safe_block_offset                           = 0;\n\n\tif( block_tree == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( block_descriptor == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block descriptor.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( block_offset == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block offset.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tblock_tree_node = block_tree->root_node;\n\n\twhile( block_tree_node->is_leaf_node == 0 )\n\t{\n\t\tif( libfsrefs_block_tree_node_get_sub_node_at_offset(\n\t\t     block_tree_node,\n\t\t     offset,\n\t\t     &block_tree_node,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve sub node at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t\t function,\n\t\t\t offset,\n\t\t\t offset );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( block_tree_node == NULL )\n\t\t{\n\t\t\treturn( 0 );\n\t\t}\n\t}\n\tif( libfsrefs_block_tree_node_get_leaf_value_at_offset(\n\t     block_tree_node,\n\t     offset,\n\t     &safe_block_descriptor,\n\t     &safe_block_offset,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve leaf value at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t function,\n\t\t offset,\n\t\t offset );\n\n\t\treturn( -1 );\n\t}\n\t*block_descriptor = safe_block_descriptor;\n\t*block_offset     = safe_block_offset;\n\n\tif( safe_block_descriptor == NULL )\n\t{\n\t\treturn( 0 );\n\t}\n\treturn( 1 );\n}\n\n/* Inserts the block descriptor for a specific offset\n * Returns 1 if successful, 0 if already set or -1 on error\n */\nint libfsrefs_block_tree_insert_block_descriptor_by_offset(\n     libfsrefs_block_tree_t *block_tree,\n     off64_t offset,\n     libfsrefs_block_descriptor_t *block_descriptor,\n     int *leaf_value_index,\n     libfsrefs_block_tree_node_t **leaf_block_tree_node,\n     libfsrefs_block_descriptor_t **existing_block_descriptor,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_block_descriptor_t *safe_block_descriptor = NULL;\n\tlibfsrefs_block_tree_node_t *block_tree_node        = NULL;\n\tlibfsrefs_block_tree_node_t *safe_block_tree_node   = NULL;\n\tlibfsrefs_block_tree_node_t *sub_block_tree_node    = NULL;\n\tstatic char *function                               = \"libfsrefs_block_tree_insert_block_descriptor_by_offset\";\n\toff64_t block_offset                                = 0;\n\toff64_t sub_node_index                              = 0;\n\toff64_t sub_node_offset                             = 0;\n\n\tif( block_tree == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( leaf_value_index == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid leaf value index.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( leaf_block_tree_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid leaf block tree node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( existing_block_descriptor == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid existing block descriptor.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsafe_block_tree_node = block_tree->root_node;\n\n\twhile( safe_block_tree_node->is_leaf_node == 0 )\n\t{\n\t\tif( libfsrefs_block_tree_node_get_sub_node_at_offset(\n\t\t     safe_block_tree_node,\n\t\t     offset,\n\t\t     &block_tree_node,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve sub node at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t\t function,\n\t\t\t offset,\n\t\t\t offset );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( block_tree_node == NULL )\n\t\t{\n\t\t\tsub_node_offset = offset - safe_block_tree_node->start_offset;\n\n\t\t\tsub_node_index  = sub_node_offset / safe_block_tree_node->sub_node_size;\n\t\t\tsub_node_offset = safe_block_tree_node->start_offset + ( sub_node_index * safe_block_tree_node->sub_node_size );\n\n\t\t\tif( libfsrefs_block_tree_node_initialize(\n\t\t\t     &sub_block_tree_node,\n\t\t\t     sub_node_offset,\n\t\t\t     safe_block_tree_node->sub_node_size,\n\t\t\t     block_tree->leaf_value_size,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t\t \"%s: unable to create sub node.\",\n\t\t\t\t function );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tif( libfsrefs_block_tree_node_set_sub_node_at_offset(\n\t\t\t     safe_block_tree_node,\n\t\t\t     offset,\n\t\t\t     sub_block_tree_node,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t\t \"%s: unable to set sub node at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t\t\t function,\n\t\t\t\t offset,\n\t\t\t\t offset );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tblock_tree_node     = sub_block_tree_node;\n\t\t\tsub_block_tree_node = NULL;\n\t\t}\n\t\tsafe_block_tree_node = block_tree_node;\n\t}\n\t*leaf_block_tree_node = safe_block_tree_node;\n\n\tif( libfsrefs_block_tree_node_get_leaf_value_at_offset(\n\t     safe_block_tree_node,\n\t     offset,\n\t     &safe_block_descriptor,\n\t     &block_offset,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve leaf value at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t function,\n\t\t offset,\n\t\t offset );\n\n\t\tgoto on_error;\n\t}\n\tif( safe_block_descriptor != NULL )\n\t{\n\t\t*existing_block_descriptor = safe_block_descriptor;\n\n\t\treturn( 0 );\n\t}\n\tif( libfsrefs_block_tree_node_set_leaf_value_at_offset(\n\t     safe_block_tree_node,\n\t     offset,\n\t     block_descriptor,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to set leaf value at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t function,\n\t\t offset,\n\t\t offset );\n\n\t\tgoto on_error;\n\t}\n\t*leaf_value_index = (int) ( offset / block_tree->leaf_value_size );\n\n\treturn( 1 );\n\non_error:\n\tif( sub_block_tree_node != NULL )\n\t{\n\t\tlibfsrefs_block_tree_node_free(\n\t\t &sub_block_tree_node,\n\t\t NULL,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_block_tree.h",
    "content": "/*\n * Block tree functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_BLOCK_TREE_H )\n#define _LIBFSREFS_BLOCK_TREE_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_block_descriptor.h\"\n#include \"libfsrefs_block_tree_node.h\"\n#include \"libfsrefs_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_block_tree libfsrefs_block_tree_t;\n\nstruct libfsrefs_block_tree\n{\n\t/* The block tree root node\n\t */\n\tlibfsrefs_block_tree_node_t *root_node;\n\n\t/* The leaf value size\n\t */\n\tsize64_t leaf_value_size;\n};\n\nint libfsrefs_block_tree_initialize(\n     libfsrefs_block_tree_t **block_tree,\n     size64_t size,\n     size64_t leaf_value_size,\n     libcerror_error_t **error );\n\nint libfsrefs_block_tree_free(\n     libfsrefs_block_tree_t **block_tree,\n     int (*value_free_function)(\n            intptr_t **value,\n            libcerror_error_t **error ),\n     libcerror_error_t **error );\n\nint libfsrefs_block_tree_get_block_descriptor_by_offset(\n     libfsrefs_block_tree_t *block_tree,\n     off64_t offset,\n     libfsrefs_block_descriptor_t **block_descriptor,\n     off64_t *block_offset,\n     libcerror_error_t **error );\n\nint libfsrefs_block_tree_insert_block_descriptor_by_offset(\n     libfsrefs_block_tree_t *block_tree,\n     off64_t offset,\n     libfsrefs_block_descriptor_t *block_descriptor,\n     int *leaf_value_index,\n     libfsrefs_block_tree_node_t **leaf_block_tree_node,\n     libfsrefs_block_descriptor_t **existing_block_descriptor,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_BLOCK_TREE_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_block_tree_node.c",
    "content": "/*\n * Block tree node functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_block_tree_node.h\"\n#include \"libfsrefs_definitions.h\"\n#include \"libfsrefs_libcerror.h\"\n\n/* Creates a block tree node\n * Make sure the value block_tree_node is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_block_tree_node_initialize(\n     libfsrefs_block_tree_node_t **block_tree_node,\n     off64_t offset,\n     size64_t size,\n     size64_t leaf_value_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function  = \"libfsrefs_block_tree_node_initialize\";\n\tsize64_t sub_node_size = 0;\n\n\tif( block_tree_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *block_tree_node != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid block tree node value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( offset < 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid offset value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( size == 0 )\n\t || ( size > (size64_t) ( INT64_MAX - offset ) ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( leaf_value_size == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid leaf value size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*block_tree_node = memory_allocate_structure(\n\t                    libfsrefs_block_tree_node_t );\n\n\tif( *block_tree_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create block tree node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *block_tree_node,\n\t     0,\n\t     sizeof( libfsrefs_block_tree_node_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear block tree node.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *block_tree_node );\n\n\t\t*block_tree_node = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t     &( ( *block_tree_node )->sub_nodes_array ),\n\t     LIBFSREFS_BLOCK_TREE_NUMBER_OF_SUB_NODES,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create sub nodes array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tsub_node_size = leaf_value_size;\n\n\twhile( ( size / sub_node_size ) > LIBFSREFS_BLOCK_TREE_NUMBER_OF_SUB_NODES )\n\t{\n\t\tsub_node_size *= LIBFSREFS_BLOCK_TREE_NUMBER_OF_SUB_NODES;\n\t}\n\t( *block_tree_node )->start_offset  = offset;\n\t( *block_tree_node )->end_offset    = offset + size;\n\t( *block_tree_node )->size          = size;\n\t( *block_tree_node )->sub_node_size = sub_node_size;\n\n\tif( sub_node_size == leaf_value_size )\n\t{\n\t\t( *block_tree_node )->is_leaf_node = 1;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *block_tree_node != NULL )\n\t{\n\t\tmemory_free(\n\t\t *block_tree_node );\n\n\t\t*block_tree_node = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a block tree node\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_block_tree_node_free(\n     libfsrefs_block_tree_node_t **block_tree_node,\n     int (*value_free_function)(\n            intptr_t **value,\n            libcerror_error_t **error ),\n     libcerror_error_t **error )\n{\n\tlibfsrefs_block_tree_node_t *sub_block_tree_node = NULL;\n\tstatic char *function                            = \"libfsrefs_block_tree_node_free\";\n\tint result                                       = 1;\n\tint sub_node_index                               = 0;\n\n\tif( block_tree_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *block_tree_node != NULL )\n\t{\n\t\tif( ( *block_tree_node )->is_leaf_node != 0 )\n\t\t{\n\t\t\tif( libcdata_array_free(\n\t\t\t     &( ( *block_tree_node )->sub_nodes_array ),\n\t\t\t     value_free_function,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t\t \"%s: unable to free sub nodes array.\",\n\t\t\t\t function );\n\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor( sub_node_index = 0;\n\t\t\t     sub_node_index < LIBFSREFS_BLOCK_TREE_NUMBER_OF_SUB_NODES;\n\t\t\t     sub_node_index++ )\n\t\t\t{\n\t\t\t\tif( libcdata_array_get_entry_by_index(\n\t\t\t\t     ( *block_tree_node )->sub_nodes_array,\n\t\t\t\t     sub_node_index,\n\t\t\t\t     (intptr_t **) &sub_block_tree_node,\n\t\t\t\t     error ) != 1 )\n\t\t\t\t{\n\t\t\t\t\tlibcerror_error_set(\n\t\t\t\t\t error,\n\t\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t\t\t \"%s: unable to retrieve sub node: %d.\",\n\t\t\t\t\t function,\n\t\t\t\t\t sub_node_index );\n\n\t\t\t\t\tresult = -1;\n\t\t\t\t}\n\t\t\t\tif( libfsrefs_block_tree_node_free(\n\t\t\t\t     &sub_block_tree_node,\n\t\t\t\t     value_free_function,\n\t\t\t\t     error ) != 1 )\n\t\t\t\t{\n\t\t\t\t\tlibcerror_error_set(\n\t\t\t\t\t error,\n\t\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t\t\t \"%s: unable to free sub node: %d.\",\n\t\t\t\t\t function,\n\t\t\t\t\t sub_node_index );\n\n\t\t\t\t\tresult = -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif( libcdata_array_free(\n\t\t\t     &( ( *block_tree_node )->sub_nodes_array ),\n\t\t\t     NULL,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t\t \"%s: unable to free sub nodes array.\",\n\t\t\t\t function );\n\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}\n\t\tmemory_free(\n\t\t *block_tree_node );\n\n\t\t*block_tree_node = NULL;\n\t}\n\treturn( result );\n}\n\n/* Retrieves the sub node for a specific offset\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_block_tree_node_get_sub_node_at_offset(\n     libfsrefs_block_tree_node_t *block_tree_node,\n     off64_t offset,\n     libfsrefs_block_tree_node_t **sub_block_tree_node,\n     libcerror_error_t **error )\n{\n\tstatic char *function  = \"libfsrefs_block_tree_node_get_sub_node_at_offset\";\n\toff64_t sub_node_index = 0;\n\n\tif( block_tree_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( block_tree_node->is_leaf_node != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree node - not a branch node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( offset < block_tree_node->start_offset )\n\t || ( offset >= block_tree_node->end_offset ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid offset value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsub_node_index = ( offset - block_tree_node->start_offset ) / block_tree_node->sub_node_size;\n\n\tif( ( sub_node_index < 0 )\n\t || ( sub_node_index > (off64_t) INT_MAX ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid sub node index value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_get_entry_by_index(\n\t     block_tree_node->sub_nodes_array,\n\t     (int) sub_node_index,\n\t     (intptr_t **) sub_block_tree_node,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve sub node: %\" PRIi64 \".\",\n\t\t function,\n\t\t sub_node_index );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Sets the sub node for a specific offset\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_block_tree_node_set_sub_node_at_offset(\n     libfsrefs_block_tree_node_t *block_tree_node,\n     off64_t offset,\n     libfsrefs_block_tree_node_t *sub_block_tree_node,\n     libcerror_error_t **error )\n{\n\tstatic char *function  = \"libfsrefs_block_tree_node_set_sub_node_at_offset\";\n\toff64_t sub_node_index = 0;\n\n\tif( block_tree_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( block_tree_node->is_leaf_node != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree node - not a branch node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( offset < block_tree_node->start_offset )\n\t || ( offset >= block_tree_node->end_offset ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid offset value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsub_node_index = ( offset - block_tree_node->start_offset ) / block_tree_node->sub_node_size;\n\n\tif( ( sub_node_index < 0 )\n\t || ( sub_node_index > (off64_t) INT_MAX ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid sub node index value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_set_entry_by_index(\n\t     block_tree_node->sub_nodes_array,\n\t     (int) sub_node_index,\n\t     (intptr_t *) sub_block_tree_node,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to set sub node: %\" PRIi64 \".\",\n\t\t function,\n\t\t sub_node_index );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Retrieves the leaf value for a specific offset\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_block_tree_node_get_leaf_value_at_offset(\n     libfsrefs_block_tree_node_t *block_tree_node,\n     off64_t offset,\n     libfsrefs_block_descriptor_t **block_descriptor,\n     off64_t *block_offset,\n     libcerror_error_t **error )\n{\n\tstatic char *function     = \"libfsrefs_block_tree_node_get_leaf_value_at_offset\";\n\toff64_t leaf_value_index  = 0;\n\toff64_t safe_block_offset = 0;\n\n\tif( block_tree_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( block_tree_node->is_leaf_node == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree node - not a leaf node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( offset < block_tree_node->start_offset )\n\t || ( offset >= block_tree_node->end_offset ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid offset value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( block_offset == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block offset.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsafe_block_offset = offset - block_tree_node->start_offset;\n\n\tleaf_value_index = safe_block_offset / block_tree_node->sub_node_size;\n\n\tif( ( leaf_value_index < 0 )\n\t || ( leaf_value_index > (off64_t) INT_MAX ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid leaf value index value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_get_entry_by_index(\n\t     block_tree_node->sub_nodes_array,\n\t     (int) leaf_value_index,\n\t     (intptr_t **) block_descriptor,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve leaf value: %\" PRIi64 \".\",\n\t\t function,\n\t\t leaf_value_index );\n\n\t\treturn( -1 );\n\t}\n\t*block_offset = safe_block_offset - ( leaf_value_index * block_tree_node->sub_node_size );\n\n\treturn( 1 );\n}\n\n/* Sets the leaf value for a specific offset\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_block_tree_node_set_leaf_value_at_offset(\n     libfsrefs_block_tree_node_t *block_tree_node,\n     off64_t offset,\n     libfsrefs_block_descriptor_t *block_descriptor,\n     libcerror_error_t **error )\n{\n\tstatic char *function    = \"libfsrefs_block_tree_node_set_leaf_value_at_offset\";\n\toff64_t leaf_value_index = 0;\n\n\tif( block_tree_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( block_tree_node->is_leaf_node == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block tree node - not a leaf node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( offset < block_tree_node->start_offset )\n\t || ( offset >= block_tree_node->end_offset ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid offset value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tleaf_value_index = ( offset - block_tree_node->start_offset ) / block_tree_node->sub_node_size;\n\n\tif( ( leaf_value_index < 0 )\n\t || ( leaf_value_index > (off64_t) INT_MAX ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid leaf value index value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_set_entry_by_index(\n\t     block_tree_node->sub_nodes_array,\n\t     (int) leaf_value_index,\n\t     (intptr_t *) block_descriptor,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to set leaf value: %\" PRIi64 \".\",\n\t\t function,\n\t\t leaf_value_index );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_block_tree_node.h",
    "content": "/*\n * Block tree node functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_BLOCK_TREE_NODE_H )\n#define _LIBFSREFS_BLOCK_TREE_NODE_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_block_descriptor.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcdata.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_block_tree_node libfsrefs_block_tree_node_t;\n\nstruct libfsrefs_block_tree_node\n{\n\t/* The (range) start offset\n\t */\n\toff64_t start_offset;\n\n\t/* The (range) end offset\n\t */\n\toff64_t end_offset;\n\n\t/* The (range) size\n\t */\n\toff64_t size;\n\n\t/* The sub node size\n\t */\n\tsize64_t sub_node_size;\n\n\t/* Sub branch or leaf nodes array\n\t */\n\tlibcdata_array_t *sub_nodes_array;\n\n\t/* Value to indicate the node is a leaf node\n\t */\n\tuint8_t is_leaf_node;\n};\n\nint libfsrefs_block_tree_node_initialize(\n     libfsrefs_block_tree_node_t **block_tree_node,\n     off64_t offset,\n     size64_t size,\n     size64_t leaf_value_size,\n     libcerror_error_t **error );\n\nint libfsrefs_block_tree_node_free(\n     libfsrefs_block_tree_node_t **block_tree_node,\n     int (*value_free_function)(\n            intptr_t **value,\n            libcerror_error_t **error ),\n     libcerror_error_t **error );\n\nint libfsrefs_block_tree_node_get_sub_node_at_offset(\n     libfsrefs_block_tree_node_t *block_tree_node,\n     off64_t offset,\n     libfsrefs_block_tree_node_t **sub_block_tree_node,\n     libcerror_error_t **error );\n\nint libfsrefs_block_tree_node_set_sub_node_at_offset(\n     libfsrefs_block_tree_node_t *block_tree_node,\n     off64_t offset,\n     libfsrefs_block_tree_node_t *sub_block_tree_node,\n     libcerror_error_t **error );\n\nint libfsrefs_block_tree_node_get_leaf_value_at_offset(\n     libfsrefs_block_tree_node_t *block_tree_node,\n     off64_t offset,\n     libfsrefs_block_descriptor_t **block_descriptor,\n     off64_t *block_offset,\n     libcerror_error_t **error );\n\nint libfsrefs_block_tree_node_set_leaf_value_at_offset(\n     libfsrefs_block_tree_node_t *block_tree_node,\n     off64_t offset,\n     libfsrefs_block_descriptor_t *block_descriptor,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_BLOCK_TREE_NODE_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_checkpoint.c",
    "content": "/*\n * Checkpoint (or level 1 metadata) functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_block_reference.h\"\n#include \"libfsrefs_checkpoint.h\"\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcdata.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n#include \"libfsrefs_metadata_block_header.h\"\n\n#include \"fsrefs_checkpoint.h\"\n#include \"fsrefs_metadata_block.h\"\n\n/* Creates a checkpoint\n * Make sure the value checkpoint is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_checkpoint_initialize(\n     libfsrefs_checkpoint_t **checkpoint,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_checkpoint_initialize\";\n\n\tif( checkpoint == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checkpoint.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *checkpoint != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid checkpoint value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*checkpoint = memory_allocate_structure(\n\t               libfsrefs_checkpoint_t );\n\n\tif( *checkpoint == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create checkpoint.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *checkpoint,\n\t     0,\n\t     sizeof( libfsrefs_checkpoint_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear checkpoint.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *checkpoint );\n\n\t\t*checkpoint = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t     &( ( *checkpoint )->block_references_array ),\n\t     0,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create block references array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *checkpoint != NULL )\n\t{\n\t\tmemory_free(\n\t\t *checkpoint );\n\n\t\t*checkpoint = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a checkpoint\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_checkpoint_free(\n     libfsrefs_checkpoint_t **checkpoint,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_checkpoint_free\";\n\tint result            = 1;\n\n\tif( checkpoint == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checkpoint.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *checkpoint != NULL )\n\t{\n\t\tif( libcdata_array_free(\n\t\t     &( ( *checkpoint )->block_references_array ),\n\t\t     (int (*)(intptr_t **, libcerror_error_t **)) &libfsrefs_block_reference_free,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free block references array.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t\tmemory_free(\n\t\t *checkpoint );\n\n\t\t*checkpoint = NULL;\n\t}\n\treturn( result );\n}\n\n/* Reads a checkpoint\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_checkpoint_read_data(\n     libfsrefs_checkpoint_t *checkpoint,\n     libfsrefs_io_handle_t *io_handle,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_block_reference_t *block_reference = NULL;\n\tstatic char *function                        = \"libfsrefs_checkpoint_read_data\";\n\tsize_t data_offset                           = 0;\n\tsize_t header_size                           = 0;\n\tsize_t trailer_size                          = 0;\n\tuint32_t block_reference_offset              = 0;\n\tuint32_t number_of_offsets                   = 0;\n\tuint32_t offset_index                        = 0;\n\tuint32_t offsets_data_offset                 = 0;\n\tuint32_t self_reference_data_offset          = 0;\n\tuint32_t self_reference_data_size            = 0;\n\tint entry_index                              = 0;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tuint64_t value_64bit                         = 0;\n\tuint32_t value_32bit                         = 0;\n\tuint16_t value_16bit                         = 0;\n#endif\n\n\tif( checkpoint == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checkpoint.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle->major_format_version == 1 )\n\t{\n\t\theader_size  = sizeof( fsrefs_metadata_block_header_v1_t );\n\t\ttrailer_size = sizeof( fsrefs_checkpoint_trailer_v1_t );\n\t}\n\telse if( io_handle->major_format_version == 3 )\n\t{\n\t\theader_size  = sizeof( fsrefs_metadata_block_header_v3_t );\n\t\ttrailer_size = sizeof( fsrefs_checkpoint_trailer_v3_t );\n\t}\n\telse\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported format version: %\" PRIu8 \".%\" PRIu8 \".\",\n\t\t function,\n\t\t io_handle->major_format_version,\n\t\t io_handle->minor_format_version );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( data_size < sizeof( fsrefs_checkpoint_header_t ) )\n\t || ( data_size > (size_t) SSIZE_MAX ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: checkpoint header data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t sizeof( fsrefs_checkpoint_header_t ),\n\t\t 0 );\n\t}\n#endif\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_checkpoint_header_t *) data )->self_reference_data_offset,\n\t self_reference_data_offset );\n\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_checkpoint_header_t *) data )->self_reference_data_size,\n\t self_reference_data_size );\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_checkpoint_header_t *) data )->unknown1,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown1\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tbyte_stream_copy_to_uint16_little_endian(\n\t\t ( (fsrefs_checkpoint_header_t *) data )->major_format_version,\n\t\t value_16bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: major format version\\t\\t\\t: %\" PRIu16 \"\\n\",\n\t\t function,\n\t\t value_16bit );\n\n\t\tbyte_stream_copy_to_uint16_little_endian(\n\t\t ( (fsrefs_checkpoint_header_t *) data )->minor_format_version,\n\t\t value_16bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: minor format version\\t\\t\\t: %\" PRIu16 \"\\n\",\n\t\t function,\n\t\t value_16bit );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: self reference data offset\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t self_reference_data_offset );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: self reference data size\\t\\t: %\" PRIu32 \"\\n\",\n\t\t function,\n\t\t self_reference_data_size );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tdata_offset = sizeof( fsrefs_checkpoint_header_t );\n\n\tif( ( self_reference_data_offset < ( data_offset + header_size ) )\n\t || ( self_reference_data_offset >= ( data_size + header_size ) ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid self reference data offset value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tself_reference_data_offset -= header_size;\n\n\tif( ( data_size - data_offset ) < trailer_size )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: checkpoint trailer data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t &( data[ data_offset ] ),\n\t\t trailer_size,\n\t\t 0 );\n\t}\n#endif\n\tif( io_handle->major_format_version == 1 )\n\t{\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_checkpoint_trailer_v1_t *) &( data[ data_offset ] ) )->unknown2,\n\t\t checkpoint->sequence_number );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_checkpoint_trailer_v1_t *) &( data[ data_offset ] ) )->number_of_offsets,\n\t\t number_of_offsets );\n\t}\n\telse if( io_handle->major_format_version == 3 )\n\t{\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_checkpoint_trailer_v3_t *) &( data[ data_offset ] ) )->unknown2,\n\t\t checkpoint->sequence_number );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_checkpoint_trailer_v3_t *) &( data[ data_offset ] ) )->number_of_offsets,\n\t\t number_of_offsets );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tif( io_handle->major_format_version == 1 )\n\t\t{\n\t\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t\t ( (fsrefs_checkpoint_trailer_v1_t *) &( data[ data_offset ] ) )->unknown2,\n\t\t\t value_64bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown2\\t\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t\t function,\n\t\t\t value_64bit );\n\n\t\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t\t ( (fsrefs_checkpoint_trailer_v1_t *) &( data[ data_offset ] ) )->unknown3,\n\t\t\t value_32bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown3\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t\t function,\n\t\t\t value_32bit );\n\n\t\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t\t ( (fsrefs_checkpoint_trailer_v1_t *) &( data[ data_offset ] ) )->unknown4,\n\t\t\t value_32bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown4\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t\t function,\n\t\t\t value_32bit );\n\n\t\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t\t ( (fsrefs_checkpoint_trailer_v1_t *) &( data[ data_offset ] ) )->unknown5,\n\t\t\t value_64bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown5\\t\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t\t function,\n\t\t\t value_64bit );\n\t\t}\n\t\telse if( io_handle->major_format_version == 3 )\n\t\t{\n\t\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t\t ( (fsrefs_checkpoint_trailer_v3_t *) &( data[ data_offset ] ) )->unknown2,\n\t\t\t value_64bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown2\\t\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t\t function,\n\t\t\t value_64bit );\n\n\t\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t\t ( (fsrefs_checkpoint_trailer_v3_t *) &( data[ data_offset ] ) )->unknown3,\n\t\t\t value_64bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown3\\t\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t\t function,\n\t\t\t value_64bit );\n\n\t\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t\t ( (fsrefs_checkpoint_trailer_v3_t *) &( data[ data_offset ] ) )->unknown4,\n\t\t\t value_32bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown4\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t\t function,\n\t\t\t value_32bit );\n\n\t\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t\t ( (fsrefs_checkpoint_trailer_v3_t *) &( data[ data_offset ] ) )->unknown5,\n\t\t\t value_32bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown5\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t\t function,\n\t\t\t value_32bit );\n\n\t\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t\t ( (fsrefs_checkpoint_trailer_v3_t *) &( data[ data_offset ] ) )->unknown6,\n\t\t\t value_64bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown6\\t\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t\t function,\n\t\t\t value_64bit );\n\n\t\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t\t ( (fsrefs_checkpoint_trailer_v3_t *) &( data[ data_offset ] ) )->unknown7,\n\t\t\t value_64bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown7\\t\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t\t function,\n\t\t\t value_64bit );\n\n\t\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t\t ( (fsrefs_checkpoint_trailer_v3_t *) &( data[ data_offset ] ) )->unknown8,\n\t\t\t value_32bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown8\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t\t function,\n\t\t\t value_32bit );\n\n\t\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t\t ( (fsrefs_checkpoint_trailer_v3_t *) &( data[ data_offset ] ) )->unknown9,\n\t\t\t value_32bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown9\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t\t function,\n\t\t\t value_32bit );\n\t\t}\n\t\tlibcnotify_printf(\n\t\t \"%s: number of offsets\\t\\t\\t: %\" PRIu32 \"\\n\",\n\t\t function,\n\t\t number_of_offsets );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tdata_offset += trailer_size;\n\n\tif( ( ( data_size - data_offset ) / 4 ) < number_of_offsets )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid number of offsets value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\toffsets_data_offset = data_offset;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: offsets data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t &( data[ data_offset ] ),\n\t\t number_of_offsets * 4,\n\t\t 0 );\n\t}\n#endif\n\tdata_offset += number_of_offsets * 4;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tif( self_reference_data_offset > data_offset )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown4\\n\",\n\t\t\t function );\n\t\t\tlibcnotify_print_data(\n\t\t\t &( data[ data_offset ] ),\n\t\t\t (size_t) self_reference_data_offset - data_offset,\n\t\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t\t}\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tdata_offset = self_reference_data_offset;\n\n\tif( ( data_size - data_offset ) < self_reference_data_size )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid self reference data size value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: self reference data\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t &( data[ data_offset ] ),\n\t\t self_reference_data_size,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\n\t\tif( libfsrefs_block_reference_initialize(\n\t\t     &block_reference,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create block reference.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_block_reference_read_data(\n\t\t     block_reference,\n\t\t     io_handle,\n\t\t     &( data[ data_offset ] ),\n\t\t     self_reference_data_size,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t \"%s: unable to read block reference.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_block_reference_free(\n\t\t     &block_reference,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free block reference.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tfor( offset_index = 0;\n\t     offset_index < number_of_offsets;\n\t     offset_index++ )\n\t{\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t &( data[ offsets_data_offset ] ),\n\t\t block_reference_offset );\n\n\t\toffsets_data_offset += 4;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\t\tif( libcnotify_verbose != 0 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: block reference: %02\" PRIu32 \" offset\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t\t function,\n\t\t\t offset_index,\n\t\t\t block_reference_offset );\n\t\t}\n#endif\n\t\tif( ( block_reference_offset < ( data_offset + header_size ) )\n\t\t || ( block_reference_offset >= ( data_size + header_size ) ) )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t\t \"%s: invalid block reference offset value out of bounds.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tblock_reference_offset -= header_size;\n\n\t\tif( libfsrefs_block_reference_initialize(\n\t\t     &block_reference,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create block reference.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_block_reference_read_data(\n\t\t     block_reference,\n\t\t     io_handle,\n\t\t     &( data[ block_reference_offset ] ),\n\t\t     data_size - block_reference_offset,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t \"%s: unable to read block reference.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libcdata_array_append_entry(\n\t\t     checkpoint->block_references_array,\n\t\t     &entry_index,\n\t\t     (intptr_t *) block_reference,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_APPEND_FAILED,\n\t\t\t \"%s: unable to append block reference to array.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tblock_reference = NULL;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( block_reference != NULL )\n\t{\n\t\tlibfsrefs_block_reference_free(\n\t\t &block_reference,\n\t\t NULL );\n\t}\n\tlibcdata_array_empty(\n\t checkpoint->block_references_array,\n\t (int (*)(intptr_t **, libcerror_error_t **)) &libfsrefs_block_reference_free,\n\t NULL );\n\n\treturn( -1 );\n}\n\n/* Reads a checkpoint\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_checkpoint_read_file_io_handle(\n     libfsrefs_checkpoint_t *checkpoint,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     off64_t file_offset,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_metadata_block_header_t *metadata_block_header = NULL;\n\tuint8_t *metadata_block_data                             = NULL;\n\tstatic char *function                                    = \"libfsrefs_checkpoint_read_file_io_handle\";\n\tsize_t header_size                                       = 0;\n\tssize_t read_count                                       = 0;\n\n\tif( checkpoint == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checkpoint.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle->major_format_version == 1 )\n\t{\n\t\theader_size = sizeof( fsrefs_metadata_block_header_v1_t );\n\t}\n\telse if( io_handle->major_format_version == 3 )\n\t{\n\t\theader_size = sizeof( fsrefs_metadata_block_header_v3_t );\n\t}\n\telse\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported format version: %\" PRIu8 \".%\" PRIu8 \".\",\n\t\t function,\n\t\t io_handle->major_format_version,\n\t\t io_handle->minor_format_version );\n\n\t\treturn( -1 );\n\t}\n\tif( ( io_handle->metadata_block_size < header_size )\n\t || ( io_handle->metadata_block_size > MEMORY_MAXIMUM_ALLOCATION_SIZE ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid IO handle - metadata block size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tmetadata_block_data = (uint8_t *) memory_allocate(\n\t                                   io_handle->metadata_block_size );\n\n\tif( metadata_block_data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create metadata block data.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tread_count = libbfio_handle_read_buffer_at_offset(\n\t              file_io_handle,\n\t              metadata_block_data,\n\t              (size_t) io_handle->metadata_block_size,\n\t              file_offset,\n\t              error );\n\n\tif( read_count != (ssize_t) io_handle->metadata_block_size )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read checkpoint metadata at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t function,\n\t\t file_offset,\n\t\t file_offset );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_metadata_block_header_initialize(\n\t     &metadata_block_header,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create metadata block header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_metadata_block_header_read_data(\n\t     metadata_block_header,\n\t     io_handle,\n\t     metadata_block_data,\n\t     header_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read metadata block header at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t function,\n\t\t file_offset,\n\t\t file_offset );\n\n\t\tgoto on_error;\n\t}\n\tfile_offset += header_size;\n\n\tif( io_handle->major_format_version == 3 )\n\t{\n\t\tif( memory_compare(\n\t\t     metadata_block_header->signature,\n\t\t     \"CHKP\",\n\t\t     4 ) != 0 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t\t \"%s: invalid metadata block signature.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( metadata_block_header->block_numbers[ 1 ] != 0 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t\t \"%s: invalid metadata block header - block number 2 value out of bounds.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( metadata_block_header->block_numbers[ 2 ] != 0 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t\t \"%s: invalid metadata block header - block number 3 value out of bounds.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( metadata_block_header->block_numbers[ 3 ] != 0 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t\t \"%s: invalid metadata block header - block number 4 value out of bounds.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( libfsrefs_metadata_block_header_free(\n\t     &metadata_block_header,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t \"%s: unable to free metadata block header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_checkpoint_read_data(\n\t     checkpoint,\n\t     io_handle,\n\t     &( metadata_block_data[ header_size ] ),\n\t     io_handle->metadata_block_size - header_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read checkpoint metadata.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tmemory_free(\n\t metadata_block_data );\n\n\treturn( 1 );\n\non_error:\n\tif( metadata_block_header != NULL )\n\t{\n\t\tlibfsrefs_metadata_block_header_free(\n\t\t &metadata_block_header,\n\t\t NULL );\n\t}\n\tif( metadata_block_data != NULL )\n\t{\n\t\tmemory_free(\n\t\t metadata_block_data );\n\t}\n\treturn( -1 );\n}\n\n/* Retrieves the number of ministore tree block references\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_checkpoint_get_number_of_ministore_tree_block_references(\n     libfsrefs_checkpoint_t *checkpoint,\n     int *number_of_block_references,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_checkpoint_get_number_of_ministore_tree_block_references\";\n\n\tif( checkpoint == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checkpoint.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_get_number_of_entries(\n\t     checkpoint->block_references_array,\n\t     number_of_block_references,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of entries from block references array.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Retrieves a specific ministore tree block reference\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_checkpoint_get_ministore_tree_block_reference_by_index(\n     libfsrefs_checkpoint_t *checkpoint,\n     int block_reference_index,\n     libfsrefs_block_reference_t **block_reference,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_checkpoint_get_ministore_tree_block_reference_by_index\";\n\n\tif( checkpoint == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid checkpoint.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_get_entry_by_index(\n\t     checkpoint->block_references_array,\n\t     block_reference_index,\n\t     (intptr_t **) block_reference,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve entry: %d from block references array.\",\n\t\t function,\n\t\t block_reference_index );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_checkpoint.h",
    "content": "/*\n * Checkpoint (or level 1 metadata) functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_CHECKPOINT_H )\n#define _LIBFSREFS_CHECKPOINT_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_block_reference.h\"\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcdata.h\"\n#include \"libfsrefs_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_checkpoint libfsrefs_checkpoint_t;\n\nstruct libfsrefs_checkpoint\n{\n\t/* The sequence number\n\t */\n\tuint64_t sequence_number;\n\n\t/* The (ministore tree) block references array\n\t */\n\tlibcdata_array_t *block_references_array;\n};\n\nint libfsrefs_checkpoint_initialize(\n     libfsrefs_checkpoint_t **checkpoint,\n     libcerror_error_t **error );\n\nint libfsrefs_checkpoint_free(\n     libfsrefs_checkpoint_t **checkpoint,\n     libcerror_error_t **error );\n\nint libfsrefs_checkpoint_read_data(\n     libfsrefs_checkpoint_t *checkpoint,\n     libfsrefs_io_handle_t *io_handle,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error );\n\nint libfsrefs_checkpoint_read_file_io_handle(\n     libfsrefs_checkpoint_t *checkpoint,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     off64_t file_offset,\n     libcerror_error_t **error );\n\nint libfsrefs_checkpoint_get_number_of_ministore_tree_block_references(\n     libfsrefs_checkpoint_t *checkpoint,\n     int *number_of_block_references,\n     libcerror_error_t **error );\n\nint libfsrefs_checkpoint_get_ministore_tree_block_reference_by_index(\n     libfsrefs_checkpoint_t *checkpoint,\n     int block_reference_index,\n     libfsrefs_block_reference_t **block_reference,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_CHECKPOINT_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_data_run.c",
    "content": "/*\n * Data run functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_data_run.h\"\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n\n#include \"fsrefs_directory_object.h\"\n\n/* Creates a data run\n * Make sure the value data_run is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_data_run_initialize(\n     libfsrefs_data_run_t **data_run,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_data_run_initialize\";\n\n\tif( data_run == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid data run.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *data_run != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid data run value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*data_run = memory_allocate_structure(\n\t             libfsrefs_data_run_t );\n\n\tif( *data_run == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create data run.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *data_run,\n\t     0,\n\t     sizeof( libfsrefs_data_run_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear data run.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *data_run != NULL )\n\t{\n\t\tmemory_free(\n\t\t *data_run );\n\n\t\t*data_run = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a data run\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_data_run_free(\n     libfsrefs_data_run_t **data_run,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_data_run_free\";\n\n\tif( data_run == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid data run.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *data_run != NULL )\n\t{\n\t\tmemory_free(\n\t\t *data_run );\n\n\t\t*data_run = NULL;\n\t}\n\treturn( 1 );\n}\n\n/* Reads a data run\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_data_run_read_data(\n     libfsrefs_data_run_t *data_run,\n     libfsrefs_io_handle_t *io_handle,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_data_run_read_data\";\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tuint64_t value_64bit  = 0;\n#endif\n\n\tif( data_run == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid data run.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data_size != sizeof( fsrefs_data_run_t ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: data run data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t data_size,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_data_run_t *) data )->logical_offset,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: logical offset\\t\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_data_run_t *) data )->size,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: size\\t\\t\\t\\t\\t: %\" PRIu64 \" blocks\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_data_run_t *) data )->physical_offset,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: physical offset\\t\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_data_run_t *) data )->unknown1,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown1\\t\\t\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\treturn( 1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_data_run.h",
    "content": "/*\n * Data run functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_DATA_RUN_H )\n#define _LIBFSREFS_DATA_RUN_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_data_run libfsrefs_data_run_t;\n\nstruct libfsrefs_data_run\n{\n\t/* The start block number\n\t */\n\tuint64_t start_block_number;\n\n\t/* The number of blocks\n\t */\n\tuint64_t number_of_blocks;\n};\n\nint libfsrefs_data_run_initialize(\n     libfsrefs_data_run_t **data_run,\n     libcerror_error_t **error );\n\nint libfsrefs_data_run_free(\n     libfsrefs_data_run_t **data_run,\n     libcerror_error_t **error );\n\nint libfsrefs_data_run_read_data(\n     libfsrefs_data_run_t *data_run,\n     libfsrefs_io_handle_t *io_handle,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_DATA_RUN_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_debug.c",
    "content": "/*\n * Debug functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <memory.h>\n#include <narrow_string.h>\n#include <system_string.h>\n#include <types.h>\n#include <wide_string.h>\n\n#include \"libfsrefs_debug.h\"\n#include \"libfsrefs_definitions.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n#include \"libfsrefs_libfdatetime.h\"\n#include \"libfsrefs_libfguid.h\"\n#include \"libfsrefs_libuna.h\"\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\n/* Prints the file attribute flags\n */\nvoid libfsrefs_debug_print_file_attribute_flags(\n      uint32_t file_attribute_flags )\n{\n\tif( ( file_attribute_flags & LIBFSREFS_FILE_ATTRIBUTE_FLAG_READ_ONLY ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs read-only (FILE_ATTRIBUTE_READ_ONLY)\\n\" );\n\t}\n\tif( ( file_attribute_flags & LIBFSREFS_FILE_ATTRIBUTE_FLAG_HIDDEN ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs hidden (FILE_ATTRIBUTE_HIDDEN)\\n\" );\n\t}\n\tif( ( file_attribute_flags & LIBFSREFS_FILE_ATTRIBUTE_FLAG_SYSTEM ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs system (FILE_ATTRIBUTE_SYSTEM)\\n\" );\n\t}\n\n\tif( ( file_attribute_flags & LIBFSREFS_FILE_ATTRIBUTE_FLAG_DIRECTORY ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs directory (FILE_ATTRIBUTE_DIRECTORY)\\n\" );\n\t}\n\tif( ( file_attribute_flags & LIBFSREFS_FILE_ATTRIBUTE_FLAG_ARCHIVE ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tShould be archived (FILE_ATTRIBUTE_ARCHIVE)\\n\" );\n\t}\n\tif( ( file_attribute_flags & LIBFSREFS_FILE_ATTRIBUTE_FLAG_DEVICE ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs device (FILE_ATTRIBUTE_DEVICE)\\n\" );\n\t}\n\tif( ( file_attribute_flags & LIBFSREFS_FILE_ATTRIBUTE_FLAG_NORMAL ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs normal (FILE_ATTRIBUTE_NORMAL)\\n\" );\n\t}\n\tif( ( file_attribute_flags & LIBFSREFS_FILE_ATTRIBUTE_FLAG_TEMPORARY ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs temporary (FILE_ATTRIBUTE_TEMPORARY)\\n\" );\n\t}\n\tif( ( file_attribute_flags & LIBFSREFS_FILE_ATTRIBUTE_FLAG_SPARSE_FILE ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs a sparse file (FILE_ATTRIBUTE_SPARSE_FILE)\\n\" );\n\t}\n\tif( ( file_attribute_flags & LIBFSREFS_FILE_ATTRIBUTE_FLAG_REPARSE_POINT ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs a reparse point or symbolic link (FILE_ATTRIBUTE_FLAG_REPARSE_POINT)\\n\" );\n\t}\n\tif( ( file_attribute_flags & LIBFSREFS_FILE_ATTRIBUTE_FLAG_COMPRESSED ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs compressed (FILE_ATTRIBUTE_COMPRESSED)\\n\" );\n\t}\n\tif( ( file_attribute_flags & LIBFSREFS_FILE_ATTRIBUTE_FLAG_OFFLINE ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs offline (FILE_ATTRIBUTE_OFFLINE)\\n\" );\n\t}\n\tif( ( file_attribute_flags & LIBFSREFS_FILE_ATTRIBUTE_FLAG_NOT_CONTENT_INDEXED ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tContent should not be indexed (FILE_ATTRIBUTE_NOT_CONTENT_INDEXED)\\n\" );\n\t}\n\tif( ( file_attribute_flags & LIBFSREFS_FILE_ATTRIBUTE_FLAG_ENCRYPTED ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs encrypted (FILE_ATTRIBUTE_ENCRYPTED)\\n\" );\n\t}\n\n\tif( ( file_attribute_flags & LIBFSREFS_FILE_ATTRIBUTE_FLAG_VIRTUAL ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs virtual (FILE_ATTRIBUTE_VIRTUAL)\\n\" );\n\t}\n\n\tif( ( file_attribute_flags & 0x10000000UL ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs directory (0x10000000)\\n\" );\n\t}\n\tif( ( file_attribute_flags & 0x20000000UL ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs index view (0x20000000)\\n\" );\n\t}\n}\n\n/* Prints the node record flags\n */\nvoid libfsrefs_debug_print_node_record_flags(\n      uint16_t node_record_flags )\n{\n\tif( ( node_record_flags & 0x0008 ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tHas embedded Ministore node (0x0008)\\n\" );\n\t}\n}\n\n/* Prints the node type flags\n */\nvoid libfsrefs_debug_print_node_type_flags(\n      uint8_t node_type_flags )\n{\n\tif( ( node_type_flags & 0x01 ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs branch (0x01)\\n\" );\n\t}\n\tif( ( node_type_flags & 0x02 ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs root (0x02)\\n\" );\n\t}\n\tif( ( node_type_flags & 0x04 ) != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"\\tIs stream (0x04)\\n\" );\n\t}\n}\n\n/* Prints a FILETIME value\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_debug_print_filetime_value(\n     const char *function_name,\n     const char *value_name,\n     const uint8_t *byte_stream,\n     size_t byte_stream_size,\n     int byte_order,\n     uint32_t string_format_flags,\n     libcerror_error_t **error )\n{\n\tchar date_time_string[ 32 ];\n\n\tlibfdatetime_filetime_t *filetime = NULL;\n\tstatic char *function             = \"libfsrefs_debug_print_filetime_value\";\n\n\tif( libfdatetime_filetime_initialize(\n\t     &filetime,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create filetime.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfdatetime_filetime_copy_from_byte_stream(\n\t     filetime,\n\t     byte_stream,\n\t     byte_stream_size,\n\t     byte_order,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_COPY_FAILED,\n\t\t \"%s: unable to copy byte stream to filetime.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfdatetime_filetime_copy_to_utf8_string(\n\t     filetime,\n\t     (uint8_t *) date_time_string,\n\t     32,\n\t     string_format_flags,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_COPY_FAILED,\n\t\t \"%s: unable to copy filetime to string.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tlibcnotify_printf(\n\t \"%s: %s: %s UTC\\n\",\n\t function_name,\n\t value_name,\n\t date_time_string );\n\n\tif( libfdatetime_filetime_free(\n\t     &filetime,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t \"%s: unable to free filetime.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( filetime != NULL )\n\t{\n\t\tlibfdatetime_filetime_free(\n\t\t &filetime,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}\n\n/* Prints a GUID/UUID value\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_debug_print_guid_value(\n     const char *function_name,\n     const char *value_name,\n     const uint8_t *byte_stream,\n     size_t byte_stream_size,\n     int byte_order,\n     uint32_t string_format_flags,\n     libcerror_error_t **error )\n{\n\tsystem_character_t guid_string[ 48 ];\n\n\tlibfguid_identifier_t *guid = NULL;\n\tstatic char *function       = \"libfsrefs_debug_print_guid_value\";\n\n\tif( libfguid_identifier_initialize(\n\t     &guid,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create GUID.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfguid_identifier_copy_from_byte_stream(\n\t     guid,\n\t     byte_stream,\n\t     byte_stream_size,\n\t     byte_order,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_COPY_FAILED,\n\t\t \"%s: unable to copy byte stream to GUID.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfguid_identifier_copy_to_utf8_string(\n\t     guid,\n\t     (uint8_t *) guid_string,\n\t     48,\n\t     string_format_flags,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_COPY_FAILED,\n\t\t \"%s: unable to copy GUID to string.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tlibcnotify_printf(\n\t \"%s: %s: %s\\n\",\n\t function_name,\n\t value_name,\n\t guid_string );\n\n\tif( libfguid_identifier_free(\n\t     &guid,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t \"%s: unable to free GUID.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( guid != NULL )\n\t{\n\t\tlibfguid_identifier_free(\n\t\t &guid,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}\n\n/* Prints an UTF-16 string value\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_debug_print_utf16_string_value(\n     const char *function_name,\n     const char *value_name,\n     const uint8_t *byte_stream,\n     size_t byte_stream_size,\n     int byte_order,\n     libcerror_error_t **error )\n{\n\tsystem_character_t *string = NULL;\n\tstatic char *function      = \"libfsrefs_debug_print_utf16_string_value\";\n\tsize_t string_size         = 0;\n\tint result                 = 0;\n\n\tif( ( byte_stream == NULL )\n\t || ( byte_stream_size == 0 ) )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: %s:\\n\",\n\t\t function_name,\n\t\t value_name );\n\n\t\treturn( 1 );\n\t}\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tresult = libuna_utf16_string_size_from_utf16_stream(\n\t          byte_stream,\n\t          byte_stream_size,\n\t          byte_order,\n\t          &string_size,\n\t          error );\n#else\n\tresult = libuna_utf8_string_size_from_utf16_stream(\n\t          byte_stream,\n\t          byte_stream_size,\n\t          byte_order,\n\t          &string_size,\n\t          error );\n#endif\n\tif( result != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to determine size of string.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( string_size > ( (size_t) SSIZE_MAX / sizeof( system_character_t ) ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid string size value exceeds maximum.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tlibcnotify_printf(\n\t \"%s: %s:\",\n\t function_name,\n\t value_name );\n\n\tif( string_size > 0 )\n\t{\n\t\tstring = system_string_allocate(\n\t\t          string_size );\n\n\t\tif( string == NULL )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t\t \"%s: unable to create string.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\t\tresult = libuna_utf16_string_copy_from_utf16_stream(\n\t\t          (libuna_utf16_character_t *) string,\n\t\t          string_size,\n\t\t          byte_stream,\n\t\t          byte_stream_size,\n\t\t          byte_order,\n\t\t          error );\n#else\n\t\tresult = libuna_utf8_string_copy_from_utf16_stream(\n\t\t          (libuna_utf8_character_t *) string,\n\t\t          string_size,\n\t\t          byte_stream,\n\t\t          byte_stream_size,\n\t\t          byte_order,\n\t\t          error );\n#endif\n\t\tif( result != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t\t \"%s: unable to set string.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tlibcnotify_printf(\n\t\t \" %s\",\n\t\t string );\n\n\t\tmemory_free(\n\t\t string );\n\t}\n\tlibcnotify_printf(\n\t \"\\n\" );\n\n\treturn( 1 );\n\non_error:\n\tif( string != NULL )\n\t{\n\t\tmemory_free(\n\t\t string );\n\t}\n\treturn( -1 );\n}\n\n/* Prints the read offsets\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_debug_print_read_offsets(\n     libbfio_handle_t *file_io_handle,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_debug_print_read_offsets\";\n\toff64_t offset        = 0;\n\tsize64_t size         = 0;\n\tint number_of_offsets = 0;\n\tint offset_iterator   = 0;\n\n\tif( file_io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libbfio_handle_get_number_of_offsets_read(\n\t     file_io_handle,\n\t     &number_of_offsets,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of offsets read.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tlibcnotify_printf(\n\t \"Offsets read:\\n\" );\n\n\tfor( offset_iterator = 0;\n\t     offset_iterator < number_of_offsets;\n\t     offset_iterator++ )\n\t{\n\t\tif( libbfio_handle_get_offset_read(\n\t\t     file_io_handle,\n\t\t     offset_iterator,\n\t\t     &offset,\n\t\t     &size,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve offset: %d.\",\n\t\t\t function,\n\t\t\t ( offset_iterator + 1 ) );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tlibcnotify_printf(\n\t\t \"%08\" PRIi64 \" ( 0x%08\" PRIx64 \" ) - %08\" PRIi64 \" ( 0x%08\" PRIx64 \" ) size: %\" PRIu64 \"\\n\",\n\t\t offset,\n\t\t offset,\n\t\t offset + (off64_t) size,\n\t\t offset + (off64_t) size,\n\t\t size );\n\t}\n\tlibcnotify_printf(\n\t \"\\n\" );\n\n\treturn( 1 );\n}\n\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_debug.h",
    "content": "/*\n * Debug functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_DEBUG_H )\n#define _LIBFSREFS_DEBUG_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\nvoid libfsrefs_debug_print_file_attribute_flags(\n      uint32_t file_attribute_flags );\n\nvoid libfsrefs_debug_print_node_record_flags(\n      uint16_t node_record_flags );\n\nvoid libfsrefs_debug_print_node_type_flags(\n      uint8_t node_type_flags );\n\nint libfsrefs_debug_print_filetime_value(\n     const char *function_name,\n     const char *value_name,\n     const uint8_t *byte_stream,\n     size_t byte_stream_size,\n     int byte_order,\n     uint32_t string_format_flags,\n     libcerror_error_t **error );\n\nint libfsrefs_debug_print_guid_value(\n     const char *function_name,\n     const char *value_name,\n     const uint8_t *byte_stream,\n     size_t byte_stream_size,\n     int byte_order,\n     uint32_t string_format_flags,\n     libcerror_error_t **error );\n\nint libfsrefs_debug_print_utf16_string_value(\n     const char *function_name,\n     const char *value_name,\n     const uint8_t *byte_stream,\n     size_t byte_stream_size,\n     int byte_order,\n     libcerror_error_t **error );\n\nint libfsrefs_debug_print_read_offsets(\n     libbfio_handle_t *file_io_handle,\n     libcerror_error_t **error );\n\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_DEBUG_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_definitions.h.in",
    "content": "/*\n * The internal definitions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_INTERNAL_DEFINITIONS_H )\n#define _LIBFSREFS_INTERNAL_DEFINITIONS_H\n\n#include <common.h>\n#include <byte_stream.h>\n\n#define LIBFSREFS_ENDIAN_BIG\t\t\t\t\t_BYTE_STREAM_ENDIAN_BIG\n#define LIBFSREFS_ENDIAN_LITTLE\t\t\t\t\t_BYTE_STREAM_ENDIAN_LITTLE\n\n/* Define HAVE_LOCAL_LIBFSREFS for local use of libfsrefs\n */\n#if !defined( HAVE_LOCAL_LIBFSREFS )\n#include <libfsrefs/definitions.h>\n\n/* The definitions in <libfsrefs/definitions.h> are copied here\n * for local use of libfsrefs\n */\n#else\n#define LIBFSREFS_VERSION\t\t\t\t\t@VERSION@\n\n/* The version string\n */\n#define LIBFSREFS_VERSION_STRING\t\t\t\t\"@VERSION@\"\n\n/* The file access\n * bit 1        set to 1 for read access\n * bit 2        set to 1 for write access\n * bit 3-8      not used\n */\nenum LIBFSREFS_ACCESS_FLAGS\n{\n\tLIBFSREFS_ACCESS_FLAG_READ\t\t\t\t= 0x01,\n/* Reserved: not supported yet */\n\tLIBFSREFS_ACCESS_FLAG_WRITE\t\t\t\t= 0x02\n};\n\n/* The file access macros\n */\n#define LIBFSREFS_OPEN_READ\t\t\t\t\t( LIBFSREFS_ACCESS_FLAG_READ )\n/* Reserved: not supported yet */\n#define LIBFSREFS_OPEN_WRITE\t\t\t\t\t( LIBFSREFS_ACCESS_FLAG_WRITE )\n/* Reserved: not supported yet */\n#define LIBFSREFS_OPEN_READ_WRITE\t\t\t\t( LIBFSREFS_ACCESS_FLAG_READ | LIBFSREFS_ACCESS_FLAG_WRITE )\n\n/* The path segment separator\n */\n#define LIBFSREFS_SEPARATOR\t\t\t\t\t'\\\\'\n\n/* The file attribute flags\n */\nenum LIBFSREFS_FILE_ATTRIBUTE_FLAGS\n{\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_READ_ONLY\t\t\t= 0x00000001UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_HIDDEN\t\t\t= 0x00000002UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_SYSTEM\t\t\t= 0x00000004UL,\n\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_DIRECTORY\t\t\t= 0x00000010UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_ARCHIVE\t\t\t= 0x00000020UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_DEVICE\t\t\t= 0x00000040UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_NORMAL\t\t\t= 0x00000080UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_TEMPORARY\t\t\t= 0x00000100UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_SPARSE_FILE\t\t= 0x00000200UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_REPARSE_POINT\t\t= 0x00000400UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_COMPRESSED\t\t= 0x00000800UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_OFFLINE\t\t\t= 0x00001000UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_NOT_CONTENT_INDEXED\t= 0x00002000UL,\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_ENCRYPTED\t\t\t= 0x00004000UL,\n\n\tLIBFSREFS_FILE_ATTRIBUTE_FLAG_VIRTUAL\t\t\t= 0x00010000UL\n};\n\n#endif /* !defined( HAVE_LOCAL_LIBFSREFS ) */\n\n#define LIBFSREFS_BLOCK_TREE_NUMBER_OF_SUB_NODES\t\t256\n\n#endif /* !defined( _LIBFSREFS_INTERNAL_DEFINITIONS_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_directory_entry.c",
    "content": "/*\n * Directory entry functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_attribute_values.h\"\n#include \"libfsrefs_debug.h\"\n#include \"libfsrefs_directory_entry.h\"\n#include \"libfsrefs_libcdata.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n#include \"libfsrefs_libfdatetime.h\"\n#include \"libfsrefs_libuna.h\"\n#include \"libfsrefs_ministore_node.h\"\n#include \"libfsrefs_node_record.h\"\n\n#include \"fsrefs_directory_object.h\"\n\n/* Creates a directory entry\n * Make sure the value directory_entry is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_entry_initialize(\n     libfsrefs_directory_entry_t **directory_entry,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_entry_initialize\";\n\n\tif( directory_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *directory_entry != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid directory entry value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*directory_entry = memory_allocate_structure(\n\t                    libfsrefs_directory_entry_t );\n\n\tif( *directory_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create directory entry.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *directory_entry,\n\t     0,\n\t     sizeof( libfsrefs_directory_entry_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear directory entry.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *directory_entry );\n\n\t\t*directory_entry = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t     &( ( *directory_entry )->attributes_array ),\n\t     0,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create attributes array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *directory_entry != NULL )\n\t{\n\t\tmemory_free(\n\t\t *directory_entry );\n\n\t\t*directory_entry = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a directory entry\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_entry_free(\n     libfsrefs_directory_entry_t **directory_entry,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_entry_free\";\n\tint result            = 1;\n\n\tif( directory_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *directory_entry != NULL )\n\t{\n\t\tif( libcdata_array_free(\n\t\t     &( ( *directory_entry )->attributes_array ),\n\t\t     (int (*)(intptr_t **, libcerror_error_t **)) &libfsrefs_attribute_values_free,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free attributes array.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t\tif( ( *directory_entry )->name_data != NULL )\n\t\t{\n\t\t\tmemory_free(\n\t\t\t ( *directory_entry )->name_data );\n\t\t}\n\t\tmemory_free(\n\t\t *directory_entry );\n\n\t\t*directory_entry = NULL;\n\t}\n\treturn( result );\n}\n\n/* Reads the directory entry directory values\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_entry_read_directory_values(\n     libfsrefs_directory_entry_t *directory_entry,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_entry_read_directory_values\";\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tuint64_t value_64bit  = 0;\n\tuint32_t value_32bit  = 0;\n#endif\n\n\tif( directory_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data_size != sizeof( fsrefs_directory_values_t ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: directory values data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t data_size,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n\tbyte_stream_copy_to_uint64_little_endian(\n\t ( (fsrefs_directory_values_t *) data )->object_identifier,\n\t directory_entry->object_identifier );\n\n\tbyte_stream_copy_to_uint64_little_endian(\n\t ( (fsrefs_directory_values_t *) data )->creation_time,\n\t directory_entry->creation_time );\n\n\tbyte_stream_copy_to_uint64_little_endian(\n\t ( (fsrefs_directory_values_t *) data )->modification_time,\n\t directory_entry->modification_time );\n\n\tbyte_stream_copy_to_uint64_little_endian(\n\t ( (fsrefs_directory_values_t *) data )->entry_modification_time,\n\t directory_entry->entry_modification_time );\n\n\tbyte_stream_copy_to_uint64_little_endian(\n\t ( (fsrefs_directory_values_t *) data )->access_time,\n\t directory_entry->access_time );\n\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_directory_values_t *) data )->file_attribute_flags,\n\t directory_entry->file_attribute_flags );\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: object identifier\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t directory_entry->object_identifier );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_directory_values_t *) data )->unknown1,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown1\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tif( libfsrefs_debug_print_filetime_value(\n\t\t     function,\n\t\t     \"creation time\\t\\t\\t\",\n\t\t     ( (fsrefs_directory_values_t *) data )->creation_time,\n\t\t     8,\n\t\t     LIBFDATETIME_ENDIAN_LITTLE,\n\t\t     LIBFDATETIME_STRING_FORMAT_TYPE_CTIME | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t\t \"%s: unable to print FILETIME value.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( libfsrefs_debug_print_filetime_value(\n\t\t     function,\n\t\t     \"modification time\\t\\t\",\n\t\t     ( (fsrefs_directory_values_t *) data )->modification_time,\n\t\t     8,\n\t\t     LIBFDATETIME_ENDIAN_LITTLE,\n\t\t     LIBFDATETIME_STRING_FORMAT_TYPE_CTIME | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t\t \"%s: unable to print FILETIME value.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( libfsrefs_debug_print_filetime_value(\n\t\t     function,\n\t\t     \"entry modification time\\t\",\n\t\t     ( (fsrefs_directory_values_t *) data )->entry_modification_time,\n\t\t     8,\n\t\t     LIBFDATETIME_ENDIAN_LITTLE,\n\t\t     LIBFDATETIME_STRING_FORMAT_TYPE_CTIME | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t\t \"%s: unable to print FILETIME value.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( libfsrefs_debug_print_filetime_value(\n\t\t     function,\n\t\t     \"access time\\t\\t\\t\",\n\t\t     ( (fsrefs_directory_values_t *) data )->access_time,\n\t\t     8,\n\t\t     LIBFDATETIME_ENDIAN_LITTLE,\n\t\t     LIBFDATETIME_STRING_FORMAT_TYPE_CTIME | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t\t \"%s: unable to print FILETIME value.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown2:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t ( (fsrefs_directory_values_t *) data )->unknown2,\n\t\t 16,\n\t\t 0 );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: file attribute flags\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t directory_entry->file_attribute_flags );\n\t\tlibfsrefs_debug_print_file_attribute_flags(\n\t\t directory_entry->file_attribute_flags );\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_directory_values_t *) data )->unknown3,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown3\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\treturn( 1 );\n}\n\n/* Reads the directory entry file values\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_entry_read_file_values(\n     libfsrefs_directory_entry_t *directory_entry,\n     libfsrefs_io_handle_t *io_handle,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_attribute_values_t *attribute_values = NULL;\n\tlibfsrefs_ministore_node_t *node               = NULL;\n\tlibfsrefs_node_record_t *node_record           = NULL;\n\tstatic char *function                          = \"libfsrefs_directory_entry_read_file_values\";\n\tint entry_index                                = 0;\n\tint number_of_records                          = 0;\n\tint record_index                               = 0;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tuint64_t value_64bit                           = 0;\n\tuint32_t value_32bit                           = 0;\n#endif\n\n\tif( directory_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_ministore_node_initialize(\n\t     &node,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create file values ministore node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_ministore_node_read_data(\n\t     node,\n\t     io_handle,\n\t     data,\n\t     data_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read file values ministore node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( ( node->node_type_flags & 0x03 ) != 0x02 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: invalid file values ministore node - unsupported node type flags.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( node->header_data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid file values ministore node - missing header data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( node->header_data_size != sizeof( fsrefs_file_values_t ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid file values ministore node - header data size value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tbyte_stream_copy_to_uint64_little_endian(\n\t ( (fsrefs_file_values_t *) node->header_data )->creation_time,\n\t directory_entry->creation_time );\n\n\tbyte_stream_copy_to_uint64_little_endian(\n\t ( (fsrefs_file_values_t *) node->header_data )->modification_time,\n\t directory_entry->modification_time );\n\n\tbyte_stream_copy_to_uint64_little_endian(\n\t ( (fsrefs_file_values_t *) node->header_data )->entry_modification_time,\n\t directory_entry->entry_modification_time );\n\n\tbyte_stream_copy_to_uint64_little_endian(\n\t ( (fsrefs_file_values_t *) node->header_data )->access_time,\n\t directory_entry->access_time );\n\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_file_values_t *) node->header_data )->file_attribute_flags,\n\t directory_entry->file_attribute_flags );\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tif( libfsrefs_debug_print_filetime_value(\n\t\t     function,\n\t\t     \"creation time\\t\\t\",\n\t\t     ( (fsrefs_file_values_t *) node->header_data )->creation_time,\n\t\t     8,\n\t\t     LIBFDATETIME_ENDIAN_LITTLE,\n\t\t     LIBFDATETIME_STRING_FORMAT_TYPE_CTIME | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t\t \"%s: unable to print FILETIME value.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_debug_print_filetime_value(\n\t\t     function,\n\t\t     \"modification time\\t\\t\",\n\t\t     ( (fsrefs_file_values_t *) node->header_data )->modification_time,\n\t\t     8,\n\t\t     LIBFDATETIME_ENDIAN_LITTLE,\n\t\t     LIBFDATETIME_STRING_FORMAT_TYPE_CTIME | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t\t \"%s: unable to print FILETIME value.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_debug_print_filetime_value(\n\t\t     function,\n\t\t     \"entry modification time\\t\",\n\t\t     ( (fsrefs_file_values_t *) node->header_data )->entry_modification_time,\n\t\t     8,\n\t\t     LIBFDATETIME_ENDIAN_LITTLE,\n\t\t     LIBFDATETIME_STRING_FORMAT_TYPE_CTIME | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t\t \"%s: unable to print FILETIME value.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_debug_print_filetime_value(\n\t\t     function,\n\t\t     \"access time\\t\\t\\t\",\n\t\t     ( (fsrefs_file_values_t *) node->header_data )->access_time,\n\t\t     8,\n\t\t     LIBFDATETIME_ENDIAN_LITTLE,\n\t\t     LIBFDATETIME_STRING_FORMAT_TYPE_CTIME | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t\t \"%s: unable to print FILETIME value.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tlibcnotify_printf(\n\t\t \"%s: file attribute flags\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t directory_entry->file_attribute_flags );\n\t\tlibfsrefs_debug_print_file_attribute_flags(\n\t\t directory_entry->file_attribute_flags );\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_file_values_t *) node->header_data )->unknown1,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown1\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_file_values_t *) node->header_data )->identifier_lower,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: identifier (lower 64-bits)\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_file_values_t *) node->header_data )->identifier_upper,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: identifier (upper 64-bits)\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_file_values_t *) node->header_data )->unknown4,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown4\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_file_values_t *) node->header_data )->unknown5,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown5\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_file_values_t *) node->header_data )->data_size,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: data size\\t\\t\\t: %\" PRIu64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_file_values_t *) node->header_data )->allocated_data_size,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: allocated data size\\t\\t: %\" PRIu64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown6:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t ( (fsrefs_file_values_t *) node->header_data )->unknown6,\n\t\t 32,\n\t\t 0 );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_file_values_t *) node->header_data )->unknown7,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown7\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_file_values_t *) node->header_data )->unknown8,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown8\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tif( libfsrefs_ministore_node_get_number_of_records(\n\t     node,\n\t     &number_of_records,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of records.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( number_of_records == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported file values ministore node - missing attribute records.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tfor( record_index = 0;\n\t     record_index < number_of_records;\n\t     record_index++ )\n\t{\n\t\tif( libfsrefs_ministore_node_get_record_by_index(\n\t\t     node,\n\t\t     record_index,\n\t\t     &node_record,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve attribute: %d record.\",\n\t\t\t function,\n\t\t\t record_index );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_attribute_values_initialize(\n\t\t     &attribute_values,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create attribute values: %d.\",\n\t\t\t function,\n\t\t\t record_index );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_attribute_values_read_node_record(\n\t\t     attribute_values,\n\t\t     io_handle,\n\t\t     node_record,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t \"%s: unable to read attribute values from record: %d.\",\n\t\t\t function,\n\t\t\t record_index );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libcdata_array_append_entry(\n\t\t     directory_entry->attributes_array,\n\t\t     &entry_index,\n\t\t     (intptr_t *) attribute_values,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_APPEND_FAILED,\n\t\t\t \"%s: unable to append attribute values: %d to array.\",\n\t\t\t function,\n\t\t\t record_index );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tattribute_values = NULL;\n\t}\n\tif( libfsrefs_ministore_node_free(\n\t     &node,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t \"%s: unable to free file values ministore node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( attribute_values != NULL )\n\t{\n\t\tlibfsrefs_attribute_values_free(\n\t\t &attribute_values,\n\t\t NULL );\n\t}\n\tif( node != NULL )\n\t{\n\t\tlibfsrefs_ministore_node_free(\n\t\t &node,\n\t\t NULL );\n\t}\n\tlibcdata_array_empty(\n\t directory_entry->attributes_array,\n\t (int (*)(intptr_t **, libcerror_error_t **)) &libfsrefs_attribute_values_free,\n\t NULL );\n\n\treturn( -1 );\n}\n\n/* Reads the directory entry from a ministore node record\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_entry_read_node_record(\n     libfsrefs_directory_entry_t *directory_entry,\n     libfsrefs_io_handle_t *io_handle,\n     libfsrefs_node_record_t *node_record,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_entry_read_node_record\";\n\tsize_t name_data_size = 0;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tuint16_t value_16bit  = 0;\n#endif\n\n\tif( directory_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( directory_entry->name_data != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid directory entry - namd data value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( node_record == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid node record.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( node_record->key_data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid node record - missing key data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( node_record->key_data_size < 6 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid node record - key data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: key data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t node_record->key_data,\n\t\t node_record->key_data_size,\n\t\t 0 );\n\t}\n#endif\n\tbyte_stream_copy_to_uint16_little_endian(\n\t &( node_record->key_data[ 2 ] ),\n\t directory_entry->entry_type );\n\n\tname_data_size = node_record->key_data_size - 4;\n\n\tdirectory_entry->name_data = (uint8_t *) memory_allocate(\n\t                                          sizeof( uint8_t ) * name_data_size );\n\n\tif( directory_entry->name_data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create name data.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tdirectory_entry->name_data_size = name_data_size;\n\n\tif( memory_copy(\n\t     directory_entry->name_data,\n\t     &( node_record->key_data[ 4 ] ),\n\t     directory_entry->name_data_size ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_COPY_FAILED,\n\t\t \"%s: unable to copy name data.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tbyte_stream_copy_to_uint16_little_endian(\n\t\t &( node_record->key_data[ 0 ] ),\n\t\t value_16bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: record type\\t\\t\\t: 0x%04\" PRIx16 \"\\n\",\n\t\t function,\n\t\t value_16bit );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: entry type\\t\\t\\t: 0x%04\" PRIx16 \"\\n\",\n\t\t function,\n\t\t directory_entry->entry_type );\n\n\t\tif( libfsrefs_debug_print_utf16_string_value(\n\t\t     function,\n\t\t     \"name\\t\\t\\t\",\n\t\t     directory_entry->name_data,\n\t\t     directory_entry->name_data_size,\n\t\t     LIBUNA_ENDIAN_LITTLE | LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t\t \"%s: unable to print UTF-16 string value.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tif( directory_entry->entry_type == 1 )\n\t{\n\t\tif( libfsrefs_directory_entry_read_file_values(\n\t\t     directory_entry,\n\t\t     io_handle,\n\t\t     node_record->value_data,\n\t\t     node_record->value_data_size,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t \"%s: unable to read file values.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\telse if( directory_entry->entry_type == 2 )\n\t{\n\t\tif( libfsrefs_directory_entry_read_directory_values(\n\t\t     directory_entry,\n\t\t     node_record->value_data,\n\t\t     node_record->value_data_size,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t \"%s: unable to read directory values.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\treturn( 1 );\n\non_error:\n\tif( directory_entry->name_data != NULL )\n\t{\n\t\tmemory_free(\n\t\t directory_entry->name_data );\n\n\t\tdirectory_entry->name_data = NULL;\n\t}\n\tdirectory_entry->name_data_size = 0;\n\n\tlibcdata_array_empty(\n\t directory_entry->attributes_array,\n\t (int (*)(intptr_t **, libcerror_error_t **)) &libfsrefs_attribute_values_free,\n\t NULL );\n\n\treturn( -1 );\n}\n\n/* Retrieves the object identifier\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_entry_get_object_identifier(\n     libfsrefs_directory_entry_t *directory_entry,\n     uint64_t *object_identifier,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_entry_get_object_identifier\";\n\n\tif( directory_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( object_identifier == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid object identifier.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*object_identifier = directory_entry->object_identifier;\n\n\treturn( 1 );\n}\n\n/* Retrieves the size of the UTF-8 encoded name\n * This function uses UTF-8 RFC 2279 (or 6-byte UTF-8) to support characters outside Unicode\n * The returned size includes the end of string character\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_entry_get_utf8_name_size(\n     libfsrefs_directory_entry_t *directory_entry,\n     size_t *utf8_string_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_entry_get_utf8_name_size\";\n\n\tif( directory_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libuna_utf8_string_size_from_utf16_stream(\n\t     directory_entry->name_data,\n\t     directory_entry->name_data_size,\n\t     LIBUNA_ENDIAN_LITTLE | LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE,\n\t     utf8_string_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve size of UTF-8 name.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Retrieves the UTF-8 encoded name\n * This function uses UTF-8 RFC 2279 (or 6-byte UTF-8) to support characters outside Unicode\n * The size should include the end of string character\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_entry_get_utf8_name(\n     libfsrefs_directory_entry_t *directory_entry,\n     uint8_t *utf8_string,\n     size_t utf8_string_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_entry_get_utf8_name\";\n\n\tif( directory_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libuna_utf8_string_copy_from_utf16_stream(\n\t     utf8_string,\n\t     utf8_string_size,\n\t     directory_entry->name_data,\n\t     directory_entry->name_data_size,\n\t     LIBUNA_ENDIAN_LITTLE | LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve UTF-8 name.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Retrieves the size of the UTF-16 encoded name\n * This function uses UCS-2 (with surrogates) to support characters outside Unicode\n * The returned size includes the end of string character\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_entry_get_utf16_name_size(\n     libfsrefs_directory_entry_t *directory_entry,\n     size_t *utf16_string_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_entry_get_utf16_name_size\";\n\n\tif( directory_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libuna_utf16_string_size_from_utf16_stream(\n\t     directory_entry->name_data,\n\t     directory_entry->name_data_size,\n\t     LIBUNA_ENDIAN_LITTLE | LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE,\n\t     utf16_string_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve size of UTF-16 name.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Retrieves the UTF-16 encoded name\n * This function uses UCS-2 (with surrogates) to support characters outside Unicode\n * The size should include the end of string character\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_entry_get_utf16_name(\n     libfsrefs_directory_entry_t *directory_entry,\n     uint16_t *utf16_string,\n     size_t utf16_string_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_entry_get_utf16_name\";\n\n\tif( directory_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libuna_utf16_string_copy_from_utf16_stream(\n\t     utf16_string,\n\t     utf16_string_size,\n\t     directory_entry->name_data,\n\t     directory_entry->name_data_size,\n\t     LIBUNA_ENDIAN_LITTLE | LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve UTF-16 name.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Retrieves the creation date and time\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_entry_get_creation_time(\n     libfsrefs_directory_entry_t *directory_entry,\n     uint64_t *filetime,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_entry_get_creation_time\";\n\n\tif( directory_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( filetime == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid FILETIME.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*filetime = directory_entry->creation_time;\n\n\treturn( 1 );\n}\n\n/* Retrieves the (file) modification (last written) date and time\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_entry_get_modification_time(\n     libfsrefs_directory_entry_t *directory_entry,\n     uint64_t *filetime,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_entry_get_modification_time\";\n\n\tif( directory_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( filetime == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid FILETIME.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*filetime = directory_entry->modification_time;\n\n\treturn( 1 );\n}\n\n/* Retrieves the access date and time\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_entry_get_access_time(\n     libfsrefs_directory_entry_t *directory_entry,\n     uint64_t *filetime,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_entry_get_access_time\";\n\n\tif( directory_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( filetime == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid FILETIME.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*filetime = directory_entry->access_time;\n\n\treturn( 1 );\n}\n\n/* Retrieves the (file system entry) modification date and time\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_entry_get_entry_modification_time(\n     libfsrefs_directory_entry_t *directory_entry,\n     uint64_t *filetime,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_entry_get_entry_modification_time\";\n\n\tif( directory_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( filetime == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid FILETIME.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*filetime = directory_entry->entry_modification_time;\n\n\treturn( 1 );\n}\n\n/* Retrieves the file attribute flags\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_entry_get_file_attribute_flags(\n     libfsrefs_directory_entry_t *directory_entry,\n     uint32_t *file_attribute_flags,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_entry_get_file_attribute_flags\";\n\n\tif( directory_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( file_attribute_flags == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file attribute flags.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*file_attribute_flags = directory_entry->file_attribute_flags;\n\n\treturn( 1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_directory_entry.h",
    "content": "/*\n * Directory entry functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_DIRECTORY_ENTRY_H )\n#define _LIBFSREFS_DIRECTORY_ENTRY_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libcdata.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_node_record.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_directory_entry libfsrefs_directory_entry_t;\n\nstruct libfsrefs_directory_entry\n{\n\t/* Object identifier\n\t */\n\tuint64_t object_identifier;\n\n\t/* The (file) entry type\n\t */\n\tuint16_t entry_type;\n\n\t/* The name data\n\t */\n\tuint8_t *name_data;\n\n\t/* The name data size\n\t */\n\tsize_t name_data_size;\n\n\t/* The creation time\n\t */\n\tuint64_t creation_time;\n\n\t/* The modification time\n\t */\n\tuint64_t modification_time;\n\n\t/* The access time\n\t */\n\tuint64_t access_time;\n\n\t/* The entry modification time\n\t */\n\tuint64_t entry_modification_time;\n\n\t/* The file attribute flags\n\t */\n\tuint32_t file_attribute_flags;\n\n\t/* The attributes array\n\t */\n\tlibcdata_array_t *attributes_array;\n};\n\nint libfsrefs_directory_entry_initialize(\n     libfsrefs_directory_entry_t **directory_entry,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_entry_free(\n     libfsrefs_directory_entry_t **directory_entry,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_entry_read_directory_values(\n     libfsrefs_directory_entry_t *directory_entry,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_entry_read_file_values(\n     libfsrefs_directory_entry_t *directory_entry,\n     libfsrefs_io_handle_t *io_handle,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_entry_read_node_record(\n     libfsrefs_directory_entry_t *directory_entry,\n     libfsrefs_io_handle_t *io_handle,\n     libfsrefs_node_record_t *node_record,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_entry_get_object_identifier(\n     libfsrefs_directory_entry_t *directory_entry,\n     uint64_t *object_identifier,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_entry_get_utf8_name_size(\n     libfsrefs_directory_entry_t *directory_entry,\n     size_t *utf8_string_size,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_entry_get_utf8_name(\n     libfsrefs_directory_entry_t *directory_entry,\n     uint8_t *utf8_string,\n     size_t utf8_string_size,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_entry_get_utf16_name_size(\n     libfsrefs_directory_entry_t *directory_entry,\n     size_t *utf16_string_size,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_entry_get_utf16_name(\n     libfsrefs_directory_entry_t *directory_entry,\n     uint16_t *utf16_string,\n     size_t utf16_string_size,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_entry_get_creation_time(\n     libfsrefs_directory_entry_t *directory_entry,\n     uint64_t *filetime,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_entry_get_modification_time(\n     libfsrefs_directory_entry_t *directory_entry,\n     uint64_t *filetime,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_entry_get_access_time(\n     libfsrefs_directory_entry_t *directory_entry,\n     uint64_t *filetime,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_entry_get_entry_modification_time(\n     libfsrefs_directory_entry_t *directory_entry,\n     uint64_t *filetime,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_entry_get_file_attribute_flags(\n     libfsrefs_directory_entry_t *directory_entry,\n     uint32_t *file_attribute_flags,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_DIRECTORY_ENTRY_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_directory_object.c",
    "content": "/*\n * Directory object functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_block_descriptor.h\"\n#include \"libfsrefs_block_reference.h\"\n#include \"libfsrefs_block_tree.h\"\n#include \"libfsrefs_block_tree_node.h\"\n#include \"libfsrefs_directory_entry.h\"\n#include \"libfsrefs_directory_object.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n#include \"libfsrefs_ministore_node.h\"\n#include \"libfsrefs_node_record.h\"\n#include \"libfsrefs_objects_tree.h\"\n\n/* Creates a directory object\n * Make sure the value directory_object is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_object_initialize(\n     libfsrefs_directory_object_t **directory_object,\n     libfsrefs_io_handle_t *io_handle,\n     libfsrefs_objects_tree_t *objects_tree,\n     uint64_t object_identifier,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_object_initialize\";\n\n\tif( directory_object == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory object.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *directory_object != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid directory object value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( objects_tree == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid objects tree.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*directory_object = memory_allocate_structure(\n\t                     libfsrefs_directory_object_t );\n\n\tif( *directory_object == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create directory object.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *directory_object,\n\t     0,\n\t     sizeof( libfsrefs_directory_object_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear directory object.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *directory_object );\n\n\t\t*directory_object = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_block_tree_initialize(\n\t     &( ( *directory_object )->node_block_tree ),\n\t     io_handle->volume_size,\n\t     io_handle->metadata_block_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create node block tree.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libcdata_array_initialize(\n\t     &( ( *directory_object )->directory_entries_array ),\n\t     0,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create directory entries array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\t( *directory_object )->object_identifier = object_identifier;\n\t( *directory_object )->objects_tree      = objects_tree;\n\n\treturn( 1 );\n\non_error:\n\tif( *directory_object != NULL )\n\t{\n\t\tif( ( *directory_object )->node_block_tree != NULL )\n\t\t{\n\t\t\tlibfsrefs_block_tree_free(\n\t\t\t &( ( *directory_object )->node_block_tree ),\n\t\t\t (int (*)(intptr_t **, libcerror_error_t **)) &libfsrefs_block_reference_free,\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t *directory_object );\n\n\t\t*directory_object = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a directory object\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_object_free(\n     libfsrefs_directory_object_t **directory_object,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_object_free\";\n\tint result            = 1;\n\n\tif( directory_object == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory object.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *directory_object != NULL )\n\t{\n\t\t/* The objects_tree reference is freed elsewhere\n\t\t */\n\t\tif( libcdata_array_free(\n\t\t     &( ( *directory_object )->directory_entries_array ),\n\t\t     (int (*)(intptr_t **, libcerror_error_t **)) &libfsrefs_directory_entry_free,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free directory entries array.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t\tif( libfsrefs_block_tree_free(\n\t\t     &( ( *directory_object )->node_block_tree ),\n\t\t     (int (*)(intptr_t **, libcerror_error_t **)) &libfsrefs_block_reference_free,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free node block tree.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t\tif( ( *directory_object )->root_node != NULL )\n\t\t{\n\t\t\tif( libfsrefs_ministore_node_free(\n\t\t\t     &( ( *directory_object )->root_node ),\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t\t \"%s: unable to free root node.\",\n\t\t\t\t function );\n\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}\n\t\tmemory_free(\n\t\t *directory_object );\n\n\t\t*directory_object = NULL;\n\t}\n\treturn( result );\n}\n\n\n/* Checks if this is the first time the node block is being read\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_object_check_if_node_block_first_read(\n     libfsrefs_directory_object_t *directory_object,\n     libfsrefs_block_tree_t *node_block_tree,\n     uint64_t block_number,\n     off64_t block_offset,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_block_descriptor_t *existing_block_descriptor = NULL;\n\tlibfsrefs_block_descriptor_t *new_block_descriptor      = NULL;\n\tlibfsrefs_block_tree_node_t *leaf_block_tree_node       = NULL;\n\tstatic char *function                                   = \"libfsrefs_directory_object_check_if_node_block_first_read\";\n\tint leaf_value_index                                    = 0;\n\tint result                                              = 0;\n\n\tif( directory_object == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory object.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_block_descriptor_initialize(\n\t     &new_block_descriptor,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create block descriptor.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tnew_block_descriptor->block_number = block_number;\n\n\tresult = libfsrefs_block_tree_insert_block_descriptor_by_offset(\n\t          node_block_tree,\n\t          block_offset,\n\t          new_block_descriptor,\n\t          &leaf_value_index,\n\t          &leaf_block_tree_node,\n\t          &existing_block_descriptor,\n\t          error );\n\n\tif( result == -1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_APPEND_FAILED,\n\t\t \"%s: unable to insert block descriptor in node block tree.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\telse if( result == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid block number: %\" PRIu64 \" value already exists.\",\n\t\t function,\n\t\t block_number );\n\n\t\tgoto on_error;\n\t}\n\tnew_block_descriptor = NULL;\n\n\treturn( 1 );\n\non_error:\n\tif( new_block_descriptor != NULL )\n\t{\n\t\tlibfsrefs_block_descriptor_free(\n\t\t &new_block_descriptor,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}\n\n/* Reads an directory object\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_object_read(\n     libfsrefs_directory_object_t *directory_object,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_object_read\";\n\n\tif( directory_object == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory object.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( directory_object->root_node != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid directory object - root node value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_objects_tree_get_ministore_tree_by_identifier(\n\t     directory_object->objects_tree,\n\t     io_handle,\n\t     file_io_handle,\n\t     directory_object->object_identifier,\n\t     &( directory_object->root_node ),\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve directory object: 0x%08\" PRIx64 \" from objects tree.\",\n\t\t function,\n\t\t directory_object->object_identifier );\n\n\t\tgoto on_error;\n\t}\n\tif( ( directory_object->root_node->node_type_flags & 0x02 ) == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported directory object: 0x%08\" PRIx64 \" root node - missing is root (0x02) flag.\",\n\t\t function,\n\t\t directory_object->object_identifier );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_directory_object_read_node(\n\t     directory_object,\n\t     io_handle,\n\t     file_io_handle,\n\t     directory_object->root_node,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read directory object: 0x%08\" PRIx64 \" root node.\",\n\t\t function,\n\t\t directory_object->object_identifier );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tlibcdata_array_empty(\n\t directory_object->directory_entries_array,\n\t (int (*)(intptr_t **, libcerror_error_t **)) &libfsrefs_directory_entry_free,\n\t NULL );\n\n\treturn( -1 );\n}\n\n/* Reads an directory object node\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_object_read_node(\n     libfsrefs_directory_object_t *directory_object,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     libfsrefs_ministore_node_t *node,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_block_reference_t *block_reference = NULL;\n\tlibfsrefs_directory_entry_t *directory_entry = NULL;\n\tlibfsrefs_ministore_node_t *sub_node         = NULL;\n\tlibfsrefs_node_record_t *node_record         = NULL;\n\tstatic char *function                        = \"libfsrefs_directory_object_read_node\";\n\tuint16_t record_type                         = 0;\n\tint entry_index                              = 0;\n\tint number_of_records                        = 0;\n\tint record_index                             = 0;\n\n\tif( directory_object == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory object.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_ministore_node_get_number_of_records(\n\t     node,\n\t     &number_of_records,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of records.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tfor( record_index = 0;\n\t     record_index < number_of_records;\n\t     record_index++ )\n\t{\n\t\tif( libfsrefs_ministore_node_get_record_by_index(\n\t\t     node,\n\t\t     record_index,\n\t\t     &node_record,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve record: %d.\",\n\t\t\t function,\n\t\t\t record_index );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( node_record == NULL )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t\t \"%s: missing record: %d.\",\n\t\t\t function,\n\t\t\t record_index );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( node_record->key_data == NULL )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t\t \"%s: invalid record: %d - missing key data.\",\n\t\t\t function,\n\t\t\t record_index );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( node_record->key_data_size >= 2 )\n\t\t{\n\t\t\tbyte_stream_copy_to_uint16_little_endian(\n\t\t\t node_record->key_data,\n\t\t\t record_type );\n\n\t\t\tif( record_type != 0x0030 )\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\t\tif( libcnotify_verbose != 0 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: record: %d key data:\\n\",\n\t\t\t function,\n\t\t\t record_index );\n\t\t\tlibcnotify_print_data(\n\t\t\t node_record->key_data,\n\t\t\t node_record->key_data_size,\n\t\t\t 0 );\n\t\t}\n#endif\n\t\tif( ( node->node_type_flags & 0x01 ) == 0 )\n\t\t{\n\t\t\tif( libfsrefs_directory_entry_initialize(\n\t\t\t     &directory_entry,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t\t \"%s: unable to create directory entry.\",\n\t\t\t\t function );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tif( libfsrefs_directory_entry_read_node_record(\n\t\t\t     directory_entry,\n\t\t\t     io_handle,\n\t\t\t     node_record,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t\t \"%s: unable to read directory entry from record: %d.\",\n\t\t\t\t function,\n\t\t\t\t record_index );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tif( libcdata_array_append_entry(\n\t\t\t     directory_object->directory_entries_array,\n\t\t\t     &entry_index,\n\t\t\t     (intptr_t *) directory_entry,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_APPEND_FAILED,\n\t\t\t\t \"%s: unable to append directory entry to array.\",\n\t\t\t\t function );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tdirectory_entry = NULL;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif( libfsrefs_block_reference_initialize(\n\t\t\t     &block_reference,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t\t \"%s: unable to create directory object: 0x%08\" PRIx64 \" sub node block reference: %d.\",\n\t\t\t\t function,\n\t\t\t\t directory_object->object_identifier,\n\t\t\t\t record_index );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tif( libfsrefs_block_reference_read_data(\n\t\t\t     block_reference,\n\t\t\t     io_handle,\n\t\t\t     node_record->value_data,\n\t\t\t     node_record->value_data_size,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t\t \"%s: unable to read directory object: 0x%08\" PRIx64 \" sub node: %d block reference.\",\n\t\t\t\t function,\n\t\t\t\t directory_object->object_identifier,\n\t\t\t\t record_index );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tif( libfsrefs_file_system_get_block_offsets(\n\t\t\t     directory_object->objects_tree->file_system,\n\t\t\t     io_handle,\n\t\t\t     block_reference,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t\t \"%s: unable to retrieve irectory object: 0x%08\" PRIx64 \" sub node: %d block offsets.\",\n\t\t\t\t function,\n\t\t\t\t directory_object->object_identifier,\n\t\t\t\t record_index );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tif( libfsrefs_directory_object_check_if_node_block_first_read(\n\t\t\t     directory_object,\n\t\t\t     directory_object->node_block_tree,\n\t\t\t     block_reference->block_numbers[ 0 ],\n\t\t\t     block_reference->block_offsets[ 0 ],\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_GENERIC,\n\t\t\t\t \"%s: unable to check if first read of block number: %\" PRIu64 \".\",\n\t\t\t\t function,\n\t\t\t\t block_reference->block_numbers[ 0 ] );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tif( libfsrefs_ministore_node_initialize(\n\t\t\t     &sub_node,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t\t \"%s: unable to create directory object: 0x%08\" PRIx64 \" ministore tree sub node: %d.\",\n\t\t\t\t function,\n\t\t\t\t directory_object->object_identifier,\n\t\t\t\t record_index );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tif( libfsrefs_ministore_node_read_file_io_handle(\n\t\t\t     sub_node,\n\t\t\t     io_handle,\n\t\t\t     file_io_handle,\n\t\t\t     block_reference,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t\t \"%s: unable to read directory object: 0x%08\" PRIx64 \" ministore tree sub node: %d.\",\n\t\t\t\t function,\n\t\t\t\t directory_object->object_identifier,\n\t\t\t\t record_index );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tif( libfsrefs_block_reference_free(\n\t\t\t     &block_reference,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t\t \"%s: unable to free directory object: 0x%08\" PRIx64 \" sub node: %d block reference.\",\n\t\t\t\t function,\n\t\t\t\t directory_object->object_identifier,\n\t\t\t\t record_index );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tif( libfsrefs_directory_object_read_node(\n\t\t\t     directory_object,\n\t\t\t     io_handle,\n\t\t\t     file_io_handle,\n\t\t\t     sub_node,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t\t \"%s: unable to read directory object: 0x%08\" PRIx64 \" sub node: %d.\",\n\t\t\t\t function,\n\t\t\t\t directory_object->object_identifier,\n\t\t\t\t record_index );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t\tif( libfsrefs_ministore_node_free(\n\t\t\t     &sub_node,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t\t \"%s: unable to free directory object: 0x%08\" PRIx64 \" sub node: %d.\",\n\t\t\t\t function,\n\t\t\t\t directory_object->object_identifier,\n\t\t\t\t record_index );\n\n\t\t\t\tgoto on_error;\n\t\t\t}\n\t\t}\n\t}\n\treturn( 1 );\n\non_error:\n\tif( sub_node != NULL )\n\t{\n\t\tlibfsrefs_ministore_node_free(\n\t\t &sub_node,\n\t\t NULL );\n\t}\n\tif( block_reference != NULL )\n\t{\n\t\tlibfsrefs_block_reference_free(\n\t\t &block_reference,\n\t\t NULL );\n\t}\n\tif( directory_entry != NULL )\n\t{\n\t\tlibfsrefs_directory_entry_free(\n\t\t &directory_entry,\n\t\t NULL );\n\t}\n\tlibcdata_array_empty(\n\t directory_object->directory_entries_array,\n\t (int (*)(intptr_t **, libcerror_error_t **)) &libfsrefs_directory_entry_free,\n\t NULL );\n\n\treturn( -1 );\n}\n\n/* Retrieves the number of directory entries\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_object_get_number_of_directory_entries(\n     libfsrefs_directory_object_t *directory_object,\n     int *number_of_directory_entries,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_object_get_number_of_directory_entries\";\n\n\tif( directory_object == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory object.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( directory_object->root_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid ministore node - missing root node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_get_number_of_entries(\n\t     directory_object->directory_entries_array,\n\t     number_of_directory_entries,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of entries from directory entries array.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Retrieves a specific directory entry\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_directory_object_get_directory_entry_by_index(\n     libfsrefs_directory_object_t *directory_object,\n     int directory_entry_index,\n     libfsrefs_directory_entry_t **directory_entry,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_directory_object_get_directory_entry_by_index\";\n\n\tif( directory_object == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid directory object.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( directory_object->root_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid ministore node - missing root node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_get_entry_by_index(\n\t     directory_object->directory_entries_array,\n\t     directory_entry_index,\n\t     (intptr_t **) directory_entry,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve entry: %d from directory entries array.\",\n\t\t function,\n\t\t directory_entry_index );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_directory_object.h",
    "content": "/*\n * Directory object functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_DIRECTORY_OBJECT_H )\n#define _LIBFSREFS_DIRECTORY_OBJECT_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_block_tree.h\"\n#include \"libfsrefs_directory_entry.h\"\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_ministore_node.h\"\n#include \"libfsrefs_objects_tree.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_directory_object libfsrefs_directory_object_t;\n\nstruct libfsrefs_directory_object\n{\n\t/* Object identifier\n\t */\n\tuint64_t object_identifier;\n\n\t/* Objects tree\n\t */\n\tlibfsrefs_objects_tree_t *objects_tree;\n\n\t/* Ministore root node\n\t */\n\tlibfsrefs_ministore_node_t *root_node;\n\n\t/* The (Ministore) node block tree\n\t */\n\tlibfsrefs_block_tree_t *node_block_tree;\n\n\t/* The directory entries array\n\t */\n\tlibcdata_array_t *directory_entries_array;\n};\n\nint libfsrefs_directory_object_initialize(\n     libfsrefs_directory_object_t **directory_object,\n     libfsrefs_io_handle_t *io_handle,\n     libfsrefs_objects_tree_t *objects_tree,\n     uint64_t object_identifier,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_object_free(\n     libfsrefs_directory_object_t **directory_object,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_object_check_if_node_block_first_read(\n     libfsrefs_directory_object_t *directory_object,\n     libfsrefs_block_tree_t *node_block_tree,\n     uint64_t block_number,\n     off64_t block_offset,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_object_read(\n     libfsrefs_directory_object_t *directory_object,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_object_read_node(\n     libfsrefs_directory_object_t *directory_object,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     libfsrefs_ministore_node_t *node,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_object_get_number_of_directory_entries(\n     libfsrefs_directory_object_t *directory_object,\n     int *number_of_directory_entries,\n     libcerror_error_t **error );\n\nint libfsrefs_directory_object_get_directory_entry_by_index(\n     libfsrefs_directory_object_t *directory_object,\n     int directory_entry_index,\n     libfsrefs_directory_entry_t **directory_entry,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_DIRECTORY_OBJECT_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_error.c",
    "content": "/*\n * Error functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#include \"libfsrefs_error.h\"\n#include \"libfsrefs_libcerror.h\"\n\n#if !defined( HAVE_LOCAL_LIBFSREFS )\n\n/* Free an error and its elements\n */\nvoid libfsrefs_error_free(\n      libfsrefs_error_t **error )\n{\n\tlibcerror_error_free(\n\t (libcerror_error_t **) error );\n}\n\n/* Prints a descriptive string of the error to the stream\n * Returns the number of printed characters if successful or -1 on error\n */\nint libfsrefs_error_fprint(\n     libfsrefs_error_t *error,\n     FILE *stream )\n{\n\tint print_count = 0;\n\n\tprint_count = libcerror_error_fprint(\n\t               (libcerror_error_t *) error,\n\t               stream );\n\n\treturn( print_count );\n}\n\n/* Prints a descriptive string of the error to the string\n * The end-of-string character is not included in the return value\n * Returns the number of printed characters if successful or -1 on error\n */\nint libfsrefs_error_sprint(\n     libfsrefs_error_t *error,\n     char *string,\n     size_t size )\n{\n\tint print_count = 0;\n\n\tprint_count = libcerror_error_sprint(\n\t               (libcerror_error_t *) error,\n\t               string,\n\t               size );\n\n\treturn( print_count );\n}\n\n/* Prints a backtrace of the error to the stream\n * Returns the number of printed characters if successful or -1 on error\n */\nint libfsrefs_error_backtrace_fprint(\n     libfsrefs_error_t *error,\n      FILE *stream )\n{\n\tint print_count = 0;\n\n\tprint_count = libcerror_error_backtrace_fprint(\n\t               (libcerror_error_t *) error,\n\t               stream );\n\n\treturn( print_count );\n}\n\n/* Prints a backtrace of the error to the string\n * The end-of-string character is not included in the return value\n * Returns the number of printed characters if successful or -1 on error\n */\nint libfsrefs_error_backtrace_sprint(\n     libfsrefs_error_t *error,\n     char *string,\n     size_t size )\n{\n\tint print_count = 0;\n\n\tprint_count = libcerror_error_backtrace_sprint(\n\t               (libcerror_error_t *) error,\n\t               string,\n\t               size );\n\n\treturn( print_count );\n}\n\n#endif /* !defined( HAVE_LOCAL_LIBFSREFS ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_error.h",
    "content": "/*\n * Error functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_INTERNAL_ERROR_H )\n#define _LIBFSREFS_INTERNAL_ERROR_H\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if !defined( HAVE_LOCAL_LIBFSREFS )\n#include <libfsrefs/error.h>\n#endif\n\n#include \"libfsrefs_extern.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\n#if !defined( HAVE_LOCAL_LIBFSREFS )\n\nLIBFSREFS_EXTERN \\\nvoid libfsrefs_error_free(\n      libfsrefs_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_error_fprint(\n     libfsrefs_error_t *error,\n     FILE *stream );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_error_sprint(\n     libfsrefs_error_t *error,\n     char *string,\n     size_t size );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_error_backtrace_fprint(\n     libfsrefs_error_t *error,\n     FILE *stream );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_error_backtrace_sprint(\n     libfsrefs_error_t *error,\n     char *string,\n     size_t size );\n\n#endif /* !defined( HAVE_LOCAL_LIBFSREFS ) */\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_INTERNAL_ERROR_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_extern.h",
    "content": "/*\n * The internal extern definition\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_INTERNAL_EXTERN_H )\n#define _LIBFSREFS_INTERNAL_EXTERN_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBFSREFS for local use of libfsrefs\n */\n#if !defined( HAVE_LOCAL_LIBFSREFS )\n\n#include <libfsrefs/extern.h>\n\n#if defined( __CYGWIN__ ) || defined( __MINGW32__ )\n#define LIBFSREFS_EXTERN_VARIABLE\textern\n#else\n#define LIBFSREFS_EXTERN_VARIABLE\tLIBFSREFS_EXTERN\n#endif\n\n#else\n#define LIBFSREFS_EXTERN\t\t/* extern */\n#define LIBFSREFS_EXTERN_VARIABLE\textern\n\n#endif /* !defined( HAVE_LOCAL_LIBFSREFS ) */\n\n#endif /* !defined( _LIBFSREFS_INTERNAL_EXTERN_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_file_entry.c",
    "content": "/*\n * File entry functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_directory_entry.h\"\n#include \"libfsrefs_directory_object.h\"\n#include \"libfsrefs_file_entry.h\"\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libuna.h\"\n#include \"libfsrefs_objects_tree.h\"\n#include \"libfsrefs_types.h\"\n\n/* Creates file_entry\n * Make sure the value file_entry is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_file_entry_initialize(\n     libfsrefs_file_entry_t **file_entry,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     libfsrefs_objects_tree_t *objects_tree,\n     libfsrefs_directory_entry_t *directory_entry,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_file_entry_t *internal_file_entry = NULL;\n\tstatic char *function                                = \"libfsrefs_file_entry_initialize\";\n\n\tif( file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file_entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *file_entry != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid file_entry value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_file_entry = memory_allocate_structure(\n\t                       libfsrefs_internal_file_entry_t );\n\n\tif( internal_file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create file entry.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     internal_file_entry,\n\t     0,\n\t     sizeof( libfsrefs_internal_file_entry_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear file entry.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_file_entry );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_internal_file_entry_get_directory_object(\n\t     internal_file_entry,\n\t     io_handle,\n\t     file_io_handle,\n\t     objects_tree,\n\t     directory_entry,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve directory object.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_initialize(\n\t     &( internal_file_entry->read_write_lock ),\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to initialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_file_entry->io_handle       = io_handle;\n\tinternal_file_entry->file_io_handle  = file_io_handle;\n\tinternal_file_entry->objects_tree    = objects_tree;\n\tinternal_file_entry->directory_entry = directory_entry;\n\n\t*file_entry = (libfsrefs_file_entry_t *) internal_file_entry;\n\n\treturn( 1 );\n\non_error:\n\tif( *file_entry != NULL )\n\t{\n\t\tmemory_free(\n\t\t *file_entry );\n\n\t\t*file_entry = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees file_entry\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_file_entry_free(\n     libfsrefs_file_entry_t **file_entry,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_file_entry_t *internal_file_entry = NULL;\n\tstatic char *function                                = \"libfsrefs_file_entry_free\";\n\tint result                                           = 1;\n\n\tif( file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file_entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *file_entry != NULL )\n\t{\n\t\tinternal_file_entry = (libfsrefs_internal_file_entry_t *) *file_entry;\n\t\t*file_entry         = NULL;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\t\tif( libcthreads_read_write_lock_free(\n\t\t     &( internal_file_entry->read_write_lock ),\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free read/write lock.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n#endif\n\t\tif( internal_file_entry->directory_object != NULL )\n\t\t{\n\t\t\tif( libfsrefs_directory_object_free(\n\t\t\t     &( internal_file_entry->directory_object ),\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t\t \"%s: unable to free directory object.\",\n\t\t\t\t function );\n\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}\n\t\tmemory_free(\n\t\t internal_file_entry );\n\t}\n\treturn( result );\n}\n\n/* Retrieves the directory object\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_internal_file_entry_get_directory_object(\n     libfsrefs_internal_file_entry_t *internal_file_entry,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     libfsrefs_objects_tree_t *objects_tree,\n     libfsrefs_directory_entry_t *directory_entry,\n     libcerror_error_t **error )\n{\n\tstatic char *function      = \"libfsrefs_internal_file_entry_get_directory_object\";\n\tuint64_t object_identifier = 0;\n\n\tif( internal_file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( internal_file_entry->directory_object != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid file entry - directory object already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( directory_entry == NULL )\n\t{\n\t\tobject_identifier = 0x00000600UL;\n\t}\n\telse if ( directory_entry->entry_type != 2 )\n\t{\n\t\treturn( 1 );\n\t}\n\telse\n\t{\n\t\tif( libfsrefs_directory_entry_get_object_identifier(\n\t\t     directory_entry,\n\t\t     &object_identifier,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve size object identifier from directory entry.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( libfsrefs_directory_object_initialize(\n\t     &( internal_file_entry->directory_object ),\n\t     io_handle,\n\t     objects_tree,\n\t     object_identifier,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create directory object.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_directory_object_read(\n\t     internal_file_entry->directory_object,\n\t     io_handle,\n\t     file_io_handle,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read directory object: 0x%08\" PRIx64 \".\",\n\t\t function,\n\t\t object_identifier );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( internal_file_entry->directory_object != NULL )\n\t{\n\t\tlibfsrefs_directory_object_free(\n\t\t &( internal_file_entry->directory_object ),\n\t\t NULL );\n\t}\n\treturn( -1 );\n}\n\n/* Retrieves the creation date and time\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nint libfsrefs_file_entry_get_creation_time(\n     libfsrefs_file_entry_t *file_entry,\n     uint64_t *filetime,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_file_entry_t *internal_file_entry = NULL;\n\tstatic char *function                                = \"libfsrefs_file_entry_get_creation_time\";\n\tint result                                           = 0;\n\n\tif( file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_file_entry = (libfsrefs_internal_file_entry_t *) file_entry;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( internal_file_entry->directory_entry != NULL )\n\t{\n\t\tresult = libfsrefs_directory_entry_get_creation_time(\n\t\t          internal_file_entry->directory_entry,\n\t\t          filetime,\n\t\t          error );\n\n\t\tif( result != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve creation time from directory entry.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Retrieves the (file) modification (last written) date and time\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nint libfsrefs_file_entry_get_modification_time(\n     libfsrefs_file_entry_t *file_entry,\n     uint64_t *filetime,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_file_entry_t *internal_file_entry = NULL;\n\tstatic char *function                                = \"libfsrefs_file_entry_get_modification_time\";\n\tint result                                           = 0;\n\n\tif( file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_file_entry = (libfsrefs_internal_file_entry_t *) file_entry;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( internal_file_entry->directory_entry != NULL )\n\t{\n\t\tresult = libfsrefs_directory_entry_get_modification_time(\n\t\t          internal_file_entry->directory_entry,\n\t\t          filetime,\n\t\t          error );\n\n\t\tif( result != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve modification time from directory entry.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Retrieves the access date and time\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nint libfsrefs_file_entry_get_access_time(\n     libfsrefs_file_entry_t *file_entry,\n     uint64_t *filetime,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_file_entry_t *internal_file_entry = NULL;\n\tstatic char *function                                = \"libfsrefs_file_entry_get_access_time\";\n\tint result                                           = 0;\n\n\tif( file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_file_entry = (libfsrefs_internal_file_entry_t *) file_entry;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( internal_file_entry->directory_entry != NULL )\n\t{\n\t\tresult = libfsrefs_directory_entry_get_access_time(\n\t\t          internal_file_entry->directory_entry,\n\t\t          filetime,\n\t\t          error );\n\n\t\tif( result != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve access time from directory entry.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Retrieves the (file system entry) modification date and time\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nint libfsrefs_file_entry_get_entry_modification_time(\n     libfsrefs_file_entry_t *file_entry,\n     uint64_t *filetime,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_file_entry_t *internal_file_entry = NULL;\n\tstatic char *function                                = \"libfsrefs_file_entry_get_entry_modification_time\";\n\tint result                                           = 0;\n\n\tif( file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_file_entry = (libfsrefs_internal_file_entry_t *) file_entry;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( internal_file_entry->directory_entry != NULL )\n\t{\n\t\tresult = libfsrefs_directory_entry_get_entry_modification_time(\n\t\t          internal_file_entry->directory_entry,\n\t\t          filetime,\n\t\t          error );\n\n\t\tif( result != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve entry modification time from directory entry.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Retrieves the file attribute flags\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nint libfsrefs_file_entry_get_file_attribute_flags(\n     libfsrefs_file_entry_t *file_entry,\n     uint32_t *file_attribute_flags,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_file_entry_t *internal_file_entry = NULL;\n\tstatic char *function                                = \"libfsrefs_file_entry_get_file_attribute_flags\";\n\tint result                                           = 0;\n\n\tif( file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_file_entry = (libfsrefs_internal_file_entry_t *) file_entry;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( internal_file_entry->directory_entry != NULL )\n\t{\n\t\tresult = libfsrefs_directory_entry_get_file_attribute_flags(\n\t\t          internal_file_entry->directory_entry,\n\t\t          file_attribute_flags,\n\t\t          error );\n\n\t\tif( result != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve file attribute flags from directory entry.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Retrieves the size of the UTF-8 encoded name\n * The returned size includes the end of string character\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nint libfsrefs_file_entry_get_utf8_name_size(\n     libfsrefs_file_entry_t *file_entry,\n     size_t *utf8_string_size,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_file_entry_t *internal_file_entry = NULL;\n\tstatic char *function                                = \"libfsrefs_file_entry_get_utf8_name_size\";\n\tint result                                           = 0;\n\n\tif( file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_file_entry = (libfsrefs_internal_file_entry_t *) file_entry;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( internal_file_entry->directory_entry != NULL )\n\t{\n\t\tresult = libfsrefs_directory_entry_get_utf8_name_size(\n\t\t          internal_file_entry->directory_entry,\n\t\t          utf8_string_size,\n\t\t          error );\n\n\t\tif( result != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve size of UTF-8 name from directory entry.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Retrieves the UTF-8 encoded name\n * The size should include the end of string character\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nint libfsrefs_file_entry_get_utf8_name(\n     libfsrefs_file_entry_t *file_entry,\n     uint8_t *utf8_string,\n     size_t utf8_string_size,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_file_entry_t *internal_file_entry = NULL;\n\tstatic char *function                                = \"libfsrefs_file_entry_get_utf8_name\";\n\tint result                                           = 0;\n\n\tif( file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_file_entry = (libfsrefs_internal_file_entry_t *) file_entry;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( internal_file_entry->directory_entry != NULL )\n\t{\n\t\tresult = libfsrefs_directory_entry_get_utf8_name(\n\t\t          internal_file_entry->directory_entry,\n\t\t          utf8_string,\n\t\t          utf8_string_size,\n\t\t          error );\n\n\t\tif( result != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve UTF-8 name from directory entry.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Retrieves the size of the UTF-16 encoded name\n * The returned size includes the end of string character\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nint libfsrefs_file_entry_get_utf16_name_size(\n     libfsrefs_file_entry_t *file_entry,\n     size_t *utf16_string_size,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_file_entry_t *internal_file_entry = NULL;\n\tstatic char *function                                = \"libfsrefs_file_entry_get_utf16_name_size\";\n\tint result                                           = 0;\n\n\tif( file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_file_entry = (libfsrefs_internal_file_entry_t *) file_entry;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( internal_file_entry->directory_entry != NULL )\n\t{\n\t\tresult = libfsrefs_directory_entry_get_utf16_name_size(\n\t\t          internal_file_entry->directory_entry,\n\t\t          utf16_string_size,\n\t\t          error );\n\n\t\tif( result != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve size of UTF-16 name from directory.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Retrieves the UTF-16 encoded name\n * The size should include the end of string character\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nint libfsrefs_file_entry_get_utf16_name(\n     libfsrefs_file_entry_t *file_entry,\n     uint16_t *utf16_string,\n     size_t utf16_string_size,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_file_entry_t *internal_file_entry = NULL;\n\tstatic char *function                                = \"libfsrefs_file_entry_get_utf16_name\";\n\tint result                                           = 0;\n\n\tif( file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_file_entry = (libfsrefs_internal_file_entry_t *) file_entry;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( internal_file_entry->directory_entry != NULL )\n\t{\n\t\tresult = libfsrefs_directory_entry_get_utf16_name(\n\t\t          internal_file_entry->directory_entry,\n\t\t          utf16_string,\n\t\t          utf16_string_size,\n\t\t          error );\n\n\t\tif( result != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve UTF-16 name from directory entry.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Retrieves the number of sub file entries\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_file_entry_get_number_of_sub_file_entries(\n     libfsrefs_file_entry_t *file_entry,\n     int *number_of_sub_file_entries,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_file_entry_t *internal_file_entry = NULL;\n\tstatic char *function                                = \"libfsrefs_file_entry_get_number_of_sub_file_entries\";\n\tint result                                           = 1;\n\tint safe_number_of_sub_file_entries                  = 0;\n\n\tif( file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_file_entry = (libfsrefs_internal_file_entry_t *) file_entry;\n\n\tif( number_of_sub_file_entries == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid number of sub file entries.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( internal_file_entry->directory_object != NULL )\n\t{\n\t\tif( libfsrefs_directory_object_get_number_of_directory_entries(\n\t\t     internal_file_entry->directory_object,\n\t\t     &safe_number_of_sub_file_entries,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve number of directory entries from directory object.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( result == 1 )\n\t{\n\t\t*number_of_sub_file_entries = safe_number_of_sub_file_entries;\n\t}\n\treturn( result );\n}\n\n/* Retrieves the sub file entry for the specific index\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_file_entry_get_sub_file_entry_by_index(\n     libfsrefs_file_entry_t *file_entry,\n     int sub_file_entry_index,\n     libfsrefs_file_entry_t **sub_file_entry,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_directory_entry_t *sub_directory_entry     = NULL;\n\tlibfsrefs_internal_file_entry_t *internal_file_entry = NULL;\n\tstatic char *function                                = \"libfsrefs_file_entry_get_sub_file_entry_by_index\";\n\tint result                                           = 1;\n\n\tif( file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_file_entry = (libfsrefs_internal_file_entry_t *) file_entry;\n\n\tif( sub_file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid sub file entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *sub_file_entry != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid sub file entry value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( internal_file_entry->directory_object != NULL )\n\t{\n\t\tif( libfsrefs_directory_object_get_directory_entry_by_index(\n\t\t     internal_file_entry->directory_object,\n\t\t     sub_file_entry_index,\n\t\t     &sub_directory_entry,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve directory entry: %d from directory object.\",\n\t\t\t function,\n\t\t\t sub_file_entry_index );\n\n\t\t\tresult = -1;\n\t\t}\n\t\t/* sub_file_entry takes over management of sub_directory_entry\n\t\t */\n\t\telse if( libfsrefs_file_entry_initialize(\n\t\t          sub_file_entry,\n\t\t          internal_file_entry->io_handle,\n\t\t          internal_file_entry->file_io_handle,\n\t\t          internal_file_entry->objects_tree,\n\t\t          sub_directory_entry,\n\t\t          error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create sub file entry: %d.\",\n\t\t\t function,\n\t\t\t sub_file_entry_index );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_read(\n\t     internal_file_entry->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_file_entry.h",
    "content": "/*\n * File entry functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_FILE_ENTRY_H )\n#define _LIBFSREFS_FILE_ENTRY_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_directory_entry.h\"\n#include \"libfsrefs_directory_object.h\"\n#include \"libfsrefs_extern.h\"\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcthreads.h\"\n#include \"libfsrefs_objects_tree.h\"\n#include \"libfsrefs_types.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_internal_file_entry libfsrefs_internal_file_entry_t;\n\nstruct libfsrefs_internal_file_entry\n{\n\t/* The IO handle\n\t */\n\tlibfsrefs_io_handle_t *io_handle;\n\n\t/* The file IO handle\n\t */\n\tlibbfio_handle_t *file_io_handle;\n\n\t/* The objects tree\n\t */\n\tlibfsrefs_objects_tree_t *objects_tree;\n\n\t/* The directory entry\n\t */\n\tlibfsrefs_directory_entry_t *directory_entry;\n\n\t/* The directory object\n\t */\n\tlibfsrefs_directory_object_t *directory_object;\n\n\t/* The (file) entry type\n\t */\n\tuint16_t entry_type;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\t/* The read/write lock\n\t */\n\tlibcthreads_read_write_lock_t *read_write_lock;\n#endif\n};\n\nint libfsrefs_file_entry_initialize(\n     libfsrefs_file_entry_t **file_entry,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     libfsrefs_objects_tree_t *objects_tree,\n     libfsrefs_directory_entry_t *directory_entry,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_free(\n     libfsrefs_file_entry_t **file_entry,\n     libcerror_error_t **error );\n\nint libfsrefs_internal_file_entry_get_directory_object(\n     libfsrefs_internal_file_entry_t *internal_file_entry,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     libfsrefs_objects_tree_t *objects_tree,\n     libfsrefs_directory_entry_t *directory_entry,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_creation_time(\n     libfsrefs_file_entry_t *file_entry,\n     uint64_t *filetime,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_modification_time(\n     libfsrefs_file_entry_t *file_entry,\n     uint64_t *filetime,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_access_time(\n     libfsrefs_file_entry_t *file_entry,\n     uint64_t *filetime,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_entry_modification_time(\n     libfsrefs_file_entry_t *file_entry,\n     uint64_t *filetime,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_file_attribute_flags(\n     libfsrefs_file_entry_t *file_entry,\n     uint32_t *file_attribute_flags,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_utf8_name_size(\n     libfsrefs_file_entry_t *file_entry,\n     size_t *utf8_string_size,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_utf8_name(\n     libfsrefs_file_entry_t *file_entry,\n     uint8_t *utf8_string,\n     size_t utf8_string_size,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_utf16_name_size(\n     libfsrefs_file_entry_t *file_entry,\n     size_t *utf16_string_size,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_utf16_name(\n     libfsrefs_file_entry_t *file_entry,\n     uint16_t *utf16_string,\n     size_t utf16_string_size,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_number_of_sub_file_entries(\n     libfsrefs_file_entry_t *file_entry,\n     int *number_of_sub_entries,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_sub_file_entry_by_index(\n     libfsrefs_file_entry_t *file_entry,\n     int sub_file_entry_index,\n     libfsrefs_file_entry_t **sub_file_entry,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_file_entry_get_size(\n     libfsrefs_file_entry_t *file_entry,\n     size64_t *size,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_FILE_ENTRY_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_file_system.c",
    "content": "/*\n * Objects tree functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_block_reference.h\"\n#include \"libfsrefs_checkpoint.h\"\n#include \"libfsrefs_file_system.h\"\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_ministore_node.h\"\n#include \"libfsrefs_superblock.h\"\n\n/* Creates a file system\n * Make sure the value file_system is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_file_system_initialize(\n     libfsrefs_file_system_t **file_system,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_file_system_initialize\";\n\n\tif( file_system == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file system.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *file_system != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid file system value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*file_system = memory_allocate_structure(\n\t                libfsrefs_file_system_t );\n\n\tif( *file_system == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create file system.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *file_system,\n\t     0,\n\t     sizeof( libfsrefs_file_system_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear file system.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *file_system );\n\n\t\t*file_system = NULL;\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *file_system != NULL )\n\t{\n\t\tmemory_free(\n\t\t *file_system );\n\n\t\t*file_system = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a file system\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_file_system_free(\n     libfsrefs_file_system_t **file_system,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_file_system_free\";\n\tint result            = 1;\n\n\tif( file_system == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file system.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *file_system != NULL )\n\t{\n\t\tif( ( *file_system )->checkpoint != NULL )\n\t\t{\n\t\t\tif( libfsrefs_checkpoint_free(\n\t\t\t     &( ( *file_system )->checkpoint ),\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t\t \"%s: unable to free checkpoint.\",\n\t\t\t\t function );\n\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}\n\t\tif( ( *file_system )->superblock != NULL )\n\t\t{\n\t\t\tif( libfsrefs_superblock_free(\n\t\t\t     &( ( *file_system )->superblock ),\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t\t \"%s: unable to free superblock.\",\n\t\t\t\t function );\n\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}\n\t\tmemory_free(\n\t\t *file_system );\n\n\t\t*file_system = NULL;\n\t}\n\treturn( result );\n}\n\n/* Reads the superblock\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_file_system_read_superblock(\n     libfsrefs_file_system_t *file_system,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     off64_t file_offset,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_file_system_read_superblock\";\n\n\tif( file_system == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file system.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( file_system->superblock != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid file system - superblock value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_superblock_initialize(\n\t     &( file_system->superblock ),\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create superblock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_superblock_read_file_io_handle(\n\t     file_system->superblock,\n\t     io_handle,\n\t     file_io_handle,\n\t     file_offset,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read superblock at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t function,\n\t\t file_offset,\n\t\t file_offset );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( file_system->superblock != NULL )\n\t{\n\t\tlibfsrefs_superblock_free(\n\t\t &( file_system->superblock ),\n\t\t NULL );\n\t}\n\treturn( -1 );\n}\n\n/* Reads the checkpoints\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_file_system_read_checkpoints(\n     libfsrefs_file_system_t *file_system,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_checkpoint_t *primary_checkpoint   = NULL;\n\tlibfsrefs_checkpoint_t *secondary_checkpoint = NULL;\n\tstatic char *function                        = \"libfsrefs_file_system_read_checkpoints\";\n\toff64_t checkpoint_offset                    = 0;\n\n\tif( file_system == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file system.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( file_system->superblock == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid file system - missing superblock.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( file_system->checkpoint != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid file system - checkpoint value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n/* TODO support more than 2 checkpoints */\n\n\tif( libfsrefs_checkpoint_initialize(\n\t     &primary_checkpoint,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create primary checkpoint.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tcheckpoint_offset = file_system->superblock->primary_checkpoint_block_number * io_handle->metadata_block_size;\n\n\tif( libfsrefs_checkpoint_read_file_io_handle(\n\t     primary_checkpoint,\n\t     io_handle,\n\t     file_io_handle,\n\t     checkpoint_offset,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read primary checkpoint at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t function,\n\t\t checkpoint_offset,\n\t\t checkpoint_offset );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_checkpoint_initialize(\n\t     &secondary_checkpoint,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create secondary checkpoint.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tcheckpoint_offset = file_system->superblock->secondary_checkpoint_block_number * io_handle->metadata_block_size;\n\n\tif( libfsrefs_checkpoint_read_file_io_handle(\n\t     secondary_checkpoint,\n\t     io_handle,\n\t     file_io_handle,\n\t     checkpoint_offset,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read secondary checkpoint at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t function,\n\t\t checkpoint_offset,\n\t\t checkpoint_offset );\n\n\t\tgoto on_error;\n\t}\n\tif( primary_checkpoint->sequence_number >= secondary_checkpoint->sequence_number )\n\t{\n\t\tif( libfsrefs_checkpoint_free(\n\t\t     &secondary_checkpoint,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free secondary checkpoint.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tfile_system->checkpoint = primary_checkpoint;\n\t}\n\telse\n\t{\n\t\tif( libfsrefs_checkpoint_free(\n\t\t     &primary_checkpoint,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free primary checkpoint.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tfile_system->checkpoint = secondary_checkpoint;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( secondary_checkpoint != NULL )\n\t{\n\t\tlibfsrefs_checkpoint_free(\n\t\t &secondary_checkpoint,\n\t\t NULL );\n\t}\n\tif( primary_checkpoint != NULL )\n\t{\n\t\tlibfsrefs_checkpoint_free(\n\t\t &primary_checkpoint,\n\t\t NULL );\n\t}\n\tfile_system->checkpoint = NULL;\n\n\treturn( -1 );\n}\n\n/* Reads the container trees\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_file_system_read_container_trees(\n     libfsrefs_file_system_t *file_system,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_ministore_node_t *root_node = NULL;\n\tstatic char *function                 = \"libfsrefs_file_system_read_container_trees\";\n\n\tif( file_system == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file system.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_file_system_get_ministore_tree(\n\t     file_system,\n\t     io_handle,\n\t     file_io_handle,\n\t     7,\n\t     &root_node,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve ministore tree: 7 (containers) root node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( ( root_node->node_type_flags & 0x02 ) == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported ministore tree: 7 (containers) root node - missing is root (0x02) flag.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_ministore_node_free(\n\t     &root_node,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t \"%s: unable to free ministore tree: 7 (containers) root node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_file_system_get_ministore_tree(\n\t     file_system,\n\t     io_handle,\n\t     file_io_handle,\n\t     8,\n\t     &root_node,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve ministore tree: 8 (containers) root node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( ( root_node->node_type_flags & 0x02 ) == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported ministore tree: 8 (containers) root node - missing is root (0x02) flag.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_ministore_node_free(\n\t     &root_node,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t \"%s: unable to free ministore tree: 8 (containers) root node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( root_node != NULL )\n\t{\n\t\tlibfsrefs_ministore_node_free(\n\t\t &root_node,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}\n\n/* Resolves the offsets of the block numbers in a block reference\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_file_system_get_block_offsets(\n     libfsrefs_file_system_t *file_system,\n     libfsrefs_io_handle_t *io_handle,\n     libfsrefs_block_reference_t *block_reference,\n     libcerror_error_t **error )\n{\n\tstatic char *function         = \"libfsrefs_file_system_get_block_offsets\";\n\tuint64_t block_number         = 0;\n\tuint64_t container_identifier = 0;\n\tuint8_t block_number_index    = 0;\n\n\tif( file_system == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file system.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( block_reference == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block reference.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tfor( block_number_index = 0;\n\t     block_number_index < 4;\n\t     block_number_index++ )\n\t{\n\t\tblock_number = block_reference->block_numbers[ block_number_index ];\n\n\t\tif( block_number == 0 )\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\tif( ( io_handle->container_size != 0 )\n\t\t && ( block_number > io_handle->container_size ) )\n\t\t{\n\t\t\tcontainer_identifier = block_number / io_handle->container_size;\n\t\t\tblock_number        %= io_handle->container_size;\n\n/* TODO look up container block range */\n\t\t}\n\t\tblock_reference->block_offsets[ block_number_index ] = (off64_t) ( block_number * io_handle->metadata_block_size );\n\t}\n\treturn( 1 );\n}\n\n/* Retrieves the number of ministore trees\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_file_system_get_number_of_ministore_trees(\n     libfsrefs_file_system_t *file_system,\n     int *number_of_ministore_trees,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_file_system_get_number_of_ministore_trees\";\n\n\tif( file_system == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file system.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_checkpoint_get_number_of_ministore_tree_block_references(\n\t     file_system->checkpoint,\n\t     number_of_ministore_trees,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of ministore tree block references from checkpoint.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Retrieves a specific ministore tree\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_file_system_get_ministore_tree(\n     libfsrefs_file_system_t *file_system,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     int ministore_tree_index,\n     libfsrefs_ministore_node_t **root_node,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_block_reference_t *block_reference = NULL;\n\tlibfsrefs_ministore_node_t *safe_root_node   = NULL;\n\tstatic char *function                        = \"libfsrefs_file_system_get_ministore_tree\";\n\n\tif( file_system == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file system.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( root_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid root node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_checkpoint_get_ministore_tree_block_reference_by_index(\n\t     file_system->checkpoint,\n\t     ministore_tree_index,\n\t     &block_reference,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve ministore tree: %d block reference from checkpoint.\",\n\t\t function,\n\t\t ministore_tree_index );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_file_system_get_block_offsets(\n\t     file_system,\n\t     io_handle,\n\t     block_reference,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve ministore tree: %d block offsets.\",\n\t\t function,\n\t\t ministore_tree_index );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_ministore_node_initialize(\n\t     &safe_root_node,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create ministore tree: %d root node.\",\n\t\t function,\n\t\t ministore_tree_index );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_ministore_node_read_file_io_handle(\n\t     safe_root_node,\n\t     io_handle,\n\t     file_io_handle,\n\t     block_reference,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read ministore tree: %d root node.\",\n\t\t function,\n\t\t ministore_tree_index );\n\n\t\tgoto on_error;\n\t}\n\t*root_node = safe_root_node;\n\n\treturn( 1 );\n\non_error:\n\tif( safe_root_node != NULL )\n\t{\n\t\tlibfsrefs_ministore_node_free(\n\t\t &safe_root_node,\n\t\t NULL );\n\t}\n\treturn( 1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_file_system.h",
    "content": "/*\n * File system functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_FILE_SYSTEM_H )\n#define _LIBFSREFS_FILE_SYSTEM_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_block_reference.h\"\n#include \"libfsrefs_checkpoint.h\"\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_ministore_node.h\"\n#include \"libfsrefs_superblock.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_file_system libfsrefs_file_system_t;\n\nstruct libfsrefs_file_system\n{\n\t/* The superblock\n\t */\n\tlibfsrefs_superblock_t *superblock;\n\n\t/* The (latest) checkpoint\n\t */\n\tlibfsrefs_checkpoint_t *checkpoint;\n\n\t/* The containers (ministore) root node\n\t */\n\tlibfsrefs_ministore_node_t *containers_root_node;\n};\n\nint libfsrefs_file_system_initialize(\n     libfsrefs_file_system_t **file_system,\n     libcerror_error_t **error );\n\nint libfsrefs_file_system_free(\n     libfsrefs_file_system_t **file_system,\n     libcerror_error_t **error );\n\nint libfsrefs_file_system_read_superblock(\n     libfsrefs_file_system_t *file_system,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     off64_t file_offset,\n     libcerror_error_t **error );\n\nint libfsrefs_file_system_read_checkpoints(\n     libfsrefs_file_system_t *file_system,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     libcerror_error_t **error );\n\nint libfsrefs_file_system_read_container_trees(\n     libfsrefs_file_system_t *file_system,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     libcerror_error_t **error );\n\nint libfsrefs_file_system_get_block_offsets(\n     libfsrefs_file_system_t *file_system,\n     libfsrefs_io_handle_t *io_handle,\n     libfsrefs_block_reference_t *block_reference,\n     libcerror_error_t **error );\n\nint libfsrefs_file_system_get_number_of_ministore_trees(\n     libfsrefs_file_system_t *file_system,\n     int *number_of_ministore_trees,\n     libcerror_error_t **error );\n\nint libfsrefs_file_system_get_ministore_tree(\n     libfsrefs_file_system_t *file_system,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     int ministore_tree_index,\n     libfsrefs_ministore_node_t **root_node,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_FILE_SYSTEM_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_io_handle.c",
    "content": "/*\n * Input/Output (IO) handle functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libcerror.h\"\n\n#include \"fsrefs_volume_header.h\"\n\nconst char fsrefs_volume_file_system_signature[ 8 ] = {\n\t'R', 'e', 'F', 'S', 0, 0, 0, 0 };\n\n/* Creates an IO handle\n * Make sure the value io_handle is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_io_handle_initialize(\n     libfsrefs_io_handle_t **io_handle,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_io_handle_initialize\";\n\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *io_handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid IO handle value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*io_handle = memory_allocate_structure(\n\t              libfsrefs_io_handle_t );\n\n\tif( *io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *io_handle,\n\t     0,\n\t     sizeof( libfsrefs_io_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *io_handle != NULL )\n\t{\n\t\tmemory_free(\n\t\t *io_handle );\n\n\t\t*io_handle = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees an IO handle\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_io_handle_free(\n     libfsrefs_io_handle_t **io_handle,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_io_handle_free\";\n\tint result            = 1;\n\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *io_handle != NULL )\n\t{\n\t\tmemory_free(\n\t\t *io_handle );\n\n\t\t*io_handle = NULL;\n\t}\n\treturn( result );\n}\n\n/* Clears the IO handle\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_io_handle_clear(\n     libfsrefs_io_handle_t *io_handle,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_io_handle_clear\";\n\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( memory_set(\n\t     io_handle,\n\t     0,\n\t     sizeof( libfsrefs_io_handle_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_io_handle.h",
    "content": "/*\n * Input/Output (IO) handle functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_IO_HANDLE_H )\n#define _LIBFSREFS_IO_HANDLE_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\nextern const char fsrefs_volume_file_system_signature[ 8 ];\n\ntypedef struct libfsrefs_io_handle libfsrefs_io_handle_t;\n\nstruct libfsrefs_io_handle\n{\n\t/* The number of bytes per sector\n\t */\n\tuint32_t bytes_per_sector;\n\n\t/* The volume size\n\t */\n\tsize64_t volume_size;\n\n\t/* The major format version\n\t */\n\tuint8_t major_format_version;\n\n\t/* The minor format version\n\t */\n\tuint8_t minor_format_version;\n\n\t/* The cluster block size\n\t */\n\tsize32_t cluster_block_size;\n\n\t/* The metadata block size\n\t */\n\tsize32_t metadata_block_size;\n\n\t/* The container size\n\t */\n\tsize64_t container_size;\n\n\t/* Value to indicate if abort was signalled\n\t */\n\tint abort;\n};\n\nint libfsrefs_io_handle_initialize(\n     libfsrefs_io_handle_t **io_handle,\n     libcerror_error_t **error );\n\nint libfsrefs_io_handle_free(\n     libfsrefs_io_handle_t **io_handle,\n     libcerror_error_t **error );\n\nint libfsrefs_io_handle_clear(\n     libfsrefs_io_handle_t *io_handle,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_IO_HANDLE_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_libbfio.h",
    "content": "/*\n * The libbfio header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_LIBBFIO_H )\n#define _LIBFSREFS_LIBBFIO_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBBFIO for local use of libbfio\n */\n#if defined( HAVE_LOCAL_LIBBFIO )\n\n#include <libbfio_definitions.h>\n#include <libbfio_file.h>\n#include <libbfio_file_pool.h>\n#include <libbfio_file_range.h>\n#include <libbfio_handle.h>\n#include <libbfio_memory_range.h>\n#include <libbfio_pool.h>\n#include <libbfio_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBBFIO_DLL_IMPORT\n * before including libbfio.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBBFIO_DLL_IMPORT\n#endif\n\n#include <libbfio.h>\n\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( LIBBFIO_HAVE_MULTI_THREAD_SUPPORT )\n#error Multi-threading support requires libbfio with multi-threading support\n#endif\n\n#endif /* defined( HAVE_LOCAL_LIBBFIO ) */\n\n#endif /* !defined( _LIBFSREFS_LIBBFIO_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_libcdata.h",
    "content": "/*\n * The libcdata header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_LIBCDATA_H )\n#define _LIBFSREFS_LIBCDATA_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBCDATA for local use of libcdata\n */\n#if defined( HAVE_LOCAL_LIBCDATA )\n\n#include <libcdata_array.h>\n#include <libcdata_btree.h>\n#include <libcdata_definitions.h>\n#include <libcdata_list.h>\n#include <libcdata_list_element.h>\n#include <libcdata_range_list.h>\n#include <libcdata_tree_node.h>\n#include <libcdata_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBCDATA_DLL_IMPORT\n * before including libcdata.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBCDATA_DLL_IMPORT\n#endif\n\n#include <libcdata.h>\n\n#endif /* defined( HAVE_LOCAL_LIBCDATA ) */\n\n#endif /* !defined( _LIBFSREFS_LIBCDATA_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_libcerror.h",
    "content": "/*\n * The libcerror header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_LIBCERROR_H )\n#define _LIBFSREFS_LIBCERROR_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBCERROR for local use of libcerror\n */\n#if defined( HAVE_LOCAL_LIBCERROR )\n\n#include <libcerror_definitions.h>\n#include <libcerror_error.h>\n#include <libcerror_system.h>\n#include <libcerror_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT\n * before including libcerror.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBCERROR_DLL_IMPORT\n#endif\n\n#include <libcerror.h>\n\n#endif /* defined( HAVE_LOCAL_LIBCERROR ) */\n\n#endif /* !defined( _LIBFSREFS_LIBCERROR_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_libclocale.h",
    "content": "/*\n * The libclocale header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_LIBCLOCALE_H )\n#define _LIBFSREFS_LIBCLOCALE_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBCLOCALE for local use of libclocale\n */\n#if defined( HAVE_LOCAL_LIBCLOCALE )\n\n#include <libclocale_codepage.h>\n#include <libclocale_definitions.h>\n#include <libclocale_locale.h>\n#include <libclocale_support.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBCLOCALE_DLL_IMPORT\n * before including libclocale.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBCLOCALE_DLL_IMPORT\n#endif\n\n#include <libclocale.h>\n\n#endif /* defined( HAVE_LOCAL_LIBCLOCALE ) */\n\n#endif /* !defined( _LIBFSREFS_LIBCLOCALE_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_libcnotify.h",
    "content": "/*\n * The libcnotify header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_LIBCNOTIFY_H )\n#define _LIBFSREFS_LIBCNOTIFY_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBCNOTIFY for local use of libcnotify\n */\n#if defined( HAVE_LOCAL_LIBCNOTIFY )\n\n#include <libcnotify_definitions.h>\n#include <libcnotify_print.h>\n#include <libcnotify_stream.h>\n#include <libcnotify_verbose.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBCNOTIFY_DLL_IMPORT\n * before including libcnotify.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBCNOTIFY_DLL_IMPORT\n#endif\n\n#include <libcnotify.h>\n\n#endif /* defined( HAVE_LOCAL_LIBCNOTIFY ) */\n\n#endif /* !defined( _LIBFSREFS_LIBCNOTIFY_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_libcthreads.h",
    "content": "/*\n * The libcthreads header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_LIBCTHREADS_H )\n#define _LIBFSREFS_LIBCTHREADS_H\n\n#include <common.h>\n\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBFSREFS )\n#define HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT\n#endif\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\n/* Define HAVE_LOCAL_LIBCTHREADS for local use of libcthreads\n */\n#if defined( HAVE_LOCAL_LIBCTHREADS )\n\n#include <libcthreads_condition.h>\n#include <libcthreads_definitions.h>\n#include <libcthreads_lock.h>\n#include <libcthreads_mutex.h>\n#include <libcthreads_read_write_lock.h>\n#include <libcthreads_queue.h>\n#include <libcthreads_thread.h>\n#include <libcthreads_thread_attributes.h>\n#include <libcthreads_thread_pool.h>\n#include <libcthreads_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBCTHREADS_DLL_IMPORT\n * before including libcthreads.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBCTHREADS_DLL_IMPORT\n#endif\n\n#include <libcthreads.h>\n\n#endif /* defined( HAVE_LOCAL_LIBCTHREADS ) */\n\n#endif /* defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT ) */\n\n#endif /* !defined( _LIBFSREFS_LIBCTHREADS_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_libfcache.h",
    "content": "/*\n * The libfcache header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_LIBFCACHE_H )\n#define _LIBFSREFS_LIBFCACHE_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBFCACHE for local use of libfcache\n */\n#if defined( HAVE_LOCAL_LIBFCACHE )\n\n#include <libfcache_cache.h>\n#include <libfcache_date_time.h>\n#include <libfcache_definitions.h>\n#include <libfcache_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBFCACHE_DLL_IMPORT\n * before including libfcache.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBFCACHE_DLL_IMPORT\n#endif\n\n#include <libfcache.h>\n\n#endif /* defined( HAVE_LOCAL_LIBFCACHE ) */\n\n#endif /* !defined( _LIBFSREFS_LIBFCACHE_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_libfdata.h",
    "content": "/*\n * The libfdata header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_LIBFDATA_H )\n#define _LIBFSREFS_LIBFDATA_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBFDATA for local use of libfdata\n */\n#if defined( HAVE_LOCAL_LIBFDATA )\n\n#include <libfdata_area.h>\n#include <libfdata_definitions.h>\n#include <libfdata_list.h>\n#include <libfdata_list_element.h>\n#include <libfdata_range_list.h>\n#include <libfdata_stream.h>\n#include <libfdata_types.h>\n#include <libfdata_vector.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBFDATA_DLL_IMPORT\n * before including libfdata.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBFDATA_DLL_IMPORT\n#endif\n\n#include <libfdata.h>\n\n#endif /* defined( HAVE_LOCAL_LIBFDATA ) */\n\n#endif /* !defined( _LIBFSREFS_LIBFDATA_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_libfdatetime.h",
    "content": "/*\n * The libfdatetime header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_LIBFDATETIME_H )\n#define _LIBFSREFS_LIBFDATETIME_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBFDATETIME for local use of libfdatetime\n */\n#if defined( HAVE_LOCAL_LIBFDATETIME )\n\n#include <libfdatetime_date_time_values.h>\n#include <libfdatetime_definitions.h>\n#include <libfdatetime_fat_date_time.h>\n#include <libfdatetime_filetime.h>\n#include <libfdatetime_floatingtime.h>\n#include <libfdatetime_hfs_time.h>\n#include <libfdatetime_nsf_timedate.h>\n#include <libfdatetime_posix_time.h>\n#include <libfdatetime_systemtime.h>\n#include <libfdatetime_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBFDATETIME_DLL_IMPORT\n * before including libfdatetime.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBFDATETIME_DLL_IMPORT\n#endif\n\n#include <libfdatetime.h>\n\n#endif /* defined( HAVE_LOCAL_LIBFDATETIME ) */\n\n#endif /* !defined( _LIBFSREFS_LIBFDATETIME_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_libfguid.h",
    "content": "/*\n * The libfguid header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_LIBFGUID_H )\n#define _LIBFSREFS_LIBFGUID_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBFGUID for local use of libfguid\n */\n#if defined( HAVE_LOCAL_LIBFGUID )\n\n#include <libfguid_definitions.h>\n#include <libfguid_identifier.h>\n#include <libfguid_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBFGUID_DLL_IMPORT\n * before including libfguid.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBFGUID_DLL_IMPORT\n#endif\n\n#include <libfguid.h>\n\n#endif /* defined( HAVE_LOCAL_LIBFGUID ) */\n\n#endif /* !defined( _LIBFSREFS_LIBFGUID_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_libfwnt.h",
    "content": "/*\n * The libfwnt header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_LIBFWNT_H )\n#define _LIBFSREFS_LIBFWNT_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBFWNT for local use of libfwnt\n */\n#if defined( HAVE_LOCAL_LIBFWNT )\n\n#include <libfwnt_access_control_entry.h>\n#include <libfwnt_access_control_list.h>\n#include <libfwnt_bit_stream.h>\n#include <libfwnt_definitions.h>\n#include <libfwnt_huffman_tree.h>\n#include <libfwnt_locale_identifier.h>\n#include <libfwnt_lznt1.h>\n#include <libfwnt_lzx.h>\n#include <libfwnt_lzxpress.h>\n#include <libfwnt_security_descriptor.h>\n#include <libfwnt_security_identifier.h>\n#include <libfwnt_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBFWNT_DLL_IMPORT\n * before including libfwnt.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBFWNT_DLL_IMPORT\n#endif\n\n#include <libfwnt.h>\n\n#endif /* defined( HAVE_LOCAL_LIBFWNT ) */\n\n#endif /* !defined( _LIBFSREFS_LIBFWNT_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_libuna.h",
    "content": "/*\n * The libuna header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_LIBUNA_H )\n#define _LIBFSREFS_LIBUNA_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBUNA for local use of libuna\n */\n#if defined( HAVE_LOCAL_LIBUNA )\n\n#include <libuna_base16_stream.h>\n#include <libuna_base32_stream.h>\n#include <libuna_base64_stream.h>\n#include <libuna_byte_stream.h>\n#include <libuna_unicode_character.h>\n#include <libuna_url_stream.h>\n#include <libuna_utf16_stream.h>\n#include <libuna_utf16_string.h>\n#include <libuna_utf32_stream.h>\n#include <libuna_utf32_string.h>\n#include <libuna_utf7_stream.h>\n#include <libuna_utf8_stream.h>\n#include <libuna_utf8_string.h>\n#include <libuna_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBUNA_DLL_IMPORT\n * before including libuna.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBUNA_DLL_IMPORT\n#endif\n\n#include <libuna.h>\n\n#endif /* defined( HAVE_LOCAL_LIBUNA ) */\n\n#endif /* !defined( _LIBFSREFS_LIBUNA_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_metadata_block_header.c",
    "content": "/*\n * The REFS metadata block header functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n#include \"libfsrefs_metadata_block_header.h\"\n\n#include \"fsrefs_metadata_block.h\"\n\n/* Creates a metadata block header\n * Make sure the value metadata_block_header is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_metadata_block_header_initialize(\n     libfsrefs_metadata_block_header_t **metadata_block_header,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_metadata_block_header_initialize\";\n\n\tif( metadata_block_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid metadata block header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *metadata_block_header != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid metadata block header value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*metadata_block_header = memory_allocate_structure(\n\t                          libfsrefs_metadata_block_header_t );\n\n\tif( *metadata_block_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create metadata block header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *metadata_block_header,\n\t     0,\n\t     sizeof( libfsrefs_metadata_block_header_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear metadata block header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *metadata_block_header != NULL )\n\t{\n\t\tmemory_free(\n\t\t *metadata_block_header );\n\n\t\t*metadata_block_header = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a metadata block header\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_metadata_block_header_free(\n     libfsrefs_metadata_block_header_t **metadata_block_header,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_metadata_block_header_free\";\n\n\tif( metadata_block_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid metadata block header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *metadata_block_header != NULL )\n\t{\n\t\tmemory_free(\n\t\t *metadata_block_header );\n\n\t\t*metadata_block_header = NULL;\n\t}\n\treturn( 1 );\n}\n\n/* Reads the metadata block header\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_metadata_block_header_read_data(\n     libfsrefs_metadata_block_header_t *metadata_block_header,\n     libfsrefs_io_handle_t *io_handle,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_metadata_block_header_read_data\";\n\tsize_t header_size    = 0;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tuint64_t value_64bit  = 0;\n\tuint32_t value_32bit  = 0;\n#endif\n\n\tif( metadata_block_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid metadata block header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle->major_format_version == 1 )\n\t{\n\t\theader_size = sizeof( fsrefs_metadata_block_header_v1_t );\n\t}\n\telse if( io_handle->major_format_version == 3 )\n\t{\n\t\theader_size = sizeof( fsrefs_metadata_block_header_v3_t );\n\t}\n\telse\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported format version: %\" PRIu8 \".%\" PRIu8 \".\",\n\t\t function,\n\t\t io_handle->major_format_version,\n\t\t io_handle->minor_format_version );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( data_size < header_size )\n\t || ( data_size > (size_t) SSIZE_MAX ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: metadata block header data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t header_size,\n\t\t 0 );\n\t}\n#endif\n\tif( io_handle->major_format_version == 1 )\n\t{\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_metadata_block_header_v1_t *) data )->block_number,\n\t\t metadata_block_header->block_numbers[ 0 ] );\n\t}\n\telse if( io_handle->major_format_version == 3 )\n\t{\n\t\tif( memory_copy(\n\t\t     metadata_block_header->signature,\n\t\t     ( (fsrefs_metadata_block_header_v3_t *) data )->signature,\n\t\t     4 ) == NULL )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t\t LIBCERROR_MEMORY_ERROR_COPY_FAILED,\n\t\t\t \"%s: unable to copy signature.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_metadata_block_header_v3_t *) data )->block_number1,\n\t\t metadata_block_header->block_numbers[ 0 ] );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_metadata_block_header_v3_t *) data )->block_number2,\n\t\t metadata_block_header->block_numbers[ 1 ] );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_metadata_block_header_v3_t *) data )->block_number3,\n\t\t metadata_block_header->block_numbers[ 2 ] );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_metadata_block_header_v3_t *) data )->block_number4,\n\t\t metadata_block_header->block_numbers[ 3 ] );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tif( io_handle->major_format_version == 1 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: block number\\t\\t\\t: %\" PRIu64 \"\\n\",\n\t\t\t function,\n\t\t\t metadata_block_header->block_numbers[ 0 ] );\n\n\t\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t\t ( (fsrefs_metadata_block_header_v1_t *) data )->unknown1,\n\t\t\t value_64bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: sequence number\\t\\t: %\" PRIu64 \"\\n\",\n\t\t\t function,\n\t\t\t value_64bit );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: object identifier\\n\",\n\t\t\t function );\n\t\t\tlibcnotify_print_data(\n\t\t\t ( (fsrefs_metadata_block_header_v1_t *) data )->object_identifier,\n\t\t\t 16,\n\t\t\t 0 );\n\n\t\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t\t ( (fsrefs_metadata_block_header_v1_t *) data )->unknown1,\n\t\t\t value_64bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown1\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t\t function,\n\t\t\t value_64bit );\n\n\t\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t\t ( (fsrefs_metadata_block_header_v1_t *) data )->unknown2,\n\t\t\t value_64bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown2\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t\t function,\n\t\t\t value_64bit );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"\\n\" );\n\t\t}\n\t\telse if( io_handle->major_format_version == 3 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: signature\\t\\t\\t: %c%c%c%c\\n\",\n\t\t\t function,\n\t\t\t ( (fsrefs_metadata_block_header_v3_t *) data )->signature[ 0 ],\n\t\t\t ( (fsrefs_metadata_block_header_v3_t *) data )->signature[ 1 ],\n\t\t\t ( (fsrefs_metadata_block_header_v3_t *) data )->signature[ 2 ],\n\t\t\t ( (fsrefs_metadata_block_header_v3_t *) data )->signature[ 3 ] );\n\n\t\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t\t ( (fsrefs_metadata_block_header_v3_t *) data )->unknown1,\n\t\t\t value_32bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown1\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t\t function,\n\t\t\t value_32bit );\n\n\t\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t\t ( (fsrefs_metadata_block_header_v3_t *) data )->unknown2,\n\t\t\t value_32bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown2\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t\t function,\n\t\t\t value_32bit );\n\n\t\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t\t ( (fsrefs_metadata_block_header_v3_t *) data )->unknown3,\n\t\t\t value_32bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown3\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t\t function,\n\t\t\t value_32bit );\n\n\t\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t\t ( (fsrefs_metadata_block_header_v3_t *) data )->unknown4,\n\t\t\t value_64bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown4\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t\t function,\n\t\t\t value_64bit );\n\n\t\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t\t ( (fsrefs_metadata_block_header_v3_t *) data )->unknown5,\n\t\t\t value_64bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown5\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t\t function,\n\t\t\t value_64bit );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: block number1\\t\\t: %\" PRIu64 \"\\n\",\n\t\t\t function,\n\t\t\t metadata_block_header->block_numbers[ 0 ] );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: block number2\\t\\t: %\" PRIu64 \"\\n\",\n\t\t\t function,\n\t\t\t metadata_block_header->block_numbers[ 1 ] );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: block number3\\t\\t: %\" PRIu64 \"\\n\",\n\t\t\t function,\n\t\t\t metadata_block_header->block_numbers[ 2 ] );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: block number4\\t\\t: %\" PRIu64 \"\\n\",\n\t\t\t function,\n\t\t\t metadata_block_header->block_numbers[ 3 ] );\n\n\t\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t\t ( (fsrefs_metadata_block_header_v3_t *) data )->unknown6,\n\t\t\t value_64bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown6\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t\t function,\n\t\t\t value_64bit );\n\n\t\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t\t ( (fsrefs_metadata_block_header_v3_t *) data )->unknown7,\n\t\t\t value_64bit );\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown7\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t\t function,\n\t\t\t value_64bit );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"\\n\" );\n\t\t}\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\treturn( 1 );\n}\n\n/* Reads the metadata block header\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_metadata_block_header_read_file_io_handle(\n     libfsrefs_metadata_block_header_t *metadata_block_header,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     off64_t file_offset,\n     libcerror_error_t **error )\n{\n\tuint8_t metadata_block_header_data[ sizeof( fsrefs_metadata_block_header_v3_t ) ];\n\n\tstatic char *function = \"libfsrefs_metadata_block_header_read_file_io_handle\";\n\tsize_t read_size      = 0;\n\tssize_t read_count    = 0;\n\n\tif( metadata_block_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid metadata block header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle->major_format_version == 1 )\n\t{\n\t\tread_size = sizeof( fsrefs_metadata_block_header_v1_t );\n\t}\n\telse if( io_handle->major_format_version == 3 )\n\t{\n\t\tread_size = sizeof( fsrefs_metadata_block_header_v3_t );\n\t}\n\telse\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported format version: %\" PRIu8 \".%\" PRIu8 \".\",\n\t\t function,\n\t\t io_handle->major_format_version,\n\t\t io_handle->minor_format_version );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: reading metadata block header at offset: %\" PRIi64 \" (0x%08\" PRIx64 \")\\n\",\n\t\t function,\n\t\t file_offset,\n\t\t file_offset );\n\t}\n#endif\n\tread_count = libbfio_handle_read_buffer_at_offset(\n\t              file_io_handle,\n\t              metadata_block_header_data,\n\t              read_size,\n\t              file_offset,\n\t              error );\n\n\tif( read_count != (ssize_t) read_size )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read metadata block header data at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t function,\n\t\t file_offset,\n\t\t file_offset );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_metadata_block_header_read_data(\n\t     metadata_block_header,\n\t     io_handle,\n\t     metadata_block_header_data,\n\t     read_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read metadata block header data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_metadata_block_header.h",
    "content": "/*\n * The REFS metadata block header functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_METADATA_BLOCK_HEADER_H )\n#define _LIBFSREFS_METADATA_BLOCK_HEADER_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_metadata_block_header libfsrefs_metadata_block_header_t;\n\nstruct libfsrefs_metadata_block_header\n{\n\t/* The signature\n\t */\n\tuint8_t signature[ 4 ];\n\n\t/* The block numbers\n\t */\n\tuint64_t block_numbers[ 4 ];\n};\n\nint libfsrefs_metadata_block_header_initialize(\n     libfsrefs_metadata_block_header_t **metadata_block_header,\n     libcerror_error_t **error );\n\nint libfsrefs_metadata_block_header_free(\n     libfsrefs_metadata_block_header_t **metadata_block_header,\n     libcerror_error_t **error );\n\nint libfsrefs_metadata_block_header_read_data(\n     libfsrefs_metadata_block_header_t *metadata_block_header,\n     libfsrefs_io_handle_t *io_handle,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error );\n\nint libfsrefs_metadata_block_header_read_file_io_handle(\n     libfsrefs_metadata_block_header_t *metadata_block_header,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     off64_t file_offset,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_METADATA_BLOCK_HEADER_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_ministore_node.c",
    "content": "/*\n * Ministore node (or level 2+ metadata) functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_block_reference.h\"\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n#include \"libfsrefs_metadata_block_header.h\"\n#include \"libfsrefs_ministore_node.h\"\n#include \"libfsrefs_node_header.h\"\n#include \"libfsrefs_node_record.h\"\n#include \"libfsrefs_tree_header.h\"\n\n#include \"fsrefs_metadata_block.h\"\n#include \"fsrefs_ministore_tree.h\"\n\n/* Creates a Ministore node\n * Make sure the value ministore_node is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_ministore_node_initialize(\n     libfsrefs_ministore_node_t **ministore_node,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_ministore_node_initialize\";\n\n\tif( ministore_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid ministore node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *ministore_node != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid ministore node value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*ministore_node = memory_allocate_structure(\n\t                   libfsrefs_ministore_node_t );\n\n\tif( *ministore_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create ministore node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *ministore_node,\n\t     0,\n\t     sizeof( libfsrefs_ministore_node_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear ministore node.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *ministore_node );\n\n\t\t*ministore_node = NULL;\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_initialize(\n\t     &( ( *ministore_node )->records_array ),\n\t     0,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create records array.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *ministore_node != NULL )\n\t{\n\t\tmemory_free(\n\t\t *ministore_node );\n\n\t\t*ministore_node = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a Ministore node\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_ministore_node_free(\n     libfsrefs_ministore_node_t **ministore_node,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_ministore_node_free\";\n\tint result            = 1;\n\n\tif( ministore_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid ministore node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *ministore_node != NULL )\n\t{\n\t\t/* The data reference is freed elsewhere\n\t\t */\n\t\tif( libcdata_array_free(\n\t\t     &( ( *ministore_node )->records_array ),\n\t\t     (int (*)(intptr_t **, libcerror_error_t **)) &libfsrefs_node_record_free,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free records array.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t\tif( ( *ministore_node )->internal_data != NULL )\n\t\t{\n\t\t\tmemory_free(\n\t\t\t ( *ministore_node )->internal_data );\n\t\t}\n\t\tmemory_free(\n\t\t *ministore_node );\n\n\t\t*ministore_node = NULL;\n\t}\n\treturn( result );\n}\n\n/* Reads a Ministore node\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_ministore_node_read_data(\n     libfsrefs_ministore_node_t *ministore_node,\n     libfsrefs_io_handle_t *io_handle,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_node_header_t *node_header = NULL;\n\tlibfsrefs_node_record_t *node_record = NULL;\n\tlibfsrefs_tree_header_t *tree_header = NULL;\n\tstatic char *function                = \"libfsrefs_ministore_node_read_data\";\n\tsize_t data_offset                   = 0;\n\tsize_t record_offsets_data_offset    = 0;\n\tuint32_t node_header_offset          = 0;\n\tuint32_t record_data_offset          = 0;\n\tuint32_t record_data_size            = 0;\n\tuint32_t record_offsets_index        = 0;\n\tint entry_index                      = 0;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tsize_t data_area_start_offset        = 0;\n#endif\n\n\tif( ministore_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid ministore node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ministore_node->data != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid ministore_node - data value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( io_handle->major_format_version != 1 )\n\t && ( io_handle->major_format_version != 3 ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported format version: %\" PRIu8 \".%\" PRIu8 \".\",\n\t\t function,\n\t\t io_handle->major_format_version,\n\t\t io_handle->minor_format_version );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( data_size < 4 )\n\t || ( data_size > (size_t) SSIZE_MAX ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tbyte_stream_copy_to_uint32_little_endian(\n\t data,\n\t node_header_offset );\n\n\tif( ( node_header_offset < 4 )\n\t || ( node_header_offset >= ( data_size - 4 ) ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid node header offset value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tdata_offset = 4;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: node header offset\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t node_header_offset );\n\t}\n#endif\n\tif( node_header_offset >= ( data_offset + sizeof( fsrefs_ministore_tree_header_t ) ) )\n\t{\n\t\tif( libfsrefs_tree_header_initialize(\n\t\t     &tree_header,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create tree header.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_tree_header_read_data(\n\t\t     tree_header,\n\t\t     &( data[ data_offset ] ),\n\t\t     data_size - data_offset,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t \"%s: unable to read tree header.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_tree_header_free(\n\t\t     &tree_header,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free tree header.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tdata_offset += sizeof( fsrefs_ministore_tree_header_t );\n\n\t\tministore_node->header_data      = &( data[ data_offset ] );\n\t\tministore_node->header_data_size = node_header_offset - data_offset;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\t\tif( libcnotify_verbose != 0 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: header data:\\n\",\n\t\t\t function );\n\t\t\tlibcnotify_print_data(\n\t\t\t ministore_node->header_data,\n\t\t\t ministore_node->header_data_size,\n\t\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t\t}\n#endif\n\t}\n\tdata_offset = node_header_offset;\n\n\tif( libfsrefs_node_header_initialize(\n\t     &node_header,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create node header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_node_header_read_data(\n\t     node_header,\n\t     &( data[ data_offset ] ),\n\t     data_size - data_offset,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read node header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tdata_offset += sizeof( fsrefs_ministore_tree_node_header_t );\n\n\tif( ( node_header->data_area_start_offset < sizeof( fsrefs_ministore_tree_node_header_t ) )\n\t || ( node_header->data_area_start_offset > ( data_size - node_header_offset ) ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid node header - data area start offset value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tdata_area_start_offset = node_header_offset + node_header->data_area_start_offset;\n\n\t\tif( data_offset < data_area_start_offset )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: node header trailing data:\\n\",\n\t\t\t function );\n\t\t\tlibcnotify_print_data(\n\t\t\t &( data[ data_offset ] ),\n\t\t\t data_area_start_offset - data_offset,\n\t\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t\t}\n\t}\n#endif\n\tif( ( node_header->data_area_end_offset < sizeof( fsrefs_ministore_tree_node_header_t ) )\n\t || ( node_header->data_area_end_offset > ( data_size - node_header_offset ) ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid node header - data area end offset value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( ( node_header->record_offsets_start_offset < sizeof( fsrefs_ministore_tree_node_header_t ) )\n\t || ( node_header->record_offsets_start_offset > ( data_size - node_header_offset ) ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid node header - record offsets start offset value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( node_header->number_of_record_offsets > ( ( data_size - node_header_offset - node_header->record_offsets_start_offset ) / 4 ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid node header - number of record offsets entries value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( ( node_header->record_offsets_end_offset != 0 )\n\t && ( ( node_header->record_offsets_end_offset < sizeof( fsrefs_ministore_tree_node_header_t ) )\n\t  ||  ( node_header->record_offsets_end_offset > ( data_size - node_header_offset ) ) ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid node header - record offsets end offset value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tministore_node->node_type_flags = node_header->node_type_flags;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: ministore node data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t &( data[ node_header_offset ] ),\n\t\t data_size - node_header_offset,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n\trecord_offsets_data_offset = node_header_offset + node_header->record_offsets_start_offset;\n\n\tfor( record_offsets_index = 0;\n\t     record_offsets_index < node_header->number_of_record_offsets;\n\t     record_offsets_index++ )\n\t{\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t &( data[ record_offsets_data_offset ] ),\n\t\t record_data_offset );\n\n\t\trecord_offsets_data_offset += 4;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\t\tif( libcnotify_verbose != 0 )\n\t\t{\n\t\t\tif( io_handle->major_format_version == 1 )\n\t\t\t{\n\t\t\t\tlibcnotify_printf(\n\t\t\t\t \"%s: record: %02\" PRIu32 \" data offset\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t\t\t function,\n\t\t\t\t record_offsets_index,\n\t\t\t\t record_data_offset );\n\t\t\t}\n\t\t\telse if( io_handle->major_format_version == 3 )\n\t\t\t{\n\t\t\t\tlibcnotify_printf(\n\t\t\t\t \"%s: record: %02\" PRIu32 \" data offset\\t\\t: 0x%08\" PRIx32 \" (0x%08\" PRIx32 \")\\n\",\n\t\t\t\t function,\n\t\t\t\t record_offsets_index,\n\t\t\t\t record_data_offset & 0x0000ffffUL,\n\t\t\t\t record_data_offset );\n\t\t\t}\n\t\t}\n#endif\n\t\tif( io_handle->major_format_version == 3 )\n\t\t{\n\t\t\trecord_data_offset &= 0x0000ffffUL;\n\t\t}\n\t\tif( ( record_data_offset < node_header->data_area_start_offset )\n\t\t || ( record_data_offset >= node_header->data_area_end_offset ) )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t\t \"%s: invalid record: %\" PRIu32 \" data offset value out of bounds.\",\n\t\t\t function,\n\t\t\t record_offsets_index );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\trecord_data_offset += node_header_offset;\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t &( data[ record_data_offset ] ),\n\t\t record_data_size );\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\t\tif( libcnotify_verbose != 0 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: record: %02\" PRIu32 \" data size\\t\\t: %\" PRIu32 \"\\n\",\n\t\t\t function,\n\t\t\t record_offsets_index,\n\t\t\t record_data_size );\n\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: record: %02\" PRIu32 \" data:\\n\",\n\t\t\t function,\n\t\t\t record_offsets_index );\n\t\t\tlibcnotify_print_data(\n\t\t\t &( data[ record_data_offset ] ),\n\t\t\t record_data_size,\n\t\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\t\tif( libfsrefs_node_record_initialize(\n\t\t     &node_record,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create record: %\" PRIu32 \".\",\n\t\t\t function,\n\t\t\t record_offsets_index );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_node_record_read_data(\n\t\t     node_record,\n\t\t     &( data[ record_data_offset ] ),\n\t\t     record_data_size,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t \"%s: unable to read record: %\" PRIu32 \".\",\n\t\t\t function,\n\t\t\t record_offsets_index );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libcdata_array_append_entry(\n\t\t     ministore_node->records_array,\n\t\t     &entry_index,\n\t\t     (intptr_t *) node_record,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_APPEND_FAILED,\n\t\t\t \"%s: unable to append record: %\" PRIu32 \" to array.\",\n\t\t\t function,\n\t\t\t record_offsets_index );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tnode_record = NULL;\n\t}\n\tif( libfsrefs_node_header_free(\n\t     &node_header,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t \"%s: unable to free node header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tministore_node->data      = data;\n\tministore_node->data_size = data_size;\n\n\treturn( 1 );\n\non_error:\n\tif( node_record != NULL )\n\t{\n\t\tlibfsrefs_node_record_free(\n\t\t &node_record,\n\t\t NULL );\n\t}\n\tif( node_header != NULL )\n\t{\n\t\tlibfsrefs_node_header_free(\n\t\t &node_header,\n\t\t NULL );\n\t}\n\tlibcdata_array_empty(\n\t ministore_node->records_array,\n\t (int (*)(intptr_t **, libcerror_error_t **)) &libfsrefs_node_record_free,\n\t NULL );\n\n\treturn( -1 );\n}\n\n/* Reads a Ministore node\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_ministore_node_read_file_io_handle(\n     libfsrefs_ministore_node_t *ministore_node,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     libfsrefs_block_reference_t *block_reference,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_metadata_block_header_t *metadata_block_header = NULL;\n\tstatic char *function                                    = \"libfsrefs_ministore_node_read_file_io_handle\";\n\tsize_t header_size                                       = 0;\n\tsize_t read_size                                         = 0;\n\tssize_t read_count                                       = 0;\n\tuint8_t block_number_index                               = 0;\n\n\tif( ministore_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid ministore node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ministore_node->internal_data != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid ministore_node - data value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( block_reference == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid block reference.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle->major_format_version == 1 )\n\t{\n\t\theader_size = sizeof( fsrefs_metadata_block_header_v1_t );\n\t}\n\telse if( io_handle->major_format_version == 3 )\n\t{\n\t\theader_size = sizeof( fsrefs_metadata_block_header_v3_t );\n\t}\n\telse\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported format version: %\" PRIu8 \".%\" PRIu8 \".\",\n\t\t function,\n\t\t io_handle->major_format_version,\n\t\t io_handle->minor_format_version );\n\n\t\treturn( -1 );\n\t}\n\tread_size = io_handle->metadata_block_size;\n\n\tif( read_size == 4096 )\n\t{\n\t\tread_size *= 4;\n\t}\n\tif( ( read_size < header_size )\n\t || ( read_size > MEMORY_MAXIMUM_ALLOCATION_SIZE ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid IO handle - metadata block size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tministore_node->internal_data = (uint8_t *) memory_allocate(\n\t                                             read_size );\n\n\tif( ministore_node->internal_data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create metadata block data.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tfor( block_number_index = 0;\n\t     block_number_index < 4;\n\t     block_number_index++ )\n\t{\n\t\tif( block_reference->block_numbers[ block_number_index ] == 0 )\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\tread_count = libbfio_handle_read_buffer_at_offset(\n\t\t              file_io_handle,\n\t\t              ministore_node->internal_data,\n\t\t              io_handle->metadata_block_size,\n\t\t              block_reference->block_offsets[ block_number_index ],\n\t\t              error );\n\n\t\tif( read_count != (ssize_t) io_handle->metadata_block_size )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t \"%s: unable to read ministore node block: %\" PRIu8 \" at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t\t function,\n\t\t\t block_number_index,\n\t\t\t block_reference->block_offsets[ block_number_index ],\n\t\t\t block_reference->block_offsets[ block_number_index ] );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( libfsrefs_metadata_block_header_initialize(\n\t     &metadata_block_header,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create metadata block header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_metadata_block_header_read_data(\n\t     metadata_block_header,\n\t     io_handle,\n\t     ministore_node->internal_data,\n\t     header_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read metadata block header at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t function,\n\t\t block_reference->block_offsets[ 0 ],\n\t\t block_reference->block_offsets[ 0 ] );\n\n\t\tgoto on_error;\n\t}\n\tif( io_handle->major_format_version == 3 )\n\t{\n\t\tif( memory_compare(\n\t\t     metadata_block_header->signature,\n\t\t     \"MSB+\",\n\t\t     4 ) != 0 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t\t \"%s: invalid metadata block signature.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( libfsrefs_metadata_block_header_free(\n\t     &metadata_block_header,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t \"%s: unable to free metadata block header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_ministore_node_read_data(\n\t     ministore_node,\n\t     io_handle,\n\t     &( ministore_node->internal_data[ header_size ] ),\n\t     read_size - header_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read ministore node.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( metadata_block_header != NULL )\n\t{\n\t\tlibfsrefs_metadata_block_header_free(\n\t\t &metadata_block_header,\n\t\t NULL );\n\t}\n\tif( ministore_node->internal_data != NULL )\n\t{\n\t\tmemory_free(\n\t\t ministore_node->internal_data );\n\n\t\tministore_node->internal_data = NULL;\n\t}\n\tministore_node->data_size = 0;\n\n\treturn( -1 );\n}\n\n/* Retrieves the number of records\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_ministore_node_get_number_of_records(\n     libfsrefs_ministore_node_t *ministore_node,\n     int *number_of_records,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_ministore_node_get_number_of_records\";\n\n\tif( ministore_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid ministore node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ministore_node->data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid ministore node - missing data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_get_number_of_entries(\n\t     ministore_node->records_array,\n\t     number_of_records,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of entries from records array.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Retrieves a specific records\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_ministore_node_get_record_by_index(\n     libfsrefs_ministore_node_t *ministore_node,\n     int record_index,\n     libfsrefs_node_record_t **node_record,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_ministore_node_get_record_by_index\";\n\n\tif( ministore_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid ministore node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ministore_node->data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid ministore node - missing data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_get_entry_by_index(\n\t     ministore_node->records_array,\n\t     record_index,\n\t     (intptr_t **) node_record,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve entry: %d from records array.\",\n\t\t function,\n\t\t record_index );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Retrieves the record for a specific key\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nint libfsrefs_ministore_node_get_record_by_key(\n     libfsrefs_ministore_node_t *ministore_node,\n     const uint8_t *key_data,\n     size_t key_data_size,\n     libfsrefs_node_record_t **node_record,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_node_record_t *safe_node_record = NULL;\n\tsize_t key_data_offset                    = 0;\n\tstatic char *function                     = \"libfsrefs_ministore_node_get_record_by_key\";\n\tint number_of_records                     = 0;\n\tint record_index                          = 0;\n\tint result                                = 0;\n\n\tif( ministore_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid ministore node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ministore_node->data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid ministore node - missing data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( key_data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid key data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( key_data_size == 0 )\n\t || ( key_data_size > (size_t) SSIZE_MAX ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid key data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libcdata_array_get_number_of_entries(\n\t     ministore_node->records_array,\n\t     &number_of_records,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of entries from records array.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: requested key data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t key_data,\n\t\t key_data_size,\n\t\t 0 );\n\t}\n#endif\n/* TODO add support for branch nodes */\n\n\tfor( record_index = 0;\n\t     record_index < number_of_records;\n\t     record_index++ )\n\t{\n\t\tif( libcdata_array_get_entry_by_index(\n\t\t     ministore_node->records_array,\n\t\t     record_index,\n\t\t     (intptr_t **) &safe_node_record,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve entry: %d from records array.\",\n\t\t\t function,\n\t\t\t record_index );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( safe_node_record == NULL )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t\t \"%s: missing record: %d.\",\n\t\t\t function,\n\t\t\t record_index );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( safe_node_record->key_data == NULL )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t\t \"%s: invalid record: %d - missing key data.\",\n\t\t\t function,\n\t\t\t record_index );\n\n\t\t\treturn( -1 );\n\t\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\t\tif( libcnotify_verbose != 0 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: record: %d key data:\\n\",\n\t\t\t function,\n\t\t\t record_index );\n\t\t\tlibcnotify_print_data(\n\t\t\t safe_node_record->key_data,\n\t\t\t safe_node_record->key_data_size,\n\t\t\t 0 );\n\t\t}\n#endif\n\t\tif( key_data_size != safe_node_record->key_data_size )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t\t \"%s: invalid record: %d - key data size mismatch.\",\n\t\t\t function,\n\t\t\t record_index );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tkey_data_offset = key_data_size;\n\n\t\tdo\n\t\t{\n\t\t\tkey_data_offset--;\n\n\t\t\tresult = (int) key_data[ key_data_offset ] - (int) safe_node_record->key_data[ key_data_offset ];\n\n\t\t\tif( result != 0 )\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\twhile( key_data_offset > 0 );\n\n\t\tif( result == 0 )\n\t\t{\n\t\t\t*node_record = safe_node_record;\n\n\t\t\treturn( 1 );\n\t\t}\n\t\telse if( result < 0 )\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn( 0 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_ministore_node.h",
    "content": "/*\n * Ministore node (or level 2+ metadata) functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_MINISTORE_NODE_H )\n#define _LIBFSREFS_MINISTORE_NODE_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_block_reference.h\"\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcdata.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_node_record.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_ministore_node libfsrefs_ministore_node_t;\n\nstruct libfsrefs_ministore_node\n{\n\t/* The data\n\t */\n\tuint8_t *internal_data;\n\n\t/* The data\n\t */\n\tconst uint8_t *data;\n\n\t/* The data size\n\t */\n\tsize_t data_size;\n\n\t/* The header data\n\t */\n\tconst uint8_t *header_data;\n\n\t/* The header data size\n\t */\n\tsize_t header_data_size;\n\n\t/* The records array\n\t */\n\tlibcdata_array_t *records_array;\n\n\t/* The node type flags\n\t */\n\tuint8_t node_type_flags;\n};\n\nint libfsrefs_ministore_node_initialize(\n     libfsrefs_ministore_node_t **ministore_node,\n     libcerror_error_t **error );\n\nint libfsrefs_ministore_node_free(\n     libfsrefs_ministore_node_t **ministore_node,\n     libcerror_error_t **error );\n\nint libfsrefs_ministore_node_read_data(\n     libfsrefs_ministore_node_t *ministore_node,\n     libfsrefs_io_handle_t *io_handle,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error );\n\nint libfsrefs_ministore_node_read_file_io_handle(\n     libfsrefs_ministore_node_t *ministore_node,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     libfsrefs_block_reference_t *block_reference,\n     libcerror_error_t **error );\n\nint libfsrefs_ministore_node_get_number_of_records(\n     libfsrefs_ministore_node_t *ministore_node,\n     int *number_of_records,\n     libcerror_error_t **error );\n\nint libfsrefs_ministore_node_get_record_by_index(\n     libfsrefs_ministore_node_t *ministore_node,\n     int record_index,\n     libfsrefs_node_record_t **node_record,\n     libcerror_error_t **error );\n\nint libfsrefs_ministore_node_get_record_by_key(\n     libfsrefs_ministore_node_t *ministore_node,\n     const uint8_t *key_data,\n     size_t key_data_size,\n     libfsrefs_node_record_t **node_record,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_MINISTORE_NODE_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_node_header.c",
    "content": "/*\n * Ministore node header functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_debug.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n#include \"libfsrefs_node_header.h\"\n\n#include \"fsrefs_ministore_tree.h\"\n\n/* Creates a node header\n * Make sure the value node_header is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_node_header_initialize(\n     libfsrefs_node_header_t **node_header,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_node_header_initialize\";\n\n\tif( node_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid node header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *node_header != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid node header value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*node_header = memory_allocate_structure(\n\t                libfsrefs_node_header_t );\n\n\tif( *node_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create node header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *node_header,\n\t     0,\n\t     sizeof( libfsrefs_node_header_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear node header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *node_header != NULL )\n\t{\n\t\tmemory_free(\n\t\t *node_header );\n\n\t\t*node_header = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a node header\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_node_header_free(\n     libfsrefs_node_header_t **node_header,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_node_header_free\";\n\n\tif( node_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid node header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *node_header != NULL )\n\t{\n\t\tmemory_free(\n\t\t *node_header );\n\n\t\t*node_header = NULL;\n\t}\n\treturn( 1 );\n}\n\n/* Reads a node header\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_node_header_read_data(\n     libfsrefs_node_header_t *node_header,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_node_header_read_data\";\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tuint32_t value_32bit  = 0;\n\tuint16_t value_16bit  = 0;\n#endif\n\n\tif( node_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid node header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( data_size < sizeof( fsrefs_ministore_tree_node_header_t ) )\n\t || ( data_size > (size_t) SSIZE_MAX ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: node header data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t sizeof( fsrefs_ministore_tree_node_header_t ),\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_ministore_tree_node_header_t *) data )->data_area_start_offset,\n\t node_header->data_area_start_offset );\n\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_ministore_tree_node_header_t *) data )->data_area_end_offset,\n\t node_header->data_area_end_offset );\n\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_ministore_tree_node_header_t *) data )->record_offsets_start_offset,\n\t node_header->record_offsets_start_offset );\n\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_ministore_tree_node_header_t *) data )->number_of_record_offsets,\n\t node_header->number_of_record_offsets );\n\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_ministore_tree_node_header_t *) data )->record_offsets_end_offset,\n\t node_header->record_offsets_end_offset );\n\n\tnode_header->node_type_flags = ( (fsrefs_ministore_tree_node_header_t *) data )->node_type_flags;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: data area start offset\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t node_header->data_area_start_offset );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: data area end offset\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t node_header->data_area_end_offset );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_ministore_tree_node_header_t *) data )->unused_data_size,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unused data size\\t\\t\\t: %\" PRIu32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: node level\\t\\t\\t\\t: %\" PRIu8 \"\\n\",\n\t\t function,\n\t\t ( (fsrefs_ministore_tree_node_header_t *) data )->node_level );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: node type flags\\t\\t\\t: 0x%02\" PRIx8 \"\\n\",\n\t\t function,\n\t\t node_header->node_type_flags );\n\t\tlibfsrefs_debug_print_node_type_flags(\n\t\t node_header->node_type_flags );\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\n\t\tbyte_stream_copy_to_uint16_little_endian(\n\t\t ( (fsrefs_ministore_tree_node_header_t *) data )->unknown1,\n\t\t value_16bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown1\\t\\t\\t\\t: 0x%04\" PRIx16 \"\\n\",\n\t\t function,\n\t\t value_16bit );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: record offsets start offset\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t node_header->record_offsets_start_offset );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: number of record offsets\\t\\t: %\" PRIu32 \"\\n\",\n\t\t function,\n\t\t node_header->number_of_record_offsets );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: record offsets end offset\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t node_header->record_offsets_end_offset );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_ministore_tree_node_header_t *) data )->unknown2,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown2\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\treturn( 1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_node_header.h",
    "content": "/*\n * Ministore node header functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_NODE_HEADER_H )\n#define _LIBFSREFS_NODE_HEADER_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_node_header libfsrefs_node_header_t;\n\nstruct libfsrefs_node_header\n{\n\t/* The data area start offset\n\t */\n\tuint32_t data_area_start_offset;\n\n\t/* The data area end offset\n\t */\n\tuint32_t data_area_end_offset;\n\n\t/* The record offsets start offset\n\t */\n\tuint32_t record_offsets_start_offset;\n\n\t/* The record offsets end offset\n\t */\n\tuint32_t record_offsets_end_offset;\n\n\t/* The number of record offsets\n\t */\n\tuint32_t number_of_record_offsets;\n\n\t/* The node type flags\n\t */\n\tuint8_t node_type_flags;\n};\n\nint libfsrefs_node_header_initialize(\n     libfsrefs_node_header_t **node_header,\n     libcerror_error_t **error );\n\nint libfsrefs_node_header_free(\n     libfsrefs_node_header_t **node_header,\n     libcerror_error_t **error );\n\nint libfsrefs_node_header_read_data(\n     libfsrefs_node_header_t *node_header,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_NODE_HEADER_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_node_record.c",
    "content": "/*\n * Ministore node record functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_debug.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n#include \"libfsrefs_node_record.h\"\n\n#include \"fsrefs_ministore_tree.h\"\n\n/* Creates a node record\n * Make sure the value node_record is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_node_record_initialize(\n     libfsrefs_node_record_t **node_record,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_node_record_initialize\";\n\n\tif( node_record == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid node record.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *node_record != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid node record value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*node_record = memory_allocate_structure(\n\t                libfsrefs_node_record_t );\n\n\tif( *node_record == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create node record.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *node_record,\n\t     0,\n\t     sizeof( libfsrefs_node_record_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear node record.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *node_record != NULL )\n\t{\n\t\tmemory_free(\n\t\t *node_record );\n\n\t\t*node_record = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a node record\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_node_record_free(\n     libfsrefs_node_record_t **node_record,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_node_record_free\";\n\n\tif( node_record == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid node record.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *node_record != NULL )\n\t{\n\t\t/* The key_data and value_data references are freed elsewhere\n\t\t */\n\t\tmemory_free(\n\t\t *node_record );\n\n\t\t*node_record = NULL;\n\t}\n\treturn( 1 );\n}\n\n/* Reads a node record\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_node_record_read_data(\n     libfsrefs_node_record_t *node_record,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function      = \"libfsrefs_node_record_read_data\";\n\tsize_t data_offset         = 0;\n\tuint16_t key_data_offset   = 0;\n\tuint16_t value_data_offset = 0;\n\n\tif( node_record == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid node record.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( data_size < sizeof( fsrefs_ministore_tree_node_record_t ) )\n\t || ( data_size > (size_t) SSIZE_MAX ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: node record data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t sizeof( fsrefs_ministore_tree_node_record_t ),\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_ministore_tree_node_record_t *) data )->size,\n\t node_record->size );\n\n\tbyte_stream_copy_to_uint16_little_endian(\n\t ( (fsrefs_ministore_tree_node_record_t *) data )->key_data_offset,\n\t key_data_offset );\n\n\tbyte_stream_copy_to_uint16_little_endian(\n\t ( (fsrefs_ministore_tree_node_record_t *) data )->key_data_size,\n\t node_record->key_data_size );\n\n\tbyte_stream_copy_to_uint16_little_endian(\n\t ( (fsrefs_ministore_tree_node_record_t *) data )->flags,\n\t node_record->flags );\n\n\tbyte_stream_copy_to_uint16_little_endian(\n\t ( (fsrefs_ministore_tree_node_record_t *) data )->value_data_offset,\n\t value_data_offset );\n\n\tbyte_stream_copy_to_uint16_little_endian(\n\t ( (fsrefs_ministore_tree_node_record_t *) data )->value_data_size,\n\t node_record->value_data_size );\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: size\\t\\t\\t\\t\\t: %\" PRIu32 \"\\n\",\n\t\t function,\n\t\t node_record->size );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: key data offset\\t\\t\\t: 0x%04\" PRIx16 \"\\n\",\n\t\t function,\n\t\t key_data_offset );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: key data size\\t\\t\\t\\t: %\" PRIu32 \"\\n\",\n\t\t function,\n\t\t node_record->key_data_size );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: flags\\t\\t\\t\\t\\t: 0x%04\" PRIx16 \"\\n\",\n\t\t function,\n\t\t node_record->flags );\n\t\tlibfsrefs_debug_print_node_record_flags(\n\t\t node_record->flags );\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: value data offset\\t\\t\\t: 0x%04\" PRIx16 \"\\n\",\n\t\t function,\n\t\t value_data_offset );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: value data size\\t\\t\\t: %\" PRIu32 \"\\n\",\n\t\t function,\n\t\t node_record->value_data_size );\n\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tdata_offset = sizeof( fsrefs_ministore_tree_node_record_t );\n\n\tif( ( key_data_offset < data_offset )\n\t || ( key_data_offset >= data_size ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid key data offset value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( node_record->key_data_size > ( data_size - key_data_offset ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid key data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tnode_record->key_data = &( data[ key_data_offset ] );\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: key data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t node_record->key_data,\n\t\t node_record->key_data_size,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n\tif( ( value_data_offset < data_offset )\n\t || ( value_data_offset >= data_size ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid value data offset value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( node_record->value_data_size > ( data_size - value_data_offset ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid value data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tnode_record->value_data = &( data[ value_data_offset ] );\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: value data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t node_record->value_data,\n\t\t node_record->value_data_size,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n\treturn( 1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_node_record.h",
    "content": "/*\n * Ministore node record functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_NODE_RECORD_H )\n#define _LIBFSREFS_NODE_RECORD_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_node_record libfsrefs_node_record_t;\n\nstruct libfsrefs_node_record\n{\n\t/* The size\n\t */\n\tuint32_t size;\n\n\t/* The flags\n\t */\n\tuint16_t flags;\n\n\t/* The key data\n\t */\n\tconst uint8_t *key_data;\n\n\t/* The key data size\n\t */\n\tuint16_t key_data_size;\n\n\t/* The value data\n\t */\n\tconst uint8_t *value_data;\n\n\t/* The value data size\n\t */\n\tuint16_t value_data_size;\n};\n\nint libfsrefs_node_record_initialize(\n     libfsrefs_node_record_t **node_record,\n     libcerror_error_t **error );\n\nint libfsrefs_node_record_free(\n     libfsrefs_node_record_t **node_record,\n     libcerror_error_t **error );\n\nint libfsrefs_node_record_read_data(\n     libfsrefs_node_record_t *node_record,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_NODE_RECORD_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_notify.c",
    "content": "/*\n * Notification functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n#include \"libfsrefs_notify.h\"\n\n#if !defined( HAVE_LOCAL_LIBFSREFS )\n\n/* Sets the verbose notification\n */\nvoid libfsrefs_notify_set_verbose(\n      int verbose )\n{\n\tlibcnotify_verbose_set(\n\t verbose );\n}\n\n/* Sets the notification stream\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_notify_set_stream(\n     FILE *stream,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_notify_set_stream\";\n\n\tif( libcnotify_stream_set(\n\t     stream,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to set stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Opens the notification stream using a filename\n * The stream is opened in append mode\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_notify_stream_open(\n     const char *filename,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_notify_stream_open\";\n\n\tif( libcnotify_stream_open(\n\t     filename,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_OPEN_FAILED,\n\t\t \"%s: unable to open stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Closes the notification stream if opened using a filename\n * Returns 0 if successful or -1 on error\n */\nint libfsrefs_notify_stream_close(\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_notify_stream_close\";\n\n\tif( libcnotify_stream_close(\n\t     error ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_OPEN_FAILED,\n\t\t \"%s: unable to open stream.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 0 );\n}\n\n#endif /* !defined( HAVE_LOCAL_LIBFSREFS ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_notify.h",
    "content": "/*\n * Notification functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_NOTIFY_H )\n#define _LIBFSREFS_NOTIFY_H\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#include \"libfsrefs_extern.h\"\n#include \"libfsrefs_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\n#if !defined( HAVE_LOCAL_LIBFSREFS )\n\nLIBFSREFS_EXTERN \\\nvoid libfsrefs_notify_set_verbose(\n      int verbose );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_notify_set_stream(\n     FILE *stream,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_notify_stream_open(\n     const char *filename,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_notify_stream_close(\n     libcerror_error_t **error );\n\n#endif /* !defined( HAVE_LOCAL_LIBFSREFS ) */\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_NOTIFY_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_objects_tree.c",
    "content": "/*\n * Objects tree functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_block_reference.h\"\n#include \"libfsrefs_file_system.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_ministore_node.h\"\n#include \"libfsrefs_node_record.h\"\n#include \"libfsrefs_objects_tree.h\"\n\n/* Creates a objects tree\n * Make sure the value objects_tree is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_objects_tree_initialize(\n     libfsrefs_objects_tree_t **objects_tree,\n     libfsrefs_file_system_t *file_system,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_objects_tree_initialize\";\n\n\tif( objects_tree == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid objects tree.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *objects_tree != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid objects tree value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( file_system == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file system.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*objects_tree = memory_allocate_structure(\n\t                 libfsrefs_objects_tree_t );\n\n\tif( *objects_tree == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create objects tree.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *objects_tree,\n\t     0,\n\t     sizeof( libfsrefs_objects_tree_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear objects tree.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t *objects_tree );\n\n\t\t*objects_tree = NULL;\n\n\t\treturn( -1 );\n\t}\n\t( *objects_tree )->file_system = file_system;\n\n\treturn( 1 );\n\non_error:\n\tif( *objects_tree != NULL )\n\t{\n\t\tmemory_free(\n\t\t *objects_tree );\n\n\t\t*objects_tree = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a objects tree\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_objects_tree_free(\n     libfsrefs_objects_tree_t **objects_tree,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_objects_tree_free\";\n\tint result            = 1;\n\n\tif( objects_tree == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid objects tree.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *objects_tree != NULL )\n\t{\n\t\t/* The file_system reference is freed elsewhere\n\t\t */\n\t\tif( ( *objects_tree )->root_node != NULL )\n\t\t{\n\t\t\tif( libfsrefs_ministore_node_free(\n\t\t\t     &( ( *objects_tree )->root_node ),\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t\t \"%s: unable to free root node.\",\n\t\t\t\t function );\n\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}\n\t\tmemory_free(\n\t\t *objects_tree );\n\n\t\t*objects_tree = NULL;\n\t}\n\treturn( result );\n}\n\n/* Reads an objects tree\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_objects_tree_read(\n     libfsrefs_objects_tree_t *objects_tree,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_objects_tree_read\";\n\n\tif( objects_tree == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid objects tree.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( objects_tree->root_node != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid objects tree - root node value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_file_system_get_ministore_tree(\n\t     objects_tree->file_system,\n\t     io_handle,\n\t     file_io_handle,\n\t     0,\n\t     &( objects_tree->root_node ),\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve ministore tree: 0 (objects).\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( ( objects_tree->root_node->node_type_flags & 0x02 ) == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported ministore tree: 0 (objects) root node - missing is root (0x02) flag.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( ( objects_tree->root_node->node_type_flags & 0x03 ) != 0x02 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: invalid ministore tree: 0 (objects) root node - unsupported node type flags.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( objects_tree->root_node != NULL )\n\t{\n\t\tlibfsrefs_ministore_node_free(\n\t\t &( objects_tree->root_node ),\n\t\t NULL );\n\t}\n\treturn( -1 );\n}\n\n/* Retrieves the ministore tree of a specific object identifier\n * Returns 1 if successful, 0 if not available or -1 on error\n */\nint libfsrefs_objects_tree_get_ministore_tree_by_identifier(\n     libfsrefs_objects_tree_t *objects_tree,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     uint64_t object_identifier,\n     libfsrefs_ministore_node_t **root_node,\n     libcerror_error_t **error )\n{\n\tuint8_t key_data[ 16 ]                       = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };\n\n\tlibfsrefs_block_reference_t *block_reference = NULL;\n\tlibfsrefs_ministore_node_t *safe_root_node   = NULL;\n\tlibfsrefs_node_record_t *node_record         = NULL;\n\tstatic char *function                        = \"libfsrefs_objects_tree_get_ministore_tree_by_identifier\";\n\tint result                                   = 0;\n\n\tif( objects_tree == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid objects tree.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( root_node == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid root node.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tbyte_stream_copy_from_uint64_little_endian(\n\t &( key_data[ 8 ] ),\n\t object_identifier );\n\n\tresult = libfsrefs_ministore_node_get_record_by_key(\n\t          objects_tree->root_node,\n\t          key_data,\n\t          16,\n\t          &node_record,\n\t          error );\n\n\tif( result == -1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve identifier: 0x%08\" PRIx64 \" from objects tree.\",\n\t\t function,\n\t\t object_identifier );\n\n\t\tgoto on_error;\n\t}\n\telse if( result != 0 )\n\t{\n\t\tif( node_record == NULL )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t\t \"%s: missing node record.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\tif( libfsrefs_block_reference_initialize(\n\t\t     &block_reference,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create block reference.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_block_reference_read_data(\n\t\t     block_reference,\n\t\t     io_handle,\n\t\t     node_record->value_data,\n\t\t     node_record->value_data_size,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t \"%s: unable to read block reference.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_file_system_get_block_offsets(\n\t\t     objects_tree->file_system,\n\t\t     io_handle,\n\t\t     block_reference,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve block offsets.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_ministore_node_initialize(\n\t\t     &safe_root_node,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create object: 0x%08\" PRIx64 \" ministore tree root node.\",\n\t\t\t function,\n\t\t\t object_identifier );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_ministore_node_read_file_io_handle(\n\t\t     safe_root_node,\n\t\t     io_handle,\n\t\t     file_io_handle,\n\t\t     block_reference,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t \"%s: unable to read object: 0x%08\" PRIx64 \" ministore tree root node.\",\n\t\t\t function,\n\t\t\t object_identifier );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_block_reference_free(\n\t\t     &block_reference,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free block reference.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\t*root_node = safe_root_node;\n\t}\n\treturn( result );\n\non_error:\n\tif( safe_root_node != NULL )\n\t{\n\t\tlibfsrefs_ministore_node_free(\n\t\t &safe_root_node,\n\t\t NULL );\n\t}\n\tif( block_reference != NULL )\n\t{\n\t\tlibfsrefs_block_reference_free(\n\t\t &block_reference,\n\t\t NULL );\n\t}\n\treturn( 1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_objects_tree.h",
    "content": "/*\n * Objects tree functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_OBJECTS_TREE_H )\n#define _LIBFSREFS_OBJECTS_TREE_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_block_reference.h\"\n#include \"libfsrefs_file_system.h\"\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_ministore_node.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_objects_tree libfsrefs_objects_tree_t;\n\nstruct libfsrefs_objects_tree\n{\n\t/* File system\n\t */\n\tlibfsrefs_file_system_t *file_system;\n\n\t/* Ministore root node\n\t */\n\tlibfsrefs_ministore_node_t *root_node;\n};\n\nint libfsrefs_objects_tree_initialize(\n     libfsrefs_objects_tree_t **objects_tree,\n     libfsrefs_file_system_t *file_system,\n     libcerror_error_t **error );\n\nint libfsrefs_objects_tree_free(\n     libfsrefs_objects_tree_t **objects_tree,\n     libcerror_error_t **error );\n\nint libfsrefs_objects_tree_read(\n     libfsrefs_objects_tree_t *objects_tree,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     libcerror_error_t **error );\n\nint libfsrefs_objects_tree_get_ministore_tree_by_identifier(\n     libfsrefs_objects_tree_t *objects_tree,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     uint64_t object_identifier,\n     libfsrefs_ministore_node_t **root_node,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_OBJECTS_TREE_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_superblock.c",
    "content": "/*\n * Superblock (or level 0 metadata) functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_block_reference.h\"\n#include \"libfsrefs_debug.h\"\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n#include \"libfsrefs_libfguid.h\"\n#include \"libfsrefs_metadata_block_header.h\"\n#include \"libfsrefs_superblock.h\"\n\n#include \"fsrefs_metadata_block.h\"\n#include \"fsrefs_superblock.h\"\n\n/* Creates a superblock\n * Make sure the value superblock is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_superblock_initialize(\n     libfsrefs_superblock_t **superblock,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_superblock_initialize\";\n\n\tif( superblock == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid superblock.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *superblock != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid superblock value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*superblock = memory_allocate_structure(\n\t               libfsrefs_superblock_t );\n\n\tif( *superblock == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create superblock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *superblock,\n\t     0,\n\t     sizeof( libfsrefs_superblock_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear superblock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *superblock != NULL )\n\t{\n\t\tmemory_free(\n\t\t *superblock );\n\n\t\t*superblock = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a uperblock\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_superblock_free(\n     libfsrefs_superblock_t **superblock,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_superblock_free\";\n\n\tif( superblock == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid superblock.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *superblock != NULL )\n\t{\n\t\tmemory_free(\n\t\t *superblock );\n\n\t\t*superblock = NULL;\n\t}\n\treturn( 1 );\n}\n\n/* Reads a superblock\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_superblock_read_data(\n     libfsrefs_superblock_t *superblock,\n     libfsrefs_io_handle_t *io_handle,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function                        = \"libfsrefs_superblock_read_data\";\n\tsize_t data_offset                           = 0;\n\tsize_t header_size                           = 0;\n\tuint32_t checkpoints_data_offset             = 0;\n\tuint32_t number_of_checkpoints               = 0;\n\tuint32_t self_reference_data_offset          = 0;\n\tuint32_t self_reference_data_size            = 0;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tlibfsrefs_block_reference_t *block_reference = NULL;\n\tuint64_t value_64bit                         = 0;\n#endif\n\n\tif( superblock == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid superblock.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle->major_format_version == 1 )\n\t{\n\t\theader_size = sizeof( fsrefs_metadata_block_header_v1_t );\n\t}\n\telse if( io_handle->major_format_version == 3 )\n\t{\n\t\theader_size = sizeof( fsrefs_metadata_block_header_v3_t );\n\t}\n\telse\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported format version: %\" PRIu8 \".%\" PRIu8 \".\",\n\t\t function,\n\t\t io_handle->major_format_version,\n\t\t io_handle->minor_format_version );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( data_size < sizeof( fsrefs_superblock_t ) )\n\t || ( data_size > (size_t) SSIZE_MAX ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: superblock data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t sizeof( fsrefs_superblock_t ),\n\t\t 0 );\n\t}\n#endif\n\tif( memory_copy(\n\t     superblock->volume_identifier,\n\t     ( (fsrefs_superblock_t *) data )->volume_identifier,\n\t     16 ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_COPY_FAILED,\n\t\t \"%s: unable to copy volume identifier.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_superblock_t *) data )->checkpoints_data_offset,\n\t checkpoints_data_offset );\n\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_superblock_t *) data )->number_of_checkpoints,\n\t number_of_checkpoints );\n\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_superblock_t *) data )->self_reference_data_offset,\n\t self_reference_data_offset );\n\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_superblock_t *) data )->self_reference_data_size,\n\t self_reference_data_size );\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tif( libfsrefs_debug_print_guid_value(\n\t\t     function,\n\t\t     \"volume identifier\\t\\t\\t\",\n\t\t     ( (fsrefs_superblock_t *) data )->volume_identifier,\n\t\t     16,\n\t\t     LIBFGUID_ENDIAN_LITTLE,\n\t\t     LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t\t \"%s: unable to print GUID value.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_superblock_t *) data )->unknown1,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown1\\t\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_superblock_t *) data )->unknown2,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown2\\t\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: checkpoints data offset\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t checkpoints_data_offset );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: number of checkpoints\\t\\t\\t: %\" PRIu32 \"\\n\",\n\t\t function,\n\t\t number_of_checkpoints );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: self reference data offset\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t self_reference_data_offset );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: self reference data size\\t\\t: %\" PRIu32 \"\\n\",\n\t\t function,\n\t\t self_reference_data_size );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tdata_offset = sizeof( fsrefs_superblock_t );\n\n\tif( ( checkpoints_data_offset < ( data_offset + header_size ) )\n\t || ( checkpoints_data_offset >= ( data_size + header_size ) ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid checkpoints data offset value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( number_of_checkpoints != 2 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported number of checkpoints.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tcheckpoints_data_offset -= header_size;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tif( checkpoints_data_offset > data_offset )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown3\\n\",\n\t\t\t function );\n\t\t\tlibcnotify_print_data(\n\t\t\t &( data[ data_offset ] ),\n\t\t\t (size_t) checkpoints_data_offset - data_offset,\n\t\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t\t}\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tdata_offset = checkpoints_data_offset;\n\n\tif( ( data_size - data_offset ) < 16 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid checkpoints data size value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tbyte_stream_copy_to_uint64_little_endian(\n\t &( data[ data_offset ] ),\n\t superblock->primary_checkpoint_block_number );\n\n\tdata_offset += 8;\n\n\tbyte_stream_copy_to_uint64_little_endian(\n\t &( data[ data_offset ] ),\n\t superblock->secondary_checkpoint_block_number );\n\n\tdata_offset += 8;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: primary checkpoint block number\\t\\t: %\" PRIu64 \"\\n\",\n\t\t function,\n\t\t superblock->primary_checkpoint_block_number );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: secondary checkpoint block number\\t: %\" PRIu64 \"\\n\",\n\t\t function,\n\t\t superblock->secondary_checkpoint_block_number );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tif( ( self_reference_data_offset < ( data_offset + header_size ) )\n\t || ( self_reference_data_offset >= ( data_size + header_size ) ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid self reference data offset value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tself_reference_data_offset -= header_size;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tif( self_reference_data_offset > data_offset )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: unknown4\\n\",\n\t\t\t function );\n\t\t\tlibcnotify_print_data(\n\t\t\t &( data[ data_offset ] ),\n\t\t\t (size_t) self_reference_data_offset - data_offset,\n\t\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t\t}\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tdata_offset = self_reference_data_offset;\n\n\tif( ( data_size - data_offset ) < self_reference_data_size )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid self reference data size value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: self reference data\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t &( data[ data_offset ] ),\n\t\t self_reference_data_size,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\n\t\tif( libfsrefs_block_reference_initialize(\n\t\t     &block_reference,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t\t \"%s: unable to create block reference.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_block_reference_read_data(\n\t\t     block_reference,\n\t\t     io_handle,\n\t\t     &( data[ data_offset ] ),\n\t\t     self_reference_data_size,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t \"%s: unable to read block reference.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( libfsrefs_block_reference_free(\n\t\t     &block_reference,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free block reference.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\treturn( 1 );\n\non_error:\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( block_reference != NULL )\n\t{\n\t\tlibfsrefs_block_reference_free(\n\t\t &block_reference,\n\t\t NULL );\n\t}\n#endif\n\treturn( -1 );\n}\n\n/* Reads a superblock\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_superblock_read_file_io_handle(\n     libfsrefs_superblock_t *superblock,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     off64_t file_offset,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_metadata_block_header_t *metadata_block_header = NULL;\n\tuint8_t *metadata_block_data                             = NULL;\n\tstatic char *function                                    = \"libfsrefs_superblock_read_file_io_handle\";\n\tsize_t header_size                                       = 0;\n\tssize_t read_count                                       = 0;\n\n\tif( superblock == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid superblock.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( io_handle->major_format_version == 1 )\n\t{\n\t\theader_size = sizeof( fsrefs_metadata_block_header_v1_t );\n\t}\n\telse if( io_handle->major_format_version == 3 )\n\t{\n\t\theader_size = sizeof( fsrefs_metadata_block_header_v3_t );\n\t}\n\telse\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported format version: %\" PRIu8 \".%\" PRIu8 \".\",\n\t\t function,\n\t\t io_handle->major_format_version,\n\t\t io_handle->minor_format_version );\n\n\t\treturn( -1 );\n\t}\n\tif( ( io_handle->metadata_block_size < header_size )\n\t || ( io_handle->metadata_block_size > MEMORY_MAXIMUM_ALLOCATION_SIZE ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid IO handle - metadata block size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tmetadata_block_data = (uint8_t *) memory_allocate(\n\t                                   io_handle->metadata_block_size );\n\n\tif( metadata_block_data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create metadata block data.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tread_count = libbfio_handle_read_buffer_at_offset(\n\t              file_io_handle,\n\t              metadata_block_data,\n\t              (size_t) io_handle->metadata_block_size,\n\t              file_offset,\n\t              error );\n\n\tif( read_count != (ssize_t) io_handle->metadata_block_size )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read superblock metadata at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t function,\n\t\t file_offset,\n\t\t file_offset );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_metadata_block_header_initialize(\n\t     &metadata_block_header,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create metadata block header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_metadata_block_header_read_data(\n\t     metadata_block_header,\n\t     io_handle,\n\t     metadata_block_data,\n\t     header_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read metadata block header at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t function,\n\t\t file_offset,\n\t\t file_offset );\n\n\t\tgoto on_error;\n\t}\n\tfile_offset += header_size;\n\n\tif( io_handle->major_format_version == 3 )\n\t{\n\t\tif( memory_compare(\n\t\t     metadata_block_header->signature,\n\t\t     \"SUPB\",\n\t\t     4 ) != 0 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t\t \"%s: invalid metadata block signature.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( metadata_block_header->block_numbers[ 1 ] != 0 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t\t \"%s: invalid metadata block header - block number 2 value out of bounds.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( metadata_block_header->block_numbers[ 2 ] != 0 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t\t \"%s: invalid metadata block header - block number 3 value out of bounds.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tif( metadata_block_header->block_numbers[ 3 ] != 0 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t\t \"%s: invalid metadata block header - block number 4 value out of bounds.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( libfsrefs_metadata_block_header_free(\n\t     &metadata_block_header,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t \"%s: unable to free metadata block header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_superblock_read_data(\n\t     superblock,\n\t     io_handle,\n\t     &( metadata_block_data[ header_size ] ),\n\t     io_handle->metadata_block_size - header_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read superblock metadata.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tmemory_free(\n\t metadata_block_data );\n\n\treturn( 1 );\n\non_error:\n\tif( metadata_block_header != NULL )\n\t{\n\t\tlibfsrefs_metadata_block_header_free(\n\t\t &metadata_block_header,\n\t\t NULL );\n\t}\n\tif( metadata_block_data != NULL )\n\t{\n\t\tmemory_free(\n\t\t metadata_block_data );\n\t}\n\treturn( -1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_superblock.h",
    "content": "/*\n * Superblock (or level 0 metadata) functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_SUPERBLOCK_H )\n#define _LIBFSREFS_SUPERBLOCK_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_superblock libfsrefs_superblock_t;\n\nstruct libfsrefs_superblock\n{\n\t/* The volume identifier\n\t */\n\tuint8_t volume_identifier[ 16 ];\n\n\t/* The primary checkpoint block number\n\t */\n\tuint64_t primary_checkpoint_block_number;\n\n\t/* The secondary checkpoint block number\n\t */\n\tuint64_t secondary_checkpoint_block_number;\n};\n\nint libfsrefs_superblock_initialize(\n     libfsrefs_superblock_t **superblock,\n     libcerror_error_t **error );\n\nint libfsrefs_superblock_free(\n     libfsrefs_superblock_t **superblock,\n     libcerror_error_t **error );\n\nint libfsrefs_superblock_read_data(\n     libfsrefs_superblock_t *superblock,\n     libfsrefs_io_handle_t *io_handle,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error );\n\nint libfsrefs_superblock_read_file_io_handle(\n     libfsrefs_superblock_t *superblock,\n     libfsrefs_io_handle_t *io_handle,\n     libbfio_handle_t *file_io_handle,\n     off64_t file_offset,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_SUPERBLOCK_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_support.c",
    "content": "/*\n * Support functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <memory.h>\n#include <narrow_string.h>\n#include <types.h>\n#include <wide_string.h>\n\n#include \"libfsrefs_definitions.h\"\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libclocale.h\"\n#include \"libfsrefs_libcnotify.h\"\n#include \"libfsrefs_support.h\"\n\n#if !defined( HAVE_LOCAL_LIBFSREFS )\n\n/* Returns the library version\n */\nconst char *libfsrefs_get_version(\n             void )\n{\n\treturn( (const char *) LIBFSREFS_VERSION_STRING );\n}\n\n/* Returns the access flags for reading\n */\nint libfsrefs_get_access_flags_read(\n     void )\n{\n\treturn( (int) LIBFSREFS_ACCESS_FLAG_READ );\n}\n\n/* Retrieves the narrow system string codepage\n * A value of 0 represents no codepage, UTF-8 encoding is used instead\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_get_codepage(\n     int *codepage,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_get_codepage\";\n\n\tif( libclocale_codepage_get(\n\t     codepage,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve codepage.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Sets the narrow system string codepage\n * A value of 0 represents no codepage, UTF-8 encoding is used instead\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_set_codepage(\n     int codepage,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_set_codepage\";\n\n\tif( libclocale_codepage_set(\n\t     codepage,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to set codepage.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n#endif /* !defined( HAVE_LOCAL_LIBFSREFS ) */\n\n/* Determines if a file contains a REFS volume signature\n * Returns 1 if true, 0 if not or -1 on error\n */\nint libfsrefs_check_volume_signature(\n     const char *filename,\n     libcerror_error_t **error )\n{\n\tlibbfio_handle_t *file_io_handle = NULL;\n\tstatic char *function            = \"libfsrefs_check_volume_signature\";\n\tsize_t filename_length           = 0;\n\tint result                       = 0;\n\n\tif( filename == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid filename.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tfilename_length = narrow_string_length(\n\t                   filename );\n\n\tif( filename_length == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid filename.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libbfio_file_initialize(\n\t     &file_io_handle,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create file IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libbfio_file_set_name(\n\t     file_io_handle,\n\t     filename,\n\t     filename_length,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to set filename in file IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tresult = libfsrefs_check_volume_signature_file_io_handle(\n\t          file_io_handle,\n\t          error );\n\n\tif( result == -1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to check file signature using a file handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libbfio_handle_free(\n\t     &file_io_handle,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to free file IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( result );\n\non_error:\n\tif( file_io_handle != NULL )\n\t{\n\t\tlibbfio_handle_free(\n\t\t &file_io_handle,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}\n\n#if defined( HAVE_WIDE_CHARACTER_TYPE )\n\n/* Determines if a file contains a REFS volume signature\n * Returns 1 if true, 0 if not or -1 on error\n */\nint libfsrefs_check_volume_signature_wide(\n     const wchar_t *filename,\n     libcerror_error_t **error )\n{\n\tlibbfio_handle_t *file_io_handle = NULL;\n\tstatic char *function            = \"libfsrefs_check_volume_signature_wide\";\n\tsize_t filename_length           = 0;\n\tint result                       = 0;\n\n\tif( filename == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid filename.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tfilename_length = wide_string_length(\n\t                   filename );\n\n\tif( filename_length == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid filename.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libbfio_file_initialize(\n\t     &file_io_handle,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create file IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libbfio_file_set_name_wide(\n\t     file_io_handle,\n\t     filename,\n\t     filename_length,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to set filename in file IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tresult = libfsrefs_check_volume_signature_file_io_handle(\n\t          file_io_handle,\n\t          error );\n\n\tif( result == -1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to check file signature using a file handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libbfio_handle_free(\n\t     &file_io_handle,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to free file IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( result );\n\non_error:\n\tif( file_io_handle != NULL )\n\t{\n\t\tlibbfio_handle_free(\n\t\t &file_io_handle,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}\n\n#endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */\n\n/* Determines if an volume contains the REFS file system (check for the REFS signature) using a Basic File IO (bfio) handle\n * Returns 1 if true, 0 if not or -1 on error\n */\nint libfsrefs_check_volume_signature_file_io_handle(\n     libbfio_handle_t *file_io_handle,\n     libcerror_error_t **error )\n{\n\tuint8_t signature[ 12 ];\n\n\tstatic char *function      = \"libfsrefs_check_volume_signature_file_io_handle\";\n\tssize_t read_count         = 0;\n\tint file_io_handle_is_open = 0;\n\n\tif( file_io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tfile_io_handle_is_open = libbfio_handle_is_open(\n\t                          file_io_handle,\n\t                          error );\n\n\tif( file_io_handle_is_open == -1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_OPEN_FAILED,\n\t\t \"%s: unable to open file.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\telse if( file_io_handle_is_open == 0 )\n\t{\n\t\tif( libbfio_handle_open(\n\t\t     file_io_handle,\n\t\t     LIBBFIO_OPEN_READ,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_OPEN_FAILED,\n\t\t\t \"%s: unable to open file.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tread_count = libbfio_handle_read_buffer_at_offset(\n\t              file_io_handle,\n\t              signature,\n\t              12,\n\t              0,\n\t              error );\n\n\tif( read_count != 12 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read signature at offset: 0 (0x00000000).\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( file_io_handle_is_open == 0 )\n\t{\n\t\tif( libbfio_handle_close(\n\t\t     file_io_handle,\n\t\t     error ) != 0 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_CLOSE_FAILED,\n\t\t\t \"%s: unable to close file.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n\tif( memory_compare(\n\t     fsrefs_volume_file_system_signature,\n\t     &( signature[ 3 ] ),\n\t     8 ) == 0 )\n\t{\n\t\treturn( 1 );\n\t}\n\t/* TODO also check sector signature ? */\n\n\treturn( 0 );\n\non_error:\n\tif( file_io_handle_is_open == 0 )\n\t{\n\t\tlibbfio_handle_close(\n\t\t file_io_handle,\n\t\t error );\n\t}\n\treturn( -1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_support.h",
    "content": "/*\n * Support functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_SUPPORT_H )\n#define _LIBFSREFS_SUPPORT_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_extern.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\n#if !defined( HAVE_LOCAL_LIBFSREFS )\n\nLIBFSREFS_EXTERN \\\nconst char *libfsrefs_get_version(\n             void );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_get_access_flags_read(\n     void );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_get_codepage(\n     int *codepage,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_set_codepage(\n     int codepage,\n     libcerror_error_t **error );\n\n#endif /* !defined( HAVE_LOCAL_LIBFSREFS ) */\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_check_volume_signature(\n     const char *filename,\n     libcerror_error_t **error );\n\n#if defined( HAVE_WIDE_CHARACTER_TYPE )\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_check_volume_signature_wide(\n     const wchar_t *filename,\n     libcerror_error_t **error );\n\n#endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_check_volume_signature_file_io_handle(\n     libbfio_handle_t *file_io_handle,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_SUPPORT_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_tree_header.c",
    "content": "/*\n * Ministore tree header functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n#include \"libfsrefs_tree_header.h\"\n\n#include \"fsrefs_ministore_tree.h\"\n\n/* Creates a tree header\n * Make sure the value tree_header is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_tree_header_initialize(\n     libfsrefs_tree_header_t **tree_header,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_tree_header_initialize\";\n\n\tif( tree_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid tree header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *tree_header != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid tree header value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*tree_header = memory_allocate_structure(\n\t                libfsrefs_tree_header_t );\n\n\tif( *tree_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create tree header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *tree_header,\n\t     0,\n\t     sizeof( libfsrefs_tree_header_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear tree header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *tree_header != NULL )\n\t{\n\t\tmemory_free(\n\t\t *tree_header );\n\n\t\t*tree_header = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a tree header\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_tree_header_free(\n     libfsrefs_tree_header_t **tree_header,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_tree_header_free\";\n\n\tif( tree_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid tree header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *tree_header != NULL )\n\t{\n\t\tmemory_free(\n\t\t *tree_header );\n\n\t\t*tree_header = NULL;\n\t}\n\treturn( 1 );\n}\n\n/* Reads a tree header\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_tree_header_read_data(\n     libfsrefs_tree_header_t *tree_header,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_tree_header_read_data\";\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tuint32_t value_32bit  = 0;\n\tuint16_t value_16bit  = 0;\n#endif\n\n\tif( tree_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid tree header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( data_size < sizeof( fsrefs_ministore_tree_header_t ) )\n\t || ( data_size > (size_t) SSIZE_MAX ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: tree header data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t sizeof( fsrefs_ministore_tree_header_t ),\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n\tbyte_stream_copy_to_uint16_little_endian(\n\t ( (fsrefs_ministore_tree_header_t *) data )->table_data_offset,\n\t tree_header->table_data_offset );\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: table data offset\\t\\t\\t: 0x%04\" PRIx16 \"\\n\",\n\t\t function,\n\t\t tree_header->table_data_offset );\n\n\t\tbyte_stream_copy_to_uint16_little_endian(\n\t\t ( (fsrefs_ministore_tree_header_t *) data )->unknown1,\n\t\t value_16bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown1\\t\\t\\t\\t: 0x%04\" PRIx16 \"\\n\",\n\t\t function,\n\t\t value_16bit );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_ministore_tree_header_t *) data )->unknown2,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown2\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_ministore_tree_header_t *) data )->unknown3,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown3\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_ministore_tree_header_t *) data )->unknown4,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown4\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_ministore_tree_header_t *) data )->unknown5,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown5\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_ministore_tree_header_t *) data )->unknown6,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown6\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_ministore_tree_header_t *) data )->unknown7,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown7\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_ministore_tree_header_t *) data )->unknown8,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown8\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_ministore_tree_header_t *) data )->unknown9,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown9\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\treturn( 1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_tree_header.h",
    "content": "/*\n * Ministore tree header functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_TREE_HEADER_H )\n#define _LIBFSREFS_TREE_HEADER_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_tree_header libfsrefs_tree_header_t;\n\nstruct libfsrefs_tree_header\n{\n\t/* The table data offset\n\t */\n\tuint16_t table_data_offset;\n};\n\nint libfsrefs_tree_header_initialize(\n     libfsrefs_tree_header_t **tree_header,\n     libcerror_error_t **error );\n\nint libfsrefs_tree_header_free(\n     libfsrefs_tree_header_t **tree_header,\n     libcerror_error_t **error );\n\nint libfsrefs_tree_header_read_data(\n     libfsrefs_tree_header_t *tree_header,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_TREE_HEADER_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_types.h",
    "content": "/*\n * The internal type definitions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_INTERNAL_TYPES_H )\n#define _LIBFSREFS_INTERNAL_TYPES_H\n\n#include <common.h>\n#include <types.h>\n\n/* Define HAVE_LOCAL_LIBFSREFS for local use of libfsrefs\n * The definitions in <libfsrefs/types.h> are copied here\n * for local use of libfsrefs\n */\n#if defined( HAVE_LOCAL_LIBFSREFS )\n\n/* The following type definitions hide internal data structures\n */\n#if defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI )\ntypedef struct libfsrefs_file_entry {}\tlibfsrefs_file_entry_t;\ntypedef struct libfsrefs_volume {}\tlibfsrefs_volume_t;\n\n#else\ntypedef intptr_t libfsrefs_file_entry_t;\ntypedef intptr_t libfsrefs_volume_t;\n\n#endif /* defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) */\n\n#endif /* defined( HAVE_LOCAL_LIBFSREFS ) */\n\n#endif /* !defined( _LIBFSREFS_INTERNAL_TYPES_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_unused.h",
    "content": "/*\n * Definitions to silence compiler warnings about unused function attributes/parameters.\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_UNUSED_H )\n#define _LIBFSREFS_UNUSED_H\n\n#include <common.h>\n\n#if !defined( LIBFSREFS_ATTRIBUTE_UNUSED )\n#if defined( __GNUC__ ) && __GNUC__ >= 3\n#define LIBFSREFS_ATTRIBUTE_UNUSED\t__attribute__ ((__unused__))\n#else\n#define LIBFSREFS_ATTRIBUTE_UNUSED\n#endif\n#endif\n\n#if defined( _MSC_VER )\n#define LIBFSREFS_UNREFERENCED_PARAMETER( parameter ) \\\n\tUNREFERENCED_PARAMETER( parameter );\n#else\n#define LIBFSREFS_UNREFERENCED_PARAMETER( parameter ) \\\n\t/* parameter */\n#endif\n\n#endif /* !defined( _LIBFSREFS_UNUSED_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_volume.c",
    "content": "/*\n * Volume functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <memory.h>\n#include <narrow_string.h>\n#include <types.h>\n#include <wide_string.h>\n\n#include \"libfsrefs_block_descriptor.h\"\n#include \"libfsrefs_debug.h\"\n#include \"libfsrefs_definitions.h\"\n#include \"libfsrefs_file_entry.h\"\n#include \"libfsrefs_file_system.h\"\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n#include \"libfsrefs_libcthreads.h\"\n#include \"libfsrefs_libfcache.h\"\n#include \"libfsrefs_libfdata.h\"\n#include \"libfsrefs_libuna.h\"\n#include \"libfsrefs_ministore_node.h\"\n#include \"libfsrefs_node_record.h\"\n#include \"libfsrefs_objects_tree.h\"\n#include \"libfsrefs_volume.h\"\n#include \"libfsrefs_volume_header.h\"\n\n/* Creates a volume\n * Make sure the value volume is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_initialize(\n     libfsrefs_volume_t **volume,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_volume_t *internal_volume = NULL;\n\tstatic char *function                        = \"libfsrefs_volume_initialize\";\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *volume != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid volume value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_volume = memory_allocate_structure(\n\t                   libfsrefs_internal_volume_t );\n\n\tif( internal_volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create volume.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     internal_volume,\n\t     0,\n\t     sizeof( libfsrefs_internal_volume_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear volume.\",\n\t\t function );\n\n\t\tmemory_free(\n\t\t internal_volume );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_io_handle_initialize(\n\t     &( internal_volume->io_handle ),\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_initialize(\n\t     &( internal_volume->read_write_lock ),\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to initialize read/write lock.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\t*volume = (libfsrefs_volume_t *) internal_volume;\n\n\treturn( 1 );\n\non_error:\n\tif( internal_volume != NULL )\n\t{\n\t\tif( internal_volume->io_handle != NULL )\n\t\t{\n\t\t\tlibfsrefs_io_handle_free(\n\t\t\t &( internal_volume->io_handle ),\n\t\t\t NULL );\n\t\t}\n\t\tmemory_free(\n\t\t internal_volume );\n\t}\n\treturn( -1 );\n}\n\n/* Frees a volume\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_free(\n     libfsrefs_volume_t **volume,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_volume_t *internal_volume = NULL;\n\tstatic char *function                        = \"libfsrefs_volume_free\";\n\tint result                                   = 1;\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *volume != NULL )\n\t{\n\t\tinternal_volume = (libfsrefs_internal_volume_t *) *volume;\n\n\t\tif( internal_volume->file_io_handle != NULL )\n\t\t{\n\t\t\tif( libfsrefs_volume_close(\n\t\t\t     *volume,\n\t\t\t     error ) != 0 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t\t LIBCERROR_IO_ERROR_CLOSE_FAILED,\n\t\t\t\t \"%s: unable to close volume.\",\n\t\t\t\t function );\n\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}\n\t\t*volume = NULL;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\t\tif( libcthreads_read_write_lock_free(\n\t\t     &( internal_volume->read_write_lock ),\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free read/write lock.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n#endif\n\t\tif( libfsrefs_io_handle_free(\n\t\t     &( internal_volume->io_handle ),\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free IO handle.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t\tmemory_free(\n\t\t internal_volume );\n\t}\n\treturn( result );\n}\n\n/* Signals the volume to abort its current activity\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_signal_abort(\n     libfsrefs_volume_t *volume,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_volume_t *internal_volume = NULL;\n\tstatic char *function                        = \"libfsrefs_volume_signal_abort\";\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_volume = (libfsrefs_internal_volume_t *) volume;\n\n\tif( internal_volume->io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid volume - missing IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_volume->io_handle->abort = 1;\n\n\treturn( 1 );\n}\n\n/* Opens a volume\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_open(\n     libfsrefs_volume_t *volume,\n     const char *filename,\n     int access_flags,\n     libcerror_error_t **error )\n{\n\tlibbfio_handle_t *file_io_handle             = NULL;\n\tlibfsrefs_internal_volume_t *internal_volume = NULL;\n\tstatic char *function                        = \"libfsrefs_volume_open\";\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_volume = (libfsrefs_internal_volume_t *) volume;\n\n\tif( filename == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid filename.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( ( access_flags & LIBFSREFS_ACCESS_FLAG_READ ) == 0 )\n\t && ( ( access_flags & LIBFSREFS_ACCESS_FLAG_WRITE ) == 0 ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported access flags.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( access_flags & LIBFSREFS_ACCESS_FLAG_WRITE ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: write access currently not supported.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libbfio_file_initialize(\n\t     &file_io_handle,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create file IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libbfio_handle_set_track_offsets_read(\n\t     file_io_handle,\n\t     1,\n\t     error ) != 1 )\n\t{\n                libcerror_error_set(\n                 error,\n                 LIBCERROR_ERROR_DOMAIN_RUNTIME,\n                 LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n                 \"%s: unable to set track offsets read in file IO handle.\",\n                 function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tif( libbfio_file_set_name(\n\t     file_io_handle,\n\t     filename,\n\t     narrow_string_length(\n\t      filename ) + 1,\n\t     error ) != 1 )\n\t{\n                libcerror_error_set(\n                 error,\n                 LIBCERROR_ERROR_DOMAIN_RUNTIME,\n                 LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n                 \"%s: unable to set filename in file IO handle.\",\n                 function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_volume_open_file_io_handle(\n\t     volume,\n\t     file_io_handle,\n\t     access_flags,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_OPEN_FAILED,\n\t\t \"%s: unable to open volume: %s.\",\n\t\t function,\n\t\t filename );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for writing.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_volume->file_io_handle_created_in_library = 1;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for writing.\",\n\t\t function );\n\n\t\tinternal_volume->file_io_handle_created_in_library = 0;\n\n\t\tgoto on_error;\n\t}\n#endif\n\treturn( 1 );\n\non_error:\n\tif( file_io_handle != NULL )\n\t{\n\t\tlibbfio_handle_free(\n\t\t &file_io_handle,\n\t\t NULL );\n\t}\n        return( -1 );\n}\n\n#if defined( HAVE_WIDE_CHARACTER_TYPE )\n\n/* Opens a volume\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_open_wide(\n     libfsrefs_volume_t *volume,\n     const wchar_t *filename,\n     int access_flags,\n     libcerror_error_t **error )\n{\n\tlibbfio_handle_t *file_io_handle             = NULL;\n\tlibfsrefs_internal_volume_t *internal_volume = NULL;\n\tstatic char *function                        = \"libfsrefs_volume_open_wide\";\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_volume = (libfsrefs_internal_volume_t *) volume;\n\n\tif( filename == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid filename.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( ( access_flags & LIBFSREFS_ACCESS_FLAG_READ ) == 0 )\n\t && ( ( access_flags & LIBFSREFS_ACCESS_FLAG_WRITE ) == 0 ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported access flags.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( access_flags & LIBFSREFS_ACCESS_FLAG_WRITE ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: write access currently not supported.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libbfio_file_initialize(\n\t     &file_io_handle,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create file IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libbfio_handle_set_track_offsets_read(\n\t     file_io_handle,\n\t     1,\n\t     error ) != 1 )\n\t{\n                libcerror_error_set(\n                 error,\n                 LIBCERROR_ERROR_DOMAIN_RUNTIME,\n                 LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n                 \"%s: unable to set track offsets read in file IO handle.\",\n                 function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tif( libbfio_file_set_name_wide(\n\t     file_io_handle,\n\t     filename,\n\t     wide_string_length(\n\t      filename ) + 1,\n\t     error ) != 1 )\n\t{\n                libcerror_error_set(\n                 error,\n                 LIBCERROR_ERROR_DOMAIN_RUNTIME,\n                 LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n                 \"%s: unable to set filename in file IO handle.\",\n                 function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_volume_open_file_io_handle(\n\t     volume,\n\t     file_io_handle,\n\t     access_flags,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_OPEN_FAILED,\n\t\t \"%s: unable to open volume: %ls.\",\n\t\t function,\n\t\t filename );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for writing.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_volume->file_io_handle_created_in_library = 1;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for writing.\",\n\t\t function );\n\n\t\tinternal_volume->file_io_handle_created_in_library = 0;\n\n\t\tgoto on_error;\n\t}\n#endif\n\treturn( 1 );\n\non_error:\n\tif( file_io_handle != NULL )\n\t{\n\t\tlibbfio_handle_free(\n\t\t &file_io_handle,\n\t\t NULL );\n\t}\n        return( -1 );\n}\n\n#endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */\n\n/* Opens a volume using a Basic File IO (bfio) handle\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_open_file_io_handle(\n     libfsrefs_volume_t *volume,\n     libbfio_handle_t *file_io_handle,\n     int access_flags,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_volume_t *internal_volume = NULL;\n\tstatic char *function                        = \"libfsrefs_volume_open_file_io_handle\";\n\tuint8_t file_io_handle_opened_in_library     = 0;\n\tint bfio_access_flags                        = 0;\n\tint file_io_handle_is_open                   = 0;\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_volume = (libfsrefs_internal_volume_t *) volume;\n\n\tif( internal_volume->file_io_handle != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid volume - file IO handle already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( file_io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( ( access_flags & LIBFSREFS_ACCESS_FLAG_READ ) == 0 )\n\t && ( ( access_flags & LIBFSREFS_ACCESS_FLAG_WRITE ) == 0 ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported access flags.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( access_flags & LIBFSREFS_ACCESS_FLAG_WRITE ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: write access currently not supported.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( access_flags & LIBFSREFS_ACCESS_FLAG_READ ) != 0 )\n\t{\n\t\tbfio_access_flags = LIBBFIO_ACCESS_FLAG_READ;\n\t}\n\tfile_io_handle_is_open = libbfio_handle_is_open(\n\t                          file_io_handle,\n\t                          error );\n\n\tif( file_io_handle_is_open == -1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_OPEN_FAILED,\n\t\t \"%s: unable to open volume.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\telse if( file_io_handle_is_open == 0 )\n\t{\n\t\tif( libbfio_handle_open(\n\t\t     file_io_handle,\n\t\t     bfio_access_flags,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_OPEN_FAILED,\n\t\t\t \"%s: unable to open file IO handle.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t\tfile_io_handle_opened_in_library = 1;\n\t}\n\tif( libfsrefs_internal_volume_open_read(\n\t     internal_volume,\n\t     file_io_handle,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read from file IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for writing.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#endif\n\tinternal_volume->file_io_handle                   = file_io_handle;\n\tinternal_volume->file_io_handle_opened_in_library = file_io_handle_opened_in_library;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for writing.\",\n\t\t function );\n\n\t\tinternal_volume->file_io_handle                   = NULL;\n\t\tinternal_volume->file_io_handle_opened_in_library = 0;\n\n\t\tgoto on_error;\n\t}\n#endif\n\treturn( 1 );\n\non_error:\n\tif( file_io_handle_opened_in_library != 0 )\n\t{\n\t\tlibbfio_handle_close(\n\t\t file_io_handle,\n\t\t error );\n\t}\n\treturn( -1 );\n}\n\n/* Closes a volume\n * Returns 0 if successful or -1 on error\n */\nint libfsrefs_volume_close(\n     libfsrefs_volume_t *volume,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_volume_t *internal_volume = NULL;\n\tstatic char *function                        = \"libfsrefs_volume_close\";\n\tint result                                   = 0;\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_volume = (libfsrefs_internal_volume_t *) volume;\n\n\tif( internal_volume->file_io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid volume - missing file IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for writing.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tif( internal_volume->file_io_handle_created_in_library != 0 )\n\t\t{\n\t\t\tif( libfsrefs_debug_print_read_offsets(\n\t\t\t     internal_volume->file_io_handle,\n\t\t\t     error ) != 1 )\n\t\t\t{\n\t\t\t\tlibcerror_error_set(\n\t\t\t\t error,\n\t\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t\t LIBCERROR_RUNTIME_ERROR_PRINT_FAILED,\n\t\t\t\t \"%s: unable to print the read offsets.\",\n\t\t\t\t function );\n\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tif( internal_volume->file_io_handle_opened_in_library != 0 )\n\t{\n\t\tif( libbfio_handle_close(\n\t\t     internal_volume->file_io_handle,\n\t\t     error ) != 0 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_CLOSE_FAILED,\n\t\t\t \"%s: unable to close file IO handle.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t\tinternal_volume->file_io_handle_opened_in_library = 0;\n\t}\n\tif( internal_volume->file_io_handle_created_in_library != 0 )\n\t{\n\t\tif( libbfio_handle_free(\n\t\t     &( internal_volume->file_io_handle ),\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free file IO handle.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t\tinternal_volume->file_io_handle_created_in_library = 0;\n\t}\n\tinternal_volume->file_io_handle = NULL;\n\n\tif( libfsrefs_io_handle_clear(\n\t     internal_volume->io_handle,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t \"%s: unable to clear IO handle.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n\tif( internal_volume->volume_header != NULL )\n\t{\n\t\tif( libfsrefs_volume_header_free(\n\t\t     &( internal_volume->volume_header ),\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free volume header.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n\tif( internal_volume->file_system != NULL )\n\t{\n\t\tif( libfsrefs_file_system_free(\n\t\t     &( internal_volume->file_system ),\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free file system.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n\tif( internal_volume->objects_tree != NULL )\n\t{\n\t\tif( libfsrefs_objects_tree_free(\n\t\t     &( internal_volume->objects_tree ),\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free objects tree.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n\tif( internal_volume->volume_information_object != NULL )\n\t{\n\t\tif( libfsrefs_ministore_node_free(\n\t\t     &( internal_volume->volume_information_object ),\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t\t \"%s: unable to free volume information object.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t\tinternal_volume->volume_name_record = NULL;\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for writing.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Opens a volume for reading\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_internal_volume_open_read(\n     libfsrefs_internal_volume_t *internal_volume,\n     libbfio_handle_t *file_io_handle,\n     libcerror_error_t **error )\n{\n\tstatic char *function         = \"libfsrefs_internal_volume_open_read\";\n\toff64_t superblock_offset     = 0;\n\tint number_of_ministore_trees = 0;\n\n\tif( internal_volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( internal_volume->io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid volume - missing IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( internal_volume->file_system != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid volume - file system value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( internal_volume->objects_tree != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid volume - objects tree value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( internal_volume->volume_header != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid volume - volume header value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"Reading volume header:\\n\" );\n\t}\n#endif\n\tif( libfsrefs_volume_header_initialize(\n\t     &( internal_volume->volume_header ),\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create volume header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_volume_header_read_file_io_handle(\n\t     internal_volume->volume_header,\n\t     file_io_handle,\n\t     0,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read volume header at offset: 0 (0x00000000).\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tinternal_volume->io_handle->bytes_per_sector     = internal_volume->volume_header->bytes_per_sector;\n\tinternal_volume->io_handle->volume_size          = internal_volume->volume_header->volume_size;\n\tinternal_volume->io_handle->major_format_version = internal_volume->volume_header->major_format_version;\n\tinternal_volume->io_handle->minor_format_version = internal_volume->volume_header->minor_format_version;\n\tinternal_volume->io_handle->cluster_block_size   = internal_volume->volume_header->cluster_block_size;\n\tinternal_volume->io_handle->metadata_block_size  = internal_volume->volume_header->metadata_block_size;\n\tinternal_volume->io_handle->container_size       = internal_volume->volume_header->container_size;\n\n\tif( libfsrefs_file_system_initialize(\n\t     &( internal_volume->file_system ),\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create file system.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"Reading superblock:\\n\" );\n\t}\n#endif\n\tsuperblock_offset = 30 * internal_volume->io_handle->metadata_block_size;\n\n\tif( libfsrefs_file_system_read_superblock(\n\t     internal_volume->file_system,\n\t     internal_volume->io_handle,\n\t     file_io_handle,\n\t     superblock_offset,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read superblock at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t function,\n\t\t superblock_offset,\n\t\t superblock_offset );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"Reading checkpoints:\\n\" );\n\t}\n#endif\n\tif( libfsrefs_file_system_read_checkpoints(\n\t     internal_volume->file_system,\n\t     internal_volume->io_handle,\n\t     file_io_handle,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read checkpoints.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_file_system_get_number_of_ministore_trees(\n\t     internal_volume->file_system,\n\t     &number_of_ministore_trees,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve number of ministore trees.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( number_of_ministore_trees == 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid number of ministore trees value out of bounds.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( number_of_ministore_trees > 8 )\n\t{\n#if defined( HAVE_DEBUG_OUTPUT )\n\t\tif( libcnotify_verbose != 0 )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"Reading container trees:\\n\" );\n\t\t}\n#endif\n\t\tif( libfsrefs_file_system_read_container_trees(\n\t\t     internal_volume->file_system,\n\t\t     internal_volume->io_handle,\n\t\t     file_io_handle,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t\t \"%s: unable to read container trees.\",\n\t\t\t function );\n\n\t\t\tgoto on_error;\n\t\t}\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"Reading objects tree\\n\" );\n\t}\n#endif\n\tif( libfsrefs_objects_tree_initialize(\n\t     &( internal_volume->objects_tree ),\n\t     internal_volume->file_system,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create objects tree.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libfsrefs_objects_tree_read(\n\t     internal_volume->objects_tree,\n\t     internal_volume->io_handle,\n\t     file_io_handle,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read objects tree.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"Reading volume information object\\n\" );\n\t}\n#endif\n\tif( libfsrefs_objects_tree_get_ministore_tree_by_identifier(\n\t     internal_volume->objects_tree,\n\t     internal_volume->io_handle,\n\t     file_io_handle,\n\t     (uint64_t) 0x00000500UL,\n\t     &( internal_volume->volume_information_object ),\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve volume information object from objects tree.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( internal_volume->volume_information_object != NULL )\n\t{\n\t\tlibfsrefs_ministore_node_free(\n\t\t &( internal_volume->volume_information_object ),\n\t\t NULL );\n\t}\n\tif( internal_volume->objects_tree != NULL )\n\t{\n\t\tlibfsrefs_objects_tree_free(\n\t\t &( internal_volume->objects_tree ),\n\t\t NULL );\n\t}\n\tif( internal_volume->file_system != NULL )\n\t{\n\t\tlibfsrefs_file_system_free(\n\t\t &( internal_volume->file_system ),\n\t\t NULL );\n\t}\n\tif( internal_volume->volume_header != NULL )\n\t{\n\t\tlibfsrefs_volume_header_free(\n\t\t &( internal_volume->volume_header ),\n\t\t NULL );\n\t}\n\treturn( -1 );\n}\n\n/* Retrieves the bytes per sector\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_get_bytes_per_sector(\n     libfsrefs_volume_t *volume,\n     uint16_t *bytes_per_sector,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_volume_t *internal_volume = NULL;\n\tstatic char *function                        = \"libfsrefs_volume_get_bytes_per_sector\";\n\tint result                                   = 1;\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_volume = (libfsrefs_internal_volume_t *) volume;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_read(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( libfsrefs_volume_header_get_bytes_per_sector(\n\t     internal_volume->volume_header,\n\t     bytes_per_sector,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve bytes per sector.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_read(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Retrieves the cluster block size\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_get_cluster_block_size(\n     libfsrefs_volume_t *volume,\n     size32_t *cluster_block_size,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_volume_t *internal_volume = NULL;\n\tstatic char *function                        = \"libfsrefs_volume_get_cluster_block_size\";\n\tint result                                   = 1;\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_volume = (libfsrefs_internal_volume_t *) volume;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_read(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( libfsrefs_volume_header_get_cluster_block_size(\n\t     internal_volume->volume_header,\n\t     cluster_block_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve cluster block size.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_read(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Retrieves the volume name record\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_internal_volume_get_volume_name_record(\n     libfsrefs_internal_volume_t *internal_volume,\n     libcerror_error_t **error )\n{\n\tuint8_t key_data[ 8 ];\n\n\tstatic char *function      = \"libfsrefs_internal_volume_get_volume_name_record\";\n\tuint64_t object_identifier = 0x00000510UL;\n\n\tif( internal_volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( internal_volume->volume_name_record != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid volume - volume name record already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tbyte_stream_copy_from_uint64_little_endian(\n\t key_data,\n\t object_identifier );\n\n\tif( libfsrefs_ministore_node_get_record_by_key(\n\t     internal_volume->volume_information_object,\n\t     key_data,\n\t     8,\n\t     &( internal_volume->volume_name_record ),\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve identifier: 0x%08\" PRIx64 \" from volume information object.\",\n\t\t function,\n\t\t object_identifier );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Retrieves the size of the UTF-8 encoded name\n * The returned size includes the end of string character\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_get_utf8_name_size(\n     libfsrefs_volume_t *volume,\n     size_t *utf8_string_size,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_volume_t *internal_volume = NULL;\n\tstatic char *function                        = \"libfsrefs_volume_get_utf8_name_size\";\n\tint result                                   = 1;\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_volume = (libfsrefs_internal_volume_t *) volume;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for writing.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( internal_volume->volume_name_record == NULL )\n\t{\n\t\tif( libfsrefs_internal_volume_get_volume_name_record(\n\t\t     internal_volume,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve volume name record.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n\tif( internal_volume->volume_name_record == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid volume - missing volume name record.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n\telse if( libuna_utf8_string_size_from_utf16_stream(\n\t          internal_volume->volume_name_record->value_data,\n\t          internal_volume->volume_name_record->value_data_size,\n\t          LIBUNA_ENDIAN_LITTLE,\n\t          utf8_string_size,\n\t          error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve size of UTF-8 name from volume name record.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for writing.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Retrieves the UTF-8 encoded name value\n * The size should include the end of string character\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_get_utf8_name(\n     libfsrefs_volume_t *volume,\n     uint8_t *utf8_string,\n     size_t utf8_string_size,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_volume_t *internal_volume = NULL;\n\tstatic char *function                        = \"libfsrefs_volume_get_utf8_name\";\n\tint result                                   = 1;\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_volume = (libfsrefs_internal_volume_t *) volume;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for writing.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( internal_volume->volume_name_record == NULL )\n\t{\n\t\tif( libfsrefs_internal_volume_get_volume_name_record(\n\t\t     internal_volume,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve volume name record.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n\tif( internal_volume->volume_name_record == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid volume - missing volume name record.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n\telse if( libuna_utf8_string_copy_from_utf16_stream(\n\t          utf8_string,\n\t          utf8_string_size,\n\t          internal_volume->volume_name_record->value_data,\n\t          internal_volume->volume_name_record->value_data_size,\n\t          LIBUNA_ENDIAN_LITTLE,\n\t          error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve UTF-8 name from volume name record.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for writing.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Retrieves the size of the UTF-16 encoded name\n * The returned size includes the end of string character\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_get_utf16_name_size(\n     libfsrefs_volume_t *volume,\n     size_t *utf16_string_size,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_volume_t *internal_volume = NULL;\n\tstatic char *function                        = \"libfsrefs_volume_get_utf16_name_size\";\n\tint result                                   = 1;\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_volume = (libfsrefs_internal_volume_t *) volume;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for writing.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( internal_volume->volume_name_record == NULL )\n\t{\n\t\tif( libfsrefs_internal_volume_get_volume_name_record(\n\t\t     internal_volume,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve volume name record.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n\tif( internal_volume->volume_name_record == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid volume - missing volume name record.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n\telse if( libuna_utf16_string_size_from_utf16_stream(\n\t          internal_volume->volume_name_record->value_data,\n\t          internal_volume->volume_name_record->value_data_size,\n\t          LIBUNA_ENDIAN_LITTLE,\n\t          utf16_string_size,\n\t          error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve size of UTF-16 name from volume name record.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for writing.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Retrieves the UTF-16 encoded name value\n * The size should include the end of string character\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_get_utf16_name(\n     libfsrefs_volume_t *volume,\n     uint16_t *utf16_string,\n     size_t utf16_string_size,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_volume_t *internal_volume = NULL;\n\tstatic char *function                        = \"libfsrefs_volume_get_utf16_name\";\n\tint result                                   = 1;\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_volume = (libfsrefs_internal_volume_t *) volume;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for writing.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( internal_volume->volume_name_record == NULL )\n\t{\n\t\tif( libfsrefs_internal_volume_get_volume_name_record(\n\t\t     internal_volume,\n\t\t     error ) != 1 )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t\t \"%s: unable to retrieve volume name record.\",\n\t\t\t function );\n\n\t\t\tresult = -1;\n\t\t}\n\t}\n\tif( internal_volume->volume_name_record == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid volume - missing volume name record.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n\telse if( libuna_utf16_string_copy_from_utf16_stream(\n\t          utf16_string,\n\t          utf16_string_size,\n\t          internal_volume->volume_name_record->value_data,\n\t          internal_volume->volume_name_record->value_data_size,\n\t          LIBUNA_ENDIAN_LITTLE,\n\t          error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve UTF-16 name from volume name record.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for writing.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Retrieves the format version\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_get_version(\n     libfsrefs_volume_t *volume,\n     uint8_t *major_version,\n     uint8_t *minor_version,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_volume_t *internal_volume = NULL;\n\tstatic char *function                        = \"libfsrefs_volume_get_version\";\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_volume = (libfsrefs_internal_volume_t *) volume;\n\n\tif( internal_volume->io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid volume - missing IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( major_version == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid major version.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( minor_version == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid minor version.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_read(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\t*major_version = internal_volume->io_handle->major_format_version;\n\t*minor_version = internal_volume->io_handle->minor_format_version;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_read(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( 1 );\n}\n\n/* Retrieves the serial number\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_get_serial_number(\n     libfsrefs_volume_t *volume,\n     uint64_t *serial_number,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_volume_t *internal_volume = NULL;\n\tstatic char *function                        = \"libfsrefs_volume_get_serial_number\";\n\tint result                                   = 1;\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_volume = (libfsrefs_internal_volume_t *) volume;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_read(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( libfsrefs_volume_header_get_volume_serial_number(\n\t     internal_volume->volume_header,\n\t     serial_number,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_GET_FAILED,\n\t\t \"%s: unable to retrieve volume serial number.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_read(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for reading.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n/* Retrieves the root directory file entry\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_get_root_directory(\n     libfsrefs_volume_t *volume,\n     libfsrefs_file_entry_t **file_entry,\n     libcerror_error_t **error )\n{\n\tlibfsrefs_internal_volume_t *internal_volume = NULL;\n\tstatic char *function                        = \"libfsrefs_volume_get_root_directory\";\n\tint result                                   = 1;\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tinternal_volume = (libfsrefs_internal_volume_t *) volume;\n\n\tif( file_entry == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file entry.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *file_entry != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid file entry value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_grab_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to grab read/write lock for writing.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\tif( libfsrefs_file_entry_initialize(\n\t     file_entry,\n\t     internal_volume->io_handle,\n\t     internal_volume->file_io_handle,\n\t     internal_volume->objects_tree,\n\t     NULL,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create root directory file entry.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\tif( libcthreads_read_write_lock_release_for_write(\n\t     internal_volume->read_write_lock,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to release read/write lock for writing.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif\n\treturn( result );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_volume.h",
    "content": "/*\n * Volume functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_INTERNAL_VOLUME_H )\n#define _LIBFSREFS_INTERNAL_VOLUME_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_extern.h\"\n#include \"libfsrefs_file_system.h\"\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcthreads.h\"\n#include \"libfsrefs_libfcache.h\"\n#include \"libfsrefs_libfdata.h\"\n#include \"libfsrefs_ministore_node.h\"\n#include \"libfsrefs_node_record.h\"\n#include \"libfsrefs_objects_tree.h\"\n#include \"libfsrefs_types.h\"\n#include \"libfsrefs_volume_header.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_internal_volume libfsrefs_internal_volume_t;\n\nstruct libfsrefs_internal_volume\n{\n\t/* The volume header\n\t */\n\tlibfsrefs_volume_header_t *volume_header;\n\n\t/* The file system\n\t */\n\tlibfsrefs_file_system_t *file_system;\n\n\t/* The objects tree\n\t */\n\tlibfsrefs_objects_tree_t *objects_tree;\n\n\t/* The volume information object\n\t */\n\tlibfsrefs_ministore_node_t *volume_information_object;\n\n\t/* The volume name record\n\t */\n\tlibfsrefs_node_record_t *volume_name_record;\n\n\t/* The IO handle\n\t */\n\tlibfsrefs_io_handle_t *io_handle;\n\n\t/* The file IO handle\n\t */\n\tlibbfio_handle_t *file_io_handle;\n\n\t/* Value to indicate if the file IO handle was created inside the library\n\t */\n\tuint8_t file_io_handle_created_in_library;\n\n\t/* Value to indicate if the file IO handle was opened inside the library\n\t */\n\tuint8_t file_io_handle_opened_in_library;\n\n#if defined( HAVE_LIBFSREFS_MULTI_THREAD_SUPPORT )\n\t/* The read/write lock\n\t */\n\tlibcthreads_read_write_lock_t *read_write_lock;\n#endif\n};\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_initialize(\n     libfsrefs_volume_t **volume,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_free(\n     libfsrefs_volume_t **volume,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_signal_abort(\n     libfsrefs_volume_t *volume,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_open(\n     libfsrefs_volume_t *volume,\n     const char *filename,\n     int access_flags,\n     libcerror_error_t **error );\n\n#if defined( HAVE_WIDE_CHARACTER_TYPE )\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_open_wide(\n     libfsrefs_volume_t *volume,\n     const wchar_t *filename,\n     int access_flags,\n     libcerror_error_t **error );\n\n#endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_open_file_io_handle(\n     libfsrefs_volume_t *volume,\n     libbfio_handle_t *file_io_handle,\n     int access_flags,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_close(\n     libfsrefs_volume_t *volume,\n     libcerror_error_t **error );\n\nint libfsrefs_internal_volume_open_read(\n     libfsrefs_internal_volume_t *internal_volume,\n     libbfio_handle_t *file_io_handle,\n     libcerror_error_t **error );\n\nint libfsrefs_internal_volume_get_volume_name_record(\n     libfsrefs_internal_volume_t *internal_volume,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_bytes_per_sector(\n     libfsrefs_volume_t *volume,\n     uint16_t *bytes_per_sector,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_cluster_block_size(\n     libfsrefs_volume_t *volume,\n     size32_t *cluster_block_size,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_utf8_name_size(\n     libfsrefs_volume_t *volume,\n     size_t *utf8_string_size,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_utf8_name(\n     libfsrefs_volume_t *volume,\n     uint8_t *utf8_string,\n     size_t utf8_string_size,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_utf16_name_size(\n     libfsrefs_volume_t *volume,\n     size_t *utf16_string_size,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_utf16_name(\n     libfsrefs_volume_t *volume,\n     uint16_t *utf16_string,\n     size_t utf16_string_size,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_version(\n     libfsrefs_volume_t *volume,\n     uint8_t *major_version,\n     uint8_t *minor_version,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_serial_number(\n     libfsrefs_volume_t *volume,\n     uint64_t *serial_number,\n     libcerror_error_t **error );\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_get_root_directory(\n     libfsrefs_volume_t *volume,\n     libfsrefs_file_entry_t **file_entry,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_INTERNAL_VOLUME_H ) */\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_volume_header.c",
    "content": "/*\n * The REFS volume header functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#include \"libfsrefs_io_handle.h\"\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n#include \"libfsrefs_libcnotify.h\"\n#include \"libfsrefs_volume_header.h\"\n\n#include \"fsrefs_volume_header.h\"\n\n/* Creates a volume header\n * Make sure the value volume_header is referencing, is set to NULL\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_header_initialize(\n     libfsrefs_volume_header_t **volume_header,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_volume_header_initialize\";\n\n\tif( volume_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *volume_header != NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET,\n\t\t \"%s: invalid volume header value already set.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*volume_header = memory_allocate_structure(\n\t                  libfsrefs_volume_header_t );\n\n\tif( *volume_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_INSUFFICIENT,\n\t\t \"%s: unable to create volume header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( memory_set(\n\t     *volume_header,\n\t     0,\n\t     sizeof( libfsrefs_volume_header_t ) ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_SET_FAILED,\n\t\t \"%s: unable to clear volume header.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *volume_header != NULL )\n\t{\n\t\tmemory_free(\n\t\t *volume_header );\n\n\t\t*volume_header = NULL;\n\t}\n\treturn( -1 );\n}\n\n/* Frees a volume header\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_header_free(\n     libfsrefs_volume_header_t **volume_header,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_volume_header_free\";\n\n\tif( volume_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( *volume_header != NULL )\n\t{\n\t\tmemory_free(\n\t\t *volume_header );\n\n\t\t*volume_header = NULL;\n\t}\n\treturn( 1 );\n}\n\n/* Reads the volume header\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_header_read_data(\n     libfsrefs_volume_header_t *volume_header,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function              = \"libfsrefs_volume_header_read_data\";\n\tuint64_t number_of_sectors         = 0;\n\tuint32_t sectors_per_cluster_block = 0;\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tuint64_t value_64bit               = 0;\n\tuint32_t value_32bit               = 0;\n\tuint16_t value_16bit               = 0;\n#endif\n\n\tif( volume_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( data == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_MISSING,\n\t\t \"%s: invalid data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( ( data_size < sizeof( fsrefs_volume_header_t ) )\n\t || ( data_size > (size_t) SSIZE_MAX ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid data size value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: volume header data:\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t data,\n\t\t sizeof( fsrefs_volume_header_t ),\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif\n\tif( memory_compare(\n\t     ( (fsrefs_volume_header_t *) data )->file_system_signature,\n\t     fsrefs_volume_file_system_signature,\n\t     8 ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: invalid volume system signature.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tbyte_stream_copy_to_uint64_little_endian(\n\t ( (fsrefs_volume_header_t *) data )->number_of_sectors,\n\t number_of_sectors );\n\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_volume_header_t *) data )->bytes_per_sector,\n\t volume_header->bytes_per_sector );\n\n\tbyte_stream_copy_to_uint32_little_endian(\n\t ( (fsrefs_volume_header_t *) data )->sectors_per_cluster_block,\n\t sectors_per_cluster_block );\n\n\tvolume_header->major_format_version = ( (fsrefs_volume_header_t *) data )->major_format_version;\n\tvolume_header->minor_format_version = ( (fsrefs_volume_header_t *) data )->minor_format_version;\n\n\tbyte_stream_copy_to_uint64_little_endian(\n\t ( (fsrefs_volume_header_t *) data )->volume_serial_number,\n\t volume_header->volume_serial_number );\n\n\tbyte_stream_copy_to_uint64_little_endian(\n\t ( (fsrefs_volume_header_t *) data )->container_size,\n\t volume_header->container_size );\n\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown1\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t ( (fsrefs_volume_header_t *) data )->unknown1,\n\t\t 3,\n\t\t 0 );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: file system signature\\t\\t: %c%c%c%c\\n\",\n\t\t function,\n\t\t ( (fsrefs_volume_header_t *) data )->file_system_signature[ 0 ],\n\t\t ( (fsrefs_volume_header_t *) data )->file_system_signature[ 1 ],\n\t\t ( (fsrefs_volume_header_t *) data )->file_system_signature[ 2 ],\n\t\t ( (fsrefs_volume_header_t *) data )->file_system_signature[ 3 ] );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown2\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t ( (fsrefs_volume_header_t *) data )->unknown2,\n\t\t 9,\n\t\t 0 );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown3\\t\\t\\t\\t: %c%c%c%c\\n\",\n\t\t function,\n\t\t ( (fsrefs_volume_header_t *) data )->unknown3[ 0 ],\n\t\t ( (fsrefs_volume_header_t *) data )->unknown3[ 1 ],\n\t\t ( (fsrefs_volume_header_t *) data )->unknown3[ 2 ],\n\t\t ( (fsrefs_volume_header_t *) data )->unknown3[ 3 ] );\n\n\t\tbyte_stream_copy_to_uint16_little_endian(\n\t\t ( (fsrefs_volume_header_t *) data )->unknown4,\n\t\t value_16bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown4\\t\\t\\t\\t: 0x%04\" PRIx16 \"\\n\",\n\t\t function,\n\t\t value_16bit );\n\n\t\tbyte_stream_copy_to_uint16_little_endian(\n\t\t ( (fsrefs_volume_header_t *) data )->checksum,\n\t\t value_16bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: checksum\\t\\t\\t\\t: 0x%04\" PRIx16 \"\\n\",\n\t\t function,\n\t\t value_16bit );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: number of sectors\\t\\t\\t: %\" PRIu64 \"\\n\",\n\t\t function,\n\t\t number_of_sectors );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: bytes per sector\\t\\t\\t: %\" PRIu32 \"\\n\",\n\t\t function,\n\t\t volume_header->bytes_per_sector );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: sectors per cluster block\\t\\t: %\" PRIu32 \"\\n\",\n\t\t function,\n\t\t sectors_per_cluster_block );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: major format version\\t\\t\\t: %\" PRIu8 \"\\n\",\n\t\t function,\n\t\t volume_header->major_format_version );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: minor format version\\t\\t\\t: %\" PRIu8 \"\\n\",\n\t\t function,\n\t\t volume_header->minor_format_version );\n\n\t\tbyte_stream_copy_to_uint16_little_endian(\n\t\t ( (fsrefs_volume_header_t *) data )->unknown7,\n\t\t value_16bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown7\\t\\t\\t\\t: 0x%04\" PRIx16 \"\\n\",\n\t\t function,\n\t\t value_16bit );\n\n\t\tbyte_stream_copy_to_uint32_little_endian(\n\t\t ( (fsrefs_volume_header_t *) data )->unknown8,\n\t\t value_32bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown8\\t\\t\\t\\t: 0x%08\" PRIx32 \"\\n\",\n\t\t function,\n\t\t value_32bit );\n\n\t\tbyte_stream_copy_to_uint64_little_endian(\n\t\t ( (fsrefs_volume_header_t *) data )->unknown9,\n\t\t value_64bit );\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown9\\t\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t value_64bit );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: volume serial number\\t\\t\\t: 0x%08\" PRIx64 \"\\n\",\n\t\t function,\n\t\t volume_header->volume_serial_number );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: container size\\t\\t\\t: %\" PRIu64 \"\\n\",\n\t\t function,\n\t\t volume_header->container_size );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: unknown11\\n\",\n\t\t function );\n\t\tlibcnotify_print_data(\n\t\t ( (fsrefs_volume_header_t *) data )->unknown11,\n\t\t 440,\n\t\t LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\tif( ( volume_header->bytes_per_sector != 256 )\n\t && ( volume_header->bytes_per_sector != 512 )\n\t && ( volume_header->bytes_per_sector != 1024 )\n\t && ( volume_header->bytes_per_sector != 2048 )\n\t && ( volume_header->bytes_per_sector != 4096 ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported bytes per sector: %\" PRIu16 \".\",\n\t\t function,\n\t\t volume_header->bytes_per_sector );\n\n\t\treturn( -1 );\n\t}\n\tif( number_of_sectors > (size64_t) ( ( UINT64_MAX / volume_header->bytes_per_sector ) + 1 ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid number of sectors value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tvolume_header->volume_size  = number_of_sectors * volume_header->bytes_per_sector;\n\tvolume_header->volume_size += volume_header->bytes_per_sector;\n\n\tif( sectors_per_cluster_block > (size32_t) ( UINT32_MAX / volume_header->bytes_per_sector ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid sectors per cluster block value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tvolume_header->cluster_block_size = (size32_t) sectors_per_cluster_block * volume_header->bytes_per_sector;\n\n\tif( ( volume_header->cluster_block_size != 4096 )\n\t && ( volume_header->cluster_block_size != 65536 ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported cluster block size: %\" PRIu32 \".\",\n\t\t function,\n\t\t volume_header->cluster_block_size );\n\n\t\treturn( -1 );\n\t}\n\tif( ( volume_header->major_format_version != 1 )\n\t && ( volume_header->major_format_version != 3 ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t \"%s: unsupported format version: %\" PRIu8 \".%\" PRIu8 \".\",\n\t\t function,\n\t\t volume_header->major_format_version,\n\t\t volume_header->minor_format_version );\n\n\t\treturn( -1 );\n\t}\n\tif( volume_header->major_format_version == 1 )\n\t{\n\t\tvolume_header->metadata_block_size = 16 * 1024;\n\t}\n\telse if( volume_header->major_format_version == 3 )\n\t{\n\t\tvolume_header->metadata_block_size = volume_header->cluster_block_size;\n\n\t\tif( volume_header->container_size == 0 )\n\t\t{\n\t\t\tvolume_header->container_size = 0x4000;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tvolume_header->container_size /= volume_header->cluster_block_size;\n\t\t}\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: cluster block size\\t\\t\\t: %\" PRIu32 \"\\n\",\n\t\t function,\n\t\t volume_header->cluster_block_size );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: metadata block size\\t\\t\\t: %\" PRIu32 \"\\n\",\n\t\t function,\n\t\t volume_header->metadata_block_size );\n\n\t\tlibcnotify_printf(\n\t\t \"%s: container size\\t\\t\\t: %\" PRIu64 \" blocks\\n\",\n\t\t function,\n\t\t volume_header->container_size );\n\n\t\tlibcnotify_printf(\n\t\t \"\\n\" );\n\t}\n#endif /* defined( HAVE_DEBUG_OUTPUT ) */\n\n\treturn( 1 );\n}\n\n/* Reads the volume header\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_header_read_file_io_handle(\n     libfsrefs_volume_header_t *volume_header,\n     libbfio_handle_t *file_io_handle,\n     off64_t file_offset,\n     libcerror_error_t **error )\n{\n\tuint8_t volume_header_data[ sizeof( fsrefs_volume_header_t ) ];\n\n\tstatic char *function = \"libfsrefs_volume_header_read_file_io_handle\";\n\tssize_t read_count    = 0;\n\n\tif( volume_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_DEBUG_OUTPUT )\n\tif( libcnotify_verbose != 0 )\n\t{\n\t\tlibcnotify_printf(\n\t\t \"%s: reading volume header at offset: %\" PRIi64 \" (0x%08\" PRIx64 \")\\n\",\n\t\t function,\n\t\t file_offset,\n\t\t file_offset );\n\t}\n#endif\n\tread_count = libbfio_handle_read_buffer_at_offset(\n\t              file_io_handle,\n\t              volume_header_data,\n\t              sizeof( fsrefs_volume_header_t ),\n\t              file_offset,\n\t              error );\n\n\tif( read_count != (ssize_t) sizeof( fsrefs_volume_header_t ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read volume header data at offset: %\" PRIi64 \" (0x%08\" PRIx64 \").\",\n\t\t function,\n\t\t file_offset,\n\t\t file_offset );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_volume_header_read_data(\n\t     volume_header,\n\t     volume_header_data,\n\t     sizeof( fsrefs_volume_header_t ),\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_READ_FAILED,\n\t\t \"%s: unable to read volume header data.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\treturn( 1 );\n}\n\n/* Retrieves the bytes per sector\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_header_get_bytes_per_sector(\n     libfsrefs_volume_header_t *volume_header,\n     uint16_t *bytes_per_sector,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_volume_header_get_bytes_per_sector\";\n\n\tif( volume_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( bytes_per_sector == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid bytes per sector.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*bytes_per_sector = volume_header->bytes_per_sector;\n\n\treturn( 1 );\n}\n\n/* Retrieves the cluster block size\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_header_get_cluster_block_size(\n     libfsrefs_volume_header_t *volume_header,\n     size32_t *cluster_block_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_volume_header_get_cluster_block_size\";\n\n\tif( volume_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( cluster_block_size == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid cluster block size.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*cluster_block_size = volume_header->cluster_block_size;\n\n\treturn( 1 );\n}\n\n/* Retrieves the volume size\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_header_get_volume_size(\n     libfsrefs_volume_header_t *volume_header,\n     size64_t *volume_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_volume_header_get_volume_size\";\n\n\tif( volume_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( volume_size == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume size.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*volume_size = volume_header->volume_size;\n\n\treturn( 1 );\n}\n\n/* Retrieves the volume serial number\n * Returns 1 if successful or -1 on error\n */\nint libfsrefs_volume_header_get_volume_serial_number(\n     libfsrefs_volume_header_t *volume_header,\n     uint64_t *volume_serial_number,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"libfsrefs_volume_header_get_volume_serial_number\";\n\n\tif( volume_header == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume header.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( volume_serial_number == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume serial number.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*volume_serial_number = volume_header->volume_serial_number;\n\n\treturn( 1 );\n}\n\n"
  },
  {
    "path": "libfsrefs/libfsrefs_volume_header.h",
    "content": "/*\n * The REFS volume header functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _LIBFSREFS_VOLUME_HEADER_H )\n#define _LIBFSREFS_VOLUME_HEADER_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"libfsrefs_libbfio.h\"\n#include \"libfsrefs_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\ntypedef struct libfsrefs_volume_header libfsrefs_volume_header_t;\n\nstruct libfsrefs_volume_header\n{\n\t/* The number of bytes per sector\n\t */\n\tuint32_t bytes_per_sector;\n\n\t/* The volume size\n\t */\n\tsize64_t volume_size;\n\n\t/* The major format version\n\t */\n\tuint8_t major_format_version;\n\n\t/* The minor format version\n\t */\n\tuint8_t minor_format_version;\n\n\t/* The volume serial number\n\t */\n\tuint64_t volume_serial_number;\n\n\t/* The cluster block size\n\t */\n\tsize32_t cluster_block_size;\n\n\t/* The metadata block size\n\t */\n\tsize32_t metadata_block_size;\n\n\t/* The container size\n\t */\n\tsize64_t container_size;\n};\n\nint libfsrefs_volume_header_initialize(\n     libfsrefs_volume_header_t **volume_header,\n     libcerror_error_t **error );\n\nint libfsrefs_volume_header_free(\n     libfsrefs_volume_header_t **volume_header,\n     libcerror_error_t **error );\n\nint libfsrefs_volume_header_read_data(\n     libfsrefs_volume_header_t *volume_header,\n     const uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error );\n\nint libfsrefs_volume_header_read_file_io_handle(\n     libfsrefs_volume_header_t *volume_header,\n     libbfio_handle_t *file_io_handle,\n     off64_t file_offset,\n     libcerror_error_t **error );\n\nint libfsrefs_volume_header_get_bytes_per_sector(\n     libfsrefs_volume_header_t *volume_header,\n     uint16_t *bytes_per_sector,\n     libcerror_error_t **error );\n\nint libfsrefs_volume_header_get_cluster_block_size(\n     libfsrefs_volume_header_t *volume_header,\n     size32_t *cluster_block_size,\n     libcerror_error_t **error );\n\nint libfsrefs_volume_header_get_volume_size(\n     libfsrefs_volume_header_t *volume_header,\n     size64_t *volume_size,\n     libcerror_error_t **error );\n\nint libfsrefs_volume_header_get_volume_serial_number(\n     libfsrefs_volume_header_t *volume_header,\n     uint64_t *volume_serial_number,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _LIBFSREFS_VOLUME_HEADER_H ) */\n\n"
  },
  {
    "path": "libfsrefs.ini",
    "content": "[project]\ndescription: \"libfsrefs is a library to access the Resilient File System (ReFS).\"\nname: \"libfsrefs\"\nstatus: \"experimental\"\nyear_of_creation: \"2012\"\ndocumentation_url: \"https://github.com/libyal/libfsrefs/tree/main/documentation\"\nfeatures: [\"debug_output\", \"ossfuzz\", \"tools\"]\n\n[library]\ndescription: \"Library to access the Resiliant File System (ReFS) format\"\nfeatures: [\"pthread\", \"wide_character_type\"]\npublic_types: [\"file_entry\", \"volume\"]\n\n[tools]\ndescription: \"Several tools for reading Resiliant File System (ReFS) volumes\"\nnames: [\"fsrefsinfo\"]\n\n[info_tool]\nsource_description: \"a Resiliant File System (ReFS) volume\"\nsource_type: \"volume\"\n\n[tests]\nprofiles: [\"libfsrefs\", \"fsrefsinfo\"]\noption_sets: [\"offset\"]\ninfo_tool_option_sets: [\"offset\"]\ninfo_tool_options_per_profile: [\"\"]\ninfo_tool_profiles: [\"fsrefsinfo\"]\n\n"
  },
  {
    "path": "libfsrefs.pc.in",
    "content": "prefix=@prefix@\nexec_prefix=@exec_prefix@\nlibdir=@libdir@\nincludedir=@includedir@\n\nName: libfsrefs\nDescription: Library to access the Resiliant File System (ReFS) format\nVersion: @VERSION@\nLibs: -L${libdir} -lfsrefs\nLibs.private: @ax_libbfio_pc_libs_private@ @ax_libcdata_pc_libs_private@ @ax_libcerror_pc_libs_private@ @ax_libcfile_pc_libs_private@ @ax_libclocale_pc_libs_private@ @ax_libcnotify_pc_libs_private@ @ax_libcpath_pc_libs_private@ @ax_libcsplit_pc_libs_private@ @ax_libcthreads_pc_libs_private@ @ax_libfcache_pc_libs_private@ @ax_libfdata_pc_libs_private@ @ax_libfdatetime_pc_libs_private@ @ax_libfguid_pc_libs_private@ @ax_libfwnt_pc_libs_private@ @ax_libuna_pc_libs_private@ @ax_pthread_pc_libs_private@\nCflags: -I${includedir}\n\n"
  },
  {
    "path": "libfsrefs.spec.in",
    "content": "Name: libfsrefs\nVersion: @VERSION@\nRelease: 1\nSummary: Library to access the Resiliant File System (ReFS) format\nGroup: System Environment/Libraries\nLicense: LGPL-3.0-or-later\nSource: %{name}-%{version}.tar.gz\nURL: https://github.com/libyal/libfsrefs\n@libfsrefs_spec_requires@ @ax_libbfio_spec_requires@ @ax_libcdata_spec_requires@ @ax_libcerror_spec_requires@ @ax_libcfile_spec_requires@ @ax_libclocale_spec_requires@ @ax_libcnotify_spec_requires@ @ax_libcpath_spec_requires@ @ax_libcsplit_spec_requires@ @ax_libcthreads_spec_requires@ @ax_libfcache_spec_requires@ @ax_libfdata_spec_requires@ @ax_libfdatetime_spec_requires@ @ax_libfguid_spec_requires@ @ax_libfwnt_spec_requires@ @ax_libuna_spec_requires@\nBuildRequires: gcc @ax_libbfio_spec_build_requires@ @ax_libcdata_spec_build_requires@ @ax_libcerror_spec_build_requires@ @ax_libcfile_spec_build_requires@ @ax_libclocale_spec_build_requires@ @ax_libcnotify_spec_build_requires@ @ax_libcpath_spec_build_requires@ @ax_libcsplit_spec_build_requires@ @ax_libcthreads_spec_build_requires@ @ax_libfcache_spec_build_requires@ @ax_libfdata_spec_build_requires@ @ax_libfdatetime_spec_build_requires@ @ax_libfguid_spec_build_requires@ @ax_libfwnt_spec_build_requires@ @ax_libuna_spec_build_requires@\n\n%description -n libfsrefs\nLibrary to access the Resiliant File System (ReFS) format\n\n%package -n libfsrefs-static\nSummary: Library to access the Resiliant File System (ReFS) format\nGroup: Development/Libraries\nRequires: libfsrefs = %{version}-%{release}\n\n%description -n libfsrefs-static\nStatic library version of libfsrefs.\n\n%package -n libfsrefs-devel\nSummary: Header files and libraries for developing applications for libfsrefs\nGroup: Development/Libraries\nRequires: libfsrefs = %{version}-%{release}\n\n%description -n libfsrefs-devel\nHeader files and libraries for developing applications for libfsrefs.\n\n%package -n libfsrefs-tools\nSummary: Several tools for reading Resiliant File System (ReFS) volumes\nGroup: Applications/System\nRequires: libfsrefs = %{version}-%{release} @ax_libfusn_spec_requires@\n@libfsrefs_spec_tools_build_requires@ @ax_libfusn_spec_build_requires@\n\n%description -n libfsrefs-tools\nSeveral tools for reading Resiliant File System (ReFS) volumes\n\n%prep\n%setup -q\n\n%build\n%configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir}\nmake %{?_smp_mflags}\n\n%install\nrm -rf %{buildroot}\n%make_install\n\n%clean\nrm -rf %{buildroot}\n\n%post -p /sbin/ldconfig\n\n%postun -p /sbin/ldconfig\n\n%files -n libfsrefs\n%license COPYING COPYING.LESSER\n%doc AUTHORS README\n%{_libdir}/*.so.*\n\n%files -n libfsrefs-static\n%license COPYING COPYING.LESSER\n%doc AUTHORS README\n%{_libdir}/*.a\n\n%files -n libfsrefs-devel\n%license COPYING COPYING.LESSER\n%doc AUTHORS README\n%{_libdir}/*.so\n%{_libdir}/pkgconfig/libfsrefs.pc\n%{_includedir}/*\n%{_mandir}/man3/*\n\n%files -n libfsrefs-tools\n%license COPYING COPYING.LESSER\n%doc AUTHORS README\n%{_bindir}/*\n%{_mandir}/man1/*\n\n%changelog\n* @SPEC_DATE@ Joachim Metz <joachim.metz@gmail.com> @VERSION@-1\n- Auto-generated\n\n"
  },
  {
    "path": "m4/common.m4",
    "content": "dnl Checks for common headers and functions\ndnl\ndnl Version: 20241013\n\ndnl Function to test if a certain feature was disabled\nAC_DEFUN([AX_COMMON_ARG_DISABLE],\n  [AC_ARG_ENABLE(\n    [$1],\n    [AS_HELP_STRING(\n      [--disable-$1],\n      [$3])],\n    [ac_cv_enable_$2=$enableval],\n    [ac_cv_enable_$2=\"yes\"])dnl\n\n    AC_CACHE_CHECK(\n      [whether to disable $3],\n      [ac_cv_enable_$2],\n      [ac_cv_enable_$2=\"yes\"])dnl\n  ])\n\ndnl Function to test if a certain feature was enabled\nAC_DEFUN([AX_COMMON_ARG_ENABLE],\n  [AC_ARG_ENABLE(\n    [$1],\n    [AS_HELP_STRING(\n      [--enable-$1],\n      [$3 @<:@default=$4@:>@])],\n    [ac_cv_enable_$2=$enableval],\n    [ac_cv_enable_$2=$4])dnl\n\n    AC_CACHE_CHECK(\n      [whether to enable $3],\n      [ac_cv_enable_$2],\n      [ac_cv_enable_$2=$4])dnl\n  ])\n\ndnl Function to test if the location of a certain feature was provided\nAC_DEFUN([AX_COMMON_ARG_WITH],\n  [AC_ARG_WITH(\n    [$1],\n    [AS_HELP_STRING(\n      [--with-$1[[=$5]]],\n      [$3 @<:@default=$4@:>@])],\n    [ac_cv_with_$2=$withval],\n    [ac_cv_with_$2=$4])dnl\n\n    AC_CACHE_CHECK(\n      [whether to use $3],\n      [ac_cv_with_$2],\n      [ac_cv_with_$2=$4])dnl\n  ])\n\ndnl Function to detect whether shared library support should be disabled\nAC_DEFUN([AX_COMMON_CHECK_DISABLE_SHARED_LIBS],\n  [AX_COMMON_ARG_DISABLE(\n    [shared-libs],\n    [shared_libs],\n    [disable shared library support])\n  ])\n\ndnl Function to detect whether debug output should be enabled\nAC_DEFUN([AX_COMMON_CHECK_ENABLE_DEBUG_OUTPUT],\n  [AX_COMMON_ARG_ENABLE(\n    [debug-output],\n    [debug_output],\n    [enable debug output],\n    [no])\n\n  AS_IF(\n    [test \"x$ac_cv_enable_debug_output\" != xno ],\n    [AC_DEFINE(\n      [HAVE_DEBUG_OUTPUT],\n      [1],\n      [Define to 1 if debug output should be used.])\n\n    ac_cv_enable_debug_output=yes])\n  ])\n\ndnl Function to detect whether static executables support should be enabled\nAC_DEFUN([AX_COMMON_CHECK_ENABLE_STATIC_EXECUTABLES],\n  [AX_COMMON_ARG_ENABLE(\n    [static-executables],\n    [static_executables],\n    [build static executables (binaries)],\n    [no])\n\n  AS_IF(\n    [test \"x$ac_cv_enable_static_executables\" != xno],\n    [STATIC_LDFLAGS=\"-all-static\";\n\n    AC_SUBST(\n      [STATIC_LDFLAGS])\n\n    ac_cv_enable_static_executables=yes\n    enable_shared=no])\n  ])\n\ndnl Function to detect whether verbose output should be enabled\nAC_DEFUN([AX_COMMON_CHECK_ENABLE_VERBOSE_OUTPUT],\n  [AX_COMMON_ARG_ENABLE(\n    [verbose-output],\n    [verbose_output],\n    [enable verbose output],\n    [no])\n\n  AS_IF(\n    [test \"x$ac_cv_enable_verbose_output\" != xno ],\n    [AC_DEFINE(\n      [HAVE_VERBOSE_OUTPUT],\n      [1],\n      [Define to 1 if verbose output should be used.])\n\n    ac_cv_enable_verbose_output=yes])\n  ])\n\ndnl Function to detect whether wide character type support should be enabled\nAC_DEFUN([AX_COMMON_CHECK_ENABLE_WIDE_CHARACTER_TYPE],\n  [AX_COMMON_ARG_ENABLE(\n    [wide-character-type],\n    [wide_character_type],\n    [enable wide character type support],\n    [no])\n  ])\n\ndnl Function to detect whether WINAPI support should be enabled\nAC_DEFUN([AX_COMMON_CHECK_ENABLE_WINAPI],\n  [AX_COMMON_ARG_ENABLE(\n    [winapi],\n    [winapi],\n    [enable WINAPI support for cross-compilation],\n    [auto-detect])\n\n  AS_IF(\n    [test \"x$ac_cv_enable_winapi\" = xauto-detect],\n    [ac_common_check_winapi_target_string=\"$target\"\n\n    AS_IF(\n      [test \"x$ac_common_check_winapi_target_string\" = x],\n      [ac_common_check_winapi_target_string=\"$host\"])\n\n    AS_CASE(\n      [$ac_common_check_winapi_target_string],\n      [*mingw*],[AC_MSG_NOTICE(\n        [detected MinGW enabling WINAPI support for cross-compilation])\n        ac_cv_enable_winapi=yes],\n      [*msys*],[AC_MSG_NOTICE(\n        [detected MSYS enabling WINAPI support for cross-compilation])\n        ac_cv_enable_winapi=yes],\n      [*],[ac_cv_enable_winapi=no])\n    ])\n  ])\n\ndnl Function to detect whether printf conversion specifier \"%jd\" is available\nAC_DEFUN([AX_COMMON_CHECK_FUNC_PRINTF_JD],\n  [AC_MSG_CHECKING(\n    [whether printf supports the conversion specifier \"%jd\"])\n\n  SAVE_CFLAGS=\"$CFLAGS\"\n  CFLAGS=\"$CFLAGS -Wall -Werror\"\n  AC_LANG_PUSH(C)\n\n  dnl First try to see if compilation and linkage without a parameter succeeds\n  AC_LINK_IFELSE(\n    [AC_LANG_PROGRAM(\n      [[#include <stdio.h>]],\n      [[printf( \"%jd\" ); ]] )],\n    [ac_cv_cv_have_printf_jd=no],\n    [ac_cv_cv_have_printf_jd=yes])\n\n  dnl Second try to see if compilation and linkage with a parameter succeeds\n  AS_IF(\n    [test \"x$ac_cv_cv_have_printf_jd\" = xyes],\n    [AC_LINK_IFELSE(\n      [AC_LANG_PROGRAM(\n        [[#include <sys/types.h>\n#include <stdio.h>]],\n        [[printf( \"%jd\", (off_t) 10 ); ]] )],\n      [ac_cv_cv_have_printf_jd=yes],\n      [ac_cv_cv_have_printf_jd=no])\n    ])\n\n  dnl Third try to see if the program runs correctly\n  AS_IF(\n    [test \"x$ac_cv_cv_have_printf_jd\" = xyes],\n    [AC_RUN_IFELSE(\n      [AC_LANG_PROGRAM(\n        [[#include <sys/types.h>\n#include <stdio.h>]],\n        [[char string[ 3 ];\nif( snprintf( string, 3, \"%jd\", (off_t) 10 ) < 0 ) return( 1 );\nif( ( string[ 0 ] != '1' ) || ( string[ 1 ] != '0' ) ) return( 1 ); ]] )],\n      [ac_cv_cv_have_printf_jd=yes],\n      [ac_cv_cv_have_printf_jd=no],\n      [ac_cv_cv_have_printf_jd=undetermined])\n    ])\n\n  AC_LANG_POP(C)\n  CFLAGS=\"$SAVE_CFLAGS\"\n\n  AS_IF(\n    [test \"x$ac_cv_cv_have_printf_jd\" = xyes],\n    [AC_MSG_RESULT(\n      [yes])\n    AC_DEFINE(\n      [HAVE_PRINTF_JD],\n      [1],\n      [Define to 1 whether printf supports the conversion specifier \"%jd\".]) ],\n    [AC_MSG_RESULT(\n      [$ac_cv_cv_have_printf_jd])\n    ])\n  ])\n\ndnl Function to detect whether printf conversion specifier \"%zd\" is available\nAC_DEFUN([AX_COMMON_CHECK_FUNC_PRINTF_ZD],\n  [AC_MSG_CHECKING(\n    [whether printf supports the conversion specifier \"%zd\"])\n\n  SAVE_CFLAGS=\"$CFLAGS\"\n  CFLAGS=\"$CFLAGS -Wall -Werror\"\n  AC_LANG_PUSH(C)\n\n  dnl First try to see if compilation and linkage without a parameter succeeds\n  AC_LINK_IFELSE(\n    [AC_LANG_PROGRAM(\n      [[#include <stdio.h>]],\n      [[printf( \"%zd\" ); ]] )],\n    [ac_cv_cv_have_printf_zd=no],\n    [ac_cv_cv_have_printf_zd=yes])\n\n  dnl Second try to see if compilation and linkage with a parameter succeeds\n  AS_IF(\n    [test \"x$ac_cv_cv_have_printf_zd\" = xyes],\n    [AC_LINK_IFELSE(\n      [AC_LANG_PROGRAM(\n        [[#include <sys/types.h>\n#include <stdio.h>]],\n        [[printf( \"%zd\", (size_t) 10 ); ]] )],\n      [ac_cv_cv_have_printf_zd=yes],\n      [ac_cv_cv_have_printf_zd=no])\n    ])\n\n  dnl Third try to see if the program runs correctly\n  AS_IF(\n    [test \"x$ac_cv_cv_have_printf_zd\" = xyes],\n    [AC_RUN_IFELSE(\n      [AC_LANG_PROGRAM(\n        [[#include <sys/types.h>\n#include <stdio.h>]],\n        [[char string[ 3 ];\nif( snprintf( string, 3, \"%zd\", (size_t) 10 ) < 0 ) return( 1 );\nif( ( string[ 0 ] != '1' ) || ( string[ 1 ] != '0' ) ) return( 1 ); ]] )],\n      [ac_cv_cv_have_printf_zd=yes],\n      [ac_cv_cv_have_printf_zd=no],\n      [ac_cv_cv_have_printf_zd=undetermined])\n    ])\n\n  AC_LANG_POP(C)\n  CFLAGS=\"$SAVE_CFLAGS\"\n\n  AS_IF(\n    [test \"x$ac_cv_cv_have_printf_zd\" = xyes],\n    [AC_MSG_RESULT(\n      [yes])\n    AC_DEFINE(\n      [HAVE_PRINTF_ZD],\n      [1],\n      [Define to 1 whether printf supports the conversion specifier \"%zd\".]) ],\n    [AC_MSG_RESULT(\n      [$ac_cv_cv_have_printf_zd])\n    ])\n  ])\n\ndnl Function to detect if common dependencies are available\nAC_DEFUN([AX_COMMON_CHECK_LOCAL],\n  [dnl Headers included in common/common.h\n  AS_IF(\n    [test \"x$ac_cv_enable_winapi\" = xyes],\n    [AC_CHECK_HEADERS([windows.h])\n\n    AS_IF(\n      [test \"x$ac_cv_header_windows_h\" = xno],\n      [AC_MSG_FAILURE(\n        [Missing header: windows.h header is required to compile with winapi support],\n        [1])\n      ])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_enable_winapi\" = xno],\n    [AC_CHECK_HEADERS([libintl.h])\n    ])\n\n  dnl Headers included in common/types.h\n  AC_CHECK_HEADERS([limits.h])\n\n  dnl Headers included in common/memory.h and common/narrow_string.h\n  AC_CHECK_HEADERS([stdlib.h string.h])\n\n  dnl Headers included in common/wide_string.h\n  AC_CHECK_HEADERS([wchar.h wctype.h])\n\n  dnl File stream functions used in common/file_stream.h\n  AC_CHECK_FUNCS([fclose feof fgets fopen fread fseeko fseeko64 fwrite vfprintf])\n\n  AS_IF(\n    [test \"x$ac_cv_func_fclose\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: fclose],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_feof\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: feof],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_fgets\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: fgets],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_fopen\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: fopen],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_fread\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: fread],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_fseeko\" != xyes && test \"x$ac_cv_func_fseeko64\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: fseeko and fseeko64],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_fwrite\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: fwrite],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_vfprintf\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: vfprintf],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_enable_wide_character_type\" != xno],\n    [AC_CHECK_FUNCS([fgetws])\n\n    AS_IF(\n      [test \"x$ac_cv_func_fgetws\" != xyes],\n      [AC_MSG_FAILURE(\n        [Missing function: fgetws],\n        [1])\n      ])\n    ])\n\n  dnl Memory functions used in common/memory.h\n  AC_CHECK_FUNCS([free malloc memcmp memcpy memset realloc])\n\n  AS_IF(\n    [test \"x$ac_cv_func_free\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: free],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_malloc\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: malloc],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_memcmp\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: memcmp],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_memcpy\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: memcpy],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_memset\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: memset],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_realloc\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: realloc],\n      [1])\n    ])\n\n  dnl Narrow character string functions used in common/narrow_string.h\n  AC_CHECK_FUNCS([memchr memrchr snprintf sscanf strcasecmp strchr strlen strncasecmp strncmp strncpy strnicmp strrchr strstr vsnprintf])\n\n  AS_IF(\n    [test \"x$ac_cv_func_memchr\" != xyes && test \"x$ac_cv_func_strchr\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing functions: memchr and strchr],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_memcmp\" != xyes && test \"x$ac_cv_func_strncmp\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing functions: memcmp and strncmp],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_memcpy\" != xyes && test \"x$ac_cv_func_strncpy\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing functions: memcpy and strncpy],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_memrchr\" = xyes],\n    [AC_CHECK_DECLS([memrchr])\n\n    AS_IF(\n      [test \"x$ac_cv_decl_memrchr\" != xyes],\n      [ac_cv_func_memrchr=no])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_memrchr\" != xyes && test \"x$ac_cv_func_strrchr\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing functions: strrchr and memrchr],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_snprintf\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: snprintf],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_sscanf\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: sscanf],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_strlen\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: strlen],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_strcasecmp\" != xyes && test \"x$ac_cv_func_strncasecmp\" != xyes && test \"x$ac_cv_func_strnicmp\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing functions: strncasecmp, strcasecmp and strnicmp],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_strstr\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: strstr],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_vsnprintf\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: vsnprintf],\n      [1])\n    ])\n\n  dnl Wide character string functions used in common/wide_string.h\n  AS_IF(\n    [test \"x$ac_cv_enable_wide_character_type\" != xno],\n    [AC_CHECK_FUNCS([swprintf towlower wcscasecmp wcschr wcslen wcsncasecmp wcsncmp wcsncpy wcsnicmp wcsrchr wcsstr wmemchr wmemcmp wmemcpy wmemrchr])\n\n    AS_IF(\n      [test \"x$ac_cv_func_swprintf\" != xyes],\n      [AC_MSG_FAILURE(\n        [Missing function: swprintf],\n        [1])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_func_wmemchr\" != xyes && test \"x$ac_cv_func_wcschr\" != xyes],\n      [AC_MSG_FAILURE(\n        [Missing functions: wmemchr and wcschr],\n        [1])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_func_wmemcmp\" != xyes && test \"x$ac_cv_func_wcsncmp\" != xyes],\n      [AC_MSG_FAILURE(\n        [Missing functions: wmemcmp and wcsncmp],\n        [1])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_func_wmemcpy\" != xyes && test \"x$ac_cv_func_wcsncpy\" != xyes],\n      [AC_MSG_FAILURE(\n        [Missing functions: wmemcpy and wcsncpy],\n        [1])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_func_wmemrchr\" != xyes && test \"x$ac_cv_func_wcsrchr\" != xyes],\n      [AC_MSG_FAILURE(\n        [Missing functions: wmemrchr and wcsrchr],\n        [1])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_func_wcslen\" != xyes],\n      [AC_MSG_FAILURE(\n        [Missing function: wcslen],\n        [1])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_func_wcsncasecmp\" != xyes && test \"x$ac_cv_func_wcscasecmp\" != xyes && test \"x$ac_cv_func_wcsnicmp\" != xyes && test \"x$ac_cv_func_towlower\" != xyes],\n      [AC_MSG_FAILURE(\n        [Missing functions: wcsncasecmp, wcscasecmp, wcsnicmp and towlower],\n        [1])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_func_wcsstr\" != xyes],\n      [AC_MSG_FAILURE(\n        [Missing function: wcsstr],\n        [1])\n      ])\n    ])\n\n  dnl Check for printf conversion specifier support\n  AX_COMMON_CHECK_FUNC_PRINTF_JD\n  AX_COMMON_CHECK_FUNC_PRINTF_ZD\n  ])\n\ndnl Function to test if a library with a specific definition is available\nAC_DEFUN([AX_CHECK_LIB_DEFINITION],\n  [AC_CACHE_CHECK(\n    [if `$2' is defined],\n    [ac_cv_$1_definition_$2],\n    [AC_LANG_PUSH(C)\n    AC_LINK_IFELSE(\n      [AC_LANG_PROGRAM(\n        [[#include <$1.h>]],\n        [[int test = $2;\n\nreturn( 0 ); ]]\n      )],\n      [ac_cv_$1_definition_$2=yes],\n      [ac_cv_$1_definition_$2=no])\n    AC_LANG_POP(C)])\n\n  AS_IF(\n    [test \"x$ac_cv_$1_definition_$2\" != xyes],\n    [ac_cv_$1=no])\n  ])\n\ndnl Function to test if a library with specific definitions is available\nAC_DEFUN([AX_CHECK_LIB_DEFINITIONS],\n  [m4_foreach(\n    [definition],\n    [$2],\n    [AX_CHECK_LIB_DEFINITION(\n      [$1],\n      [definition])\n    ])\n  ])\n\ndnl Function to test if a library with specific functions is available\nAC_DEFUN([AX_CHECK_LIB_FUNCTIONS],\n  [m4_foreach(\n    [function],\n    [$3],\n    [AC_CHECK_LIB(\n      [$2],\n      [function],\n      [ac_cv_$1_dummy=yes],\n      [ac_cv_$1=no])\n    ])\n  ])\n\ndnl Function to check if an user specified library directory exists\nAC_DEFUN([AX_CHECK_LIB_DIRECTORY_EXISTS],\n  [AS_IF(\n    [test -d \"$ac_cv_with_$1\"],\n    [CFLAGS=\"$CFLAGS -I${ac_cv_with_$1}/include\"\n    LDFLAGS=\"$LDFLAGS -L${ac_cv_with_$1}/lib\"],\n    [AC_MSG_FAILURE(\n      [no such directory: $ac_cv_with_$1],\n      [1])\n    ])\n  ])\n\ndnl Function to warn if no supported library was found in an user specified directory\nAC_DEFUN([AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE],\n  [AS_IF(\n    [test \"x$ac_cv_$1\" != xyes && test \"x$ac_cv_with_$1\" != x && test \"x$ac_cv_with_$1\" != xauto-detect && test \"x$ac_cv_with_$1\" != xyes],\n    [AC_MSG_FAILURE(\n      [unable to find supported $1 in directory: $ac_cv_with_$1],\n      [1])\n    ])\n  ])\n\n"
  },
  {
    "path": "m4/libbfio.m4",
    "content": "dnl Checks for libbfio required headers and functions\ndnl\ndnl Version: 20240518\n\ndnl Function to detect if libbfio is available\ndnl ac_libbfio_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments\nAC_DEFUN([AX_LIBBFIO_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_libbfio\" = xno],\n    [ac_cv_libbfio=no],\n    [ac_cv_libbfio=check\n    dnl Check if the directory provided as parameter exists\n    dnl For both --with-libbfio which returns \"yes\" and --with-libbfio= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_libbfio\" != x && test \"x$ac_cv_with_libbfio\" != xauto-detect && test \"x$ac_cv_with_libbfio\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([libbfio])],\n      [dnl Check for a pkg-config file\n      AS_IF(\n        [test \"x$cross_compiling\" != \"xyes\" && test \"x$PKGCONFIG\" != \"x\"],\n        [PKG_CHECK_MODULES(\n          [libbfio],\n          [libbfio >= 20201125],\n          [ac_cv_libbfio=yes],\n          [ac_cv_libbfio=check])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libbfio\" = xyes && test \"x$ac_cv_enable_wide_character_type\" != xno],\n        [AC_CACHE_CHECK(\n         [whether libbfio/features.h defines LIBBFIO_HAVE_WIDE_CHARACTER_TYPE as 1],\n         [ac_cv_header_libbfio_features_h_have_wide_character_type],\n         [AC_LANG_PUSH(C)\n         AC_COMPILE_IFELSE(\n           [AC_LANG_PROGRAM(\n             [[#include <libbfio/features.h>]],\n             [[#if !defined( LIBBFIO_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBBFIO_HAVE_WIDE_CHARACTER_TYPE != 1 )\n#error LIBBFIO_HAVE_WIDE_CHARACTER_TYPE not defined\n#endif]] )],\n           [ac_cv_header_libbfio_features_h_have_wide_character_type=yes],\n           [ac_cv_header_libbfio_features_h_have_wide_character_type=no])\n         AC_LANG_POP(C)],\n         [ac_cv_header_libbfio_features_h_have_wide_character_type=no])\n\n        AS_IF(\n          [test \"x$ac_cv_header_libbfio_features_h_have_wide_character_type\" = xno],\n          [ac_cv_libbfio=no])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libbfio\" = xyes],\n        [ac_cv_libbfio_CPPFLAGS=\"$pkg_cv_libbfio_CFLAGS\"\n        ac_cv_libbfio_LIBADD=\"$pkg_cv_libbfio_LIBS\"])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_libbfio\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([libbfio.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_libbfio_h\" = xno],\n        [ac_cv_libbfio=no],\n        [ac_cv_libbfio=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [libbfio],\n          [bfio],\n          [[libbfio_get_version],\n           [libbfio_handle_free],\n           [libbfio_handle_open],\n           [libbfio_handle_close],\n           [libbfio_handle_exists],\n           [libbfio_handle_read_buffer],\n           [libbfio_handle_read_buffer_at_offset],\n           [libbfio_handle_write_buffer],\n           [libbfio_handle_write_buffer_at_offset],\n           [libbfio_handle_seek_offset],\n           [libbfio_handle_is_open],\n           [libbfio_handle_get_offset],\n           [libbfio_handle_get_size],\n           [libbfio_handle_set_track_offsets_read],\n           [libbfio_handle_get_number_of_offsets_read],\n           [libbfio_handle_get_offset_read],\n           [libbfio_file_initialize],\n           [libbfio_file_get_name_size],\n           [libbfio_file_get_name],\n           [libbfio_file_set_name],\n           [libbfio_pool_initialize],\n           [libbfio_pool_free],\n           [libbfio_pool_clone],\n           [libbfio_pool_get_number_of_handles],\n           [libbfio_pool_get_handle],\n           [libbfio_pool_set_handle],\n           [libbfio_pool_append_handle],\n           [libbfio_pool_remove_handle],\n           [libbfio_pool_get_maximum_number_of_open_handles],\n           [libbfio_pool_set_maximum_number_of_open_handles],\n           [libbfio_pool_open],\n           [libbfio_pool_reopen],\n           [libbfio_pool_close],\n           [libbfio_pool_close_all],\n           [libbfio_pool_read_buffer],\n           [libbfio_pool_read_buffer_at_offset],\n           [libbfio_pool_write_buffer],\n           [libbfio_pool_write_buffer_at_offset],\n           [libbfio_pool_seek_offset],\n           [libbfio_pool_get_offset],\n           [libbfio_pool_get_size],\n           [libbfio_file_pool_open]])\n\n        AS_IF(\n          [test \"x$ac_cv_enable_wide_character_type\" != xno],\n          [AX_CHECK_LIB_FUNCTIONS(\n            [libbfio],\n            [bfio],\n            [[libbfio_file_get_name_size_wide],\n             [libbfio_file_get_name_wide],\n             [libbfio_file_set_name_wide],\n             [libbfio_file_pool_open_wide]])\n          ])\n\n        ac_cv_libbfio_LIBADD=\"-lbfio\"])\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([libbfio])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libbfio\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LIBBFIO],\n      [1],\n      [Define to 1 if you have the `bfio' library (-lbfio).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libbfio\" = xyes],\n    [AC_SUBST(\n      [HAVE_LIBBFIO],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_LIBBFIO],\n      [0])\n    ])\n  ])\n\ndnl Function to detect if libbfio dependencies are available\nAC_DEFUN([AX_LIBBFIO_CHECK_LOCAL],\n  [dnl No additional checks.\n\n  ac_cv_libbfio_CPPFLAGS=\"-I../libbfio -I\\$(top_srcdir)/libbfio\";\n  ac_cv_libbfio_LIBADD=\"../libbfio/libbfio.la\";\n\n  ac_cv_libbfio=local\n  ])\n\ndnl Function to detect how to enable libbfio\nAC_DEFUN([AX_LIBBFIO_CHECK_ENABLE],\n  [AX_COMMON_ARG_WITH(\n    [libbfio],\n    [libbfio],\n    [search for libbfio in includedir and libdir or in the specified DIR, or no if to use local version],\n    [auto-detect],\n    [DIR])\n\n  dnl Check for a shared library version\n  AX_LIBBFIO_CHECK_LIB\n\n  dnl Check if the dependencies for the local library version\n  AS_IF(\n    [test \"x$ac_cv_libbfio\" != xyes],\n    [AX_LIBBFIO_CHECK_LOCAL\n\n    AC_DEFINE(\n      [HAVE_LOCAL_LIBBFIO],\n      [1],\n      [Define to 1 if the local version of libbfio is used.])\n    AC_SUBST(\n      [HAVE_LOCAL_LIBBFIO],\n      [1])\n    ])\n\n  AM_CONDITIONAL(\n    [HAVE_LOCAL_LIBBFIO],\n    [test \"x$ac_cv_libbfio\" = xlocal])\n  AS_IF(\n    [test \"x$ac_cv_libbfio_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [LIBBFIO_CPPFLAGS],\n      [$ac_cv_libbfio_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_libbfio_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [LIBBFIO_LIBADD],\n      [$ac_cv_libbfio_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libbfio\" = xyes],\n    [AC_SUBST(\n      [ax_libbfio_pc_libs_private],\n      [-lbfio])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libbfio\" = xyes],\n    [AC_SUBST(\n      [ax_libbfio_spec_requires],\n      [libbfio])\n    AC_SUBST(\n      [ax_libbfio_spec_build_requires],\n      [libbfio-devel])\n    ])\n  ])\n\n"
  },
  {
    "path": "m4/libcdata.m4",
    "content": "dnl Checks for libcdata required headers and functions\ndnl\ndnl Version: 20240514\n\ndnl Function to detect if libcdata is available\ndnl ac_libcdata_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments\nAC_DEFUN([AX_LIBCDATA_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_libcdata\" = xno],\n    [ac_cv_libcdata=no],\n    [ac_cv_libcdata=check\n    dnl Check if the directory provided as parameter exists\n    dnl For both --with-libcdata which returns \"yes\" and --with-libcdata= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_libcdata\" != x && test \"x$ac_cv_with_libcdata\" != xauto-detect && test \"x$ac_cv_with_libcdata\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([libcdata])],\n      [dnl Check for a pkg-config file\n      AS_IF(\n        [test \"x$cross_compiling\" != \"xyes\" && test \"x$PKGCONFIG\" != \"x\"],\n        [PKG_CHECK_MODULES(\n          [libcdata],\n          [libcdata >= 20230108],\n          [ac_cv_libcdata=yes],\n          [ac_cv_libcdata=check])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libcdata\" = xyes],\n        [ac_cv_libcdata_CPPFLAGS=\"$pkg_cv_libcdata_CFLAGS\"\n        ac_cv_libcdata_LIBADD=\"$pkg_cv_libcdata_LIBS\"])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_libcdata\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([libcdata.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_libcdata_h\" = xno],\n        [ac_cv_libcdata=no],\n        [ac_cv_libcdata=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [libcdata],\n          [cdata],\n          [[libcdata_get_version],\n           [libcdata_array_initialize],\n           [libcdata_array_free],\n           [libcdata_array_empty],\n           [libcdata_array_clone],\n           [libcdata_array_resize],\n           [libcdata_array_reverse],\n           [libcdata_array_get_number_of_entries],\n           [libcdata_array_get_entry_by_index],\n           [libcdata_array_get_entry_by_value],\n           [libcdata_array_set_entry_by_index],\n           [libcdata_array_prepend_entry],\n           [libcdata_array_append_entry],\n           [libcdata_array_insert_entry],\n           [libcdata_array_remove_entry],\n           [libcdata_btree_initialize],\n           [libcdata_btree_free],\n           [libcdata_btree_get_number_of_values],\n           [libcdata_btree_get_value_by_index],\n           [libcdata_btree_get_value_by_value],\n           [libcdata_btree_insert_value],\n           [libcdata_btree_replace_value],\n           [libcdata_btree_remove_value],\n           [libcdata_list_initialize],\n           [libcdata_list_free],\n           [libcdata_list_empty],\n           [libcdata_list_clone],\n           [libcdata_list_get_number_of_elements],\n           [libcdata_list_get_first_element],\n           [libcdata_list_get_last_element],\n           [libcdata_list_get_element_by_index],\n           [libcdata_list_get_value_by_index],\n           [libcdata_list_prepend_element],\n           [libcdata_list_prepend_value],\n           [libcdata_list_append_element],\n           [libcdata_list_append_value],\n           [libcdata_list_insert_element],\n           [libcdata_list_insert_element_with_existing],\n           [libcdata_list_insert_value],\n           [libcdata_list_insert_value_with_existing],\n           [libcdata_list_remove_element],\n           [libcdata_list_element_initialize],\n           [libcdata_list_element_free],\n           [libcdata_list_element_get_value],\n           [libcdata_list_element_set_value],\n           [libcdata_list_element_get_previous_element],\n           [libcdata_list_element_set_previous_element],\n           [libcdata_list_element_get_next_element],\n           [libcdata_list_element_get_elements],\n           [libcdata_list_element_set_elements],\n           [libcdata_range_list_initialize],\n           [libcdata_range_list_free],\n           [libcdata_range_list_empty],\n           [libcdata_range_list_clone],\n           [libcdata_range_list_get_number_of_elements],\n           [libcdata_range_list_insert_range],\n           [libcdata_range_list_insert_range_list],\n           [libcdata_range_list_remove_range],\n           [libcdata_range_list_get_range_by_index],\n           [libcdata_range_list_get_range_at_offset],\n           [libcdata_range_list_range_is_present],\n           [libcdata_range_list_range_has_overlapping_range],\n           [libcdata_range_list_get_spanning_range],\n           [libcdata_tree_node_initialize],\n           [libcdata_tree_node_free],\n           [libcdata_tree_node_empty],\n           [libcdata_tree_node_clone],\n           [libcdata_tree_node_get_value],\n           [libcdata_tree_node_set_value],\n           [libcdata_tree_node_get_parent_node],\n           [libcdata_tree_node_set_parent_node],\n           [libcdata_tree_node_get_previous_node],\n           [libcdata_tree_node_set_previous_node],\n           [libcdata_tree_node_get_next_node],\n           [libcdata_tree_node_set_next_node],\n           [libcdata_tree_node_get_nodes],\n           [libcdata_tree_node_set_nodes],\n           [libcdata_tree_node_append_node],\n           [libcdata_tree_node_append_value],\n           [libcdata_tree_node_insert_node],\n           [libcdata_tree_node_insert_value],\n           [libcdata_tree_node_replace_node],\n           [libcdata_tree_node_remove_node],\n           [libcdata_tree_node_get_number_of_sub_nodes],\n           [libcdata_tree_node_get_sub_node_by_index],\n           [libcdata_tree_node_get_leaf_node_list]])\n\n        ac_cv_libcdata_LIBADD=\"-lcdata\"])\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([libcdata])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcdata\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LIBCDATA],\n      [1],\n      [Define to 1 if you have the `cdata' library (-lcdata).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcdata\" = xyes],\n    [AC_SUBST(\n      [HAVE_LIBCDATA],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_LIBCDATA],\n      [0])\n    ])\n  ])\n\ndnl Function to detect if libcdata dependencies are available\nAC_DEFUN([AX_LIBCDATA_CHECK_LOCAL],\n  [dnl No additional checks.\n\n  ac_cv_libcdata_CPPFLAGS=\"-I../libcdata -I\\$(top_srcdir)/libcdata\";\n  ac_cv_libcdata_LIBADD=\"../libcdata/libcdata.la\";\n\n  ac_cv_libcdata=local\n  ])\n\ndnl Function to detect how to enable libcdata\nAC_DEFUN([AX_LIBCDATA_CHECK_ENABLE],\n  [AX_COMMON_ARG_WITH(\n    [libcdata],\n    [libcdata],\n    [search for libcdata in includedir and libdir or in the specified DIR, or no if to use local version],\n    [auto-detect],\n    [DIR])\n\n  dnl Check for a shared library version\n  AX_LIBCDATA_CHECK_LIB\n\n  dnl Check if the dependencies for the local library version\n  AS_IF(\n    [test \"x$ac_cv_libcdata\" != xyes],\n    [AX_LIBCDATA_CHECK_LOCAL\n\n    AC_DEFINE(\n      [HAVE_LOCAL_LIBCDATA],\n      [1],\n      [Define to 1 if the local version of libcdata is used.])\n    AC_SUBST(\n      [HAVE_LOCAL_LIBCDATA],\n      [1])\n    ])\n\n  AM_CONDITIONAL(\n    [HAVE_LOCAL_LIBCDATA],\n    [test \"x$ac_cv_libcdata\" = xlocal])\n  AS_IF(\n    [test \"x$ac_cv_libcdata_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [LIBCDATA_CPPFLAGS],\n      [$ac_cv_libcdata_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_libcdata_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [LIBCDATA_LIBADD],\n      [$ac_cv_libcdata_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcdata\" = xyes],\n    [AC_SUBST(\n      [ax_libcdata_pc_libs_private],\n      [-lcdata])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcdata\" = xyes],\n    [AC_SUBST(\n      [ax_libcdata_spec_requires],\n      [libcdata])\n    AC_SUBST(\n      [ax_libcdata_spec_build_requires],\n      [libcdata-devel])\n    ])\n  ])\n\n"
  },
  {
    "path": "m4/libcerror.m4",
    "content": "dnl Checks for libcerror required headers and functions\ndnl\ndnl Version: 20240513\n\ndnl Function to detect if libcerror is available\ndnl ac_libcerror_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments\nAC_DEFUN([AX_LIBCERROR_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_libcerror\" = xno],\n    [ac_cv_libcerror=no],\n    [ac_cv_libcerror=check\n    dnl Check if the directory provided as parameter exists\n    dnl For both --with-libcerror which returns \"yes\" and --with-libcerror= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_libcerror\" != x && test \"x$ac_cv_with_libcerror\" != xauto-detect && test \"x$ac_cv_with_libcerror\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([libcerror])],\n      [dnl Check for a pkg-config file\n      AS_IF(\n        [test \"x$cross_compiling\" != \"xyes\" && test \"x$PKGCONFIG\" != \"x\"],\n        [PKG_CHECK_MODULES(\n          [libcerror],\n          [libcerror >= 20120425],\n          [ac_cv_libcerror=yes],\n          [ac_cv_libcerror=check])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libcerror\" = xyes],\n        [ac_cv_libcerror_CPPFLAGS=\"$pkg_cv_libcerror_CFLAGS\"\n        ac_cv_libcerror_LIBADD=\"$pkg_cv_libcerror_LIBS\"])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_libcerror\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([libcerror.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_libcerror_h\" = xno],\n        [ac_cv_libcerror=no],\n        [ac_cv_libcerror=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [libcerror],\n          [cerror],\n          [[libcerror_get_version],\n           [libcerror_error_free],\n           [libcerror_error_set],\n           [libcerror_error_matches],\n           [libcerror_error_fprint],\n           [libcerror_error_sprint],\n           [libcerror_error_backtrace_fprint],\n           [libcerror_error_backtrace_sprint],\n           [libcerror_system_set_error]])\n\n        ac_cv_libcerror_LIBADD=\"-lcerror\"])\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([libcerror])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcerror\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LIBCERROR],\n      [1],\n      [Define to 1 if you have the `cerror' library (-lcerror).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcerror\" = xyes],\n    [AC_SUBST(\n      [HAVE_LIBCERROR],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_LIBCERROR],\n      [0])\n    ])\n  ])\n\ndnl Function to detect if libcerror dependencies are available\nAC_DEFUN([AX_LIBCERROR_CHECK_LOCAL],\n  [dnl Headers included in libcerror/libcerror_error.c\n  AC_CHECK_HEADERS([stdarg.h varargs.h])\n\n  AS_IF(\n    [test \"x$ac_cv_header_stdarg_h\" != xyes && test \"x$ac_cv_header_varargs_h\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing headers: stdarg.h and varargs.h],\n      [1])\n    ])\n\n  dnl Wide character string functions used in libcerror/libcerror_error.c\n  AS_IF(\n    [test \"x$ac_cv_enable_wide_character_type\" != xno],\n    [AC_CHECK_FUNCS([wcstombs])\n\n    AS_IF(\n      [test \"x$ac_cv_func_wcstombs\" != xyes],\n      [AC_MSG_FAILURE(\n        [Missing function: wcstombs],\n        [1])\n      ])\n    ])\n\n  dnl Check for error string functions used in libcerror/libcerror_system.c\n  AC_FUNC_STRERROR_R()\n\n  AS_IF(\n    [test \"x$ac_cv_have_decl_strerror_r\" != xyes],\n    [AC_CHECK_FUNCS([strerror])\n\n    AS_IF(\n      [test \"x$ac_cv_func_strerror\" != xyes],\n      [AC_MSG_FAILURE(\n        [Missing functions: strerror_r and strerror],\n        [1])\n      ])\n    ])\n\n  ac_cv_libcerror_CPPFLAGS=\"-I../libcerror -I\\$(top_srcdir)/libcerror\";\n  ac_cv_libcerror_LIBADD=\"../libcerror/libcerror.la\";\n\n  ac_cv_libcerror=local\n  ])\n\ndnl Function to detect how to enable libcerror\nAC_DEFUN([AX_LIBCERROR_CHECK_ENABLE],\n  [AX_COMMON_ARG_WITH(\n    [libcerror],\n    [libcerror],\n    [search for libcerror in includedir and libdir or in the specified DIR, or no if to use local version],\n    [auto-detect],\n    [DIR])\n\n  dnl Check for a shared library version\n  AX_LIBCERROR_CHECK_LIB\n\n  dnl Check if the dependencies for the local library version\n  AS_IF(\n    [test \"x$ac_cv_libcerror\" != xyes],\n    [AX_LIBCERROR_CHECK_LOCAL\n\n    AC_DEFINE(\n      [HAVE_LOCAL_LIBCERROR],\n      [1],\n      [Define to 1 if the local version of libcerror is used.])\n    AC_SUBST(\n      [HAVE_LOCAL_LIBCERROR],\n      [1])\n    ])\n\n  AM_CONDITIONAL(\n    [HAVE_LOCAL_LIBCERROR],\n    [test \"x$ac_cv_libcerror\" = xlocal])\n  AS_IF(\n    [test \"x$ac_cv_libcerror_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [LIBCERROR_CPPFLAGS],\n      [$ac_cv_libcerror_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_libcerror_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [LIBCERROR_LIBADD],\n      [$ac_cv_libcerror_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcerror\" = xyes],\n    [AC_SUBST(\n      [ax_libcerror_pc_libs_private],\n      [-lcerror])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcerror\" = xyes],\n    [AC_SUBST(\n      [ax_libcerror_spec_requires],\n      [libcerror])\n    AC_SUBST(\n      [ax_libcerror_spec_build_requires],\n      [libcerror-devel])\n    ])\n  ])\n\n"
  },
  {
    "path": "m4/libcfile.m4",
    "content": "dnl Checks for libcfile required headers and functions\ndnl\ndnl Version: 20240514\n\ndnl Function to detect if libcfile is available\ndnl ac_libcfile_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments\nAC_DEFUN([AX_LIBCFILE_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_libcfile\" = xno],\n    [ac_cv_libcfile=no],\n    [ac_cv_libcfile=check\n    dnl Check if the directory provided as parameter exists\n    dnl For both --with-libcfile which returns \"yes\" and --with-libcfile= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_libcfile\" != x && test \"x$ac_cv_with_libcfile\" != xauto-detect && test \"x$ac_cv_with_libcfile\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([libcfile])],\n      [dnl Check for a pkg-config file\n      AS_IF(\n        [test \"x$cross_compiling\" != \"xyes\" && test \"x$PKGCONFIG\" != \"x\"],\n        [PKG_CHECK_MODULES(\n          [libcfile],\n          [libcfile >= 20160409],\n          [ac_cv_libcfile=yes],\n          [ac_cv_libcfile=check])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libcfile\" = xyes && test \"x$ac_cv_enable_wide_character_type\" != xno],\n        [AC_CACHE_CHECK(\n         [whether libcfile/features.h defines LIBCFILE_HAVE_WIDE_CHARACTER_TYPE as 1],\n         [ac_cv_header_libcfile_features_h_have_wide_character_type],\n         [AC_LANG_PUSH(C)\n         AC_COMPILE_IFELSE(\n           [AC_LANG_PROGRAM(\n             [[#include <libcfile/features.h>]],\n             [[#if !defined( LIBCFILE_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCFILE_HAVE_WIDE_CHARACTER_TYPE != 1 )\n#error LIBCFILE_HAVE_WIDE_CHARACTER_TYPE not defined\n#endif]] )],\n           [ac_cv_header_libcfile_features_h_have_wide_character_type=yes],\n           [ac_cv_header_libcfile_features_h_have_wide_character_type=no])\n         AC_LANG_POP(C)],\n         [ac_cv_header_libcfile_features_h_have_wide_character_type=no])\n\n        AS_IF(\n          [test \"x$ac_cv_header_libcfile_features_h_have_wide_character_type\" = xno],\n          [ac_cv_libcfile=no])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libcfile\" = xyes],\n        [ac_cv_libcfile_CPPFLAGS=\"$pkg_cv_libcfile_CFLAGS\"\n        ac_cv_libcfile_LIBADD=\"$pkg_cv_libcfile_LIBS\"])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_libcfile\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([libcfile.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_libcfile_h\" = xno],\n        [ac_cv_libcfile=no],\n        [ac_cv_libcfile=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [libcfile],\n          [cfile],\n          [[libcfile_get_version],\n           [libcfile_file_initialize],\n           [libcfile_file_free],\n           [libcfile_file_open],\n           [libcfile_file_open_with_error_code],\n           [libcfile_file_close],\n           [libcfile_file_read_buffer],\n           [libcfile_file_read_buffer_with_error_code],\n           [libcfile_file_write_buffer],\n           [libcfile_file_write_buffer_with_error_code],\n           [libcfile_file_seek_offset],\n           [libcfile_file_resize],\n           [libcfile_file_is_open],\n           [libcfile_file_get_offset],\n           [libcfile_file_get_size],\n           [libcfile_file_is_device],\n           [libcfile_file_io_control_read],\n           [libcfile_file_io_control_read_with_error_code],\n           [libcfile_file_exists],\n           [libcfile_file_remove]])\n\n        AS_IF(\n          [test \"x$ac_cv_enable_wide_character_type\" != xno],\n          [AX_CHECK_LIB_FUNCTIONS(\n            [libcfile],\n            [cfile],\n            [[libcfile_file_open_wide],\n             [libcfile_file_open_wide_with_error_code],\n             [libcfile_file_exists_wide],\n             [libcfile_file_remove_wide]])\n          ])\n\n        ac_cv_libcfile_LIBADD=\"-lcfile\"])\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([libcfile])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcfile\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LIBCFILE],\n      [1],\n      [Define to 1 if you have the `cfile' library (-lcfile).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcfile\" = xyes],\n    [AC_SUBST(\n      [HAVE_LIBCFILE],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_LIBCFILE],\n      [0])\n    ])\n  ])\n\ndnl Function to detect if posix_fadvise is available\nAC_DEFUN([AX_LIBCFILE_CHECK_FUNC_POSIX_FADVISE],\n  [AC_CHECK_FUNCS([posix_fadvise])\n\n  AS_IF(\n    [test \"x$ac_cv_func_posix_fadvise\" = xyes],\n    [AC_MSG_CHECKING(\n        [whether posix_fadvise can be linked])\n\n      SAVE_CFLAGS=\"$CFLAGS\"\n      CFLAGS=\"$CFLAGS -Wall -Werror\"\n      AC_LANG_PUSH(C)\n\n      AC_LINK_IFELSE(\n        [AC_LANG_PROGRAM(\n          [[#include <fcntl.h>]],\n          [[#if !defined( POSIX_FADV_SEQUENTIAL )\n#define POSIX_FADV_SEQUENTIAL 2\n#endif\nposix_fadvise( 0, 0, 0, POSIX_FADV_SEQUENTIAL )]] )],\n          [ac_cv_func_posix_fadvise=yes],\n          [ac_cv_func_posix_fadvise=no])\n\n      AC_LANG_POP(C)\n      CFLAGS=\"$SAVE_CFLAGS\"\n\n      AS_IF(\n        [test \"x$ac_cv_func_posix_fadvise\" = xyes],\n        [AC_MSG_RESULT(\n          [yes])\n        AC_DEFINE(\n          [HAVE_POSIX_FADVISE],\n          [1],\n          [Define to 1 if you have the posix_fadvise function.]) ],\n        [AC_MSG_RESULT(\n          [no]) ])\n    ])\n  ])\n\ndnl Function to detect if libcfile dependencies are available\nAC_DEFUN([AX_LIBCFILE_CHECK_LOCAL],\n  [dnl Headers included in libcfile/libcfile_file.c and libcfile/libcfile_support.c\n  AC_CHECK_HEADERS([errno.h stdio.h sys/stat.h])\n\n  dnl Headers included in libcfile/libcfile_file.c\n  AC_CHECK_HEADERS([cygwin/fs.h fcntl.h linux/fs.h sys/disk.h sys/disklabel.h sys/ioctl.h unistd.h])\n\n  dnl File input/output functions used in libcfile/libcfile_file.c\n  AC_CHECK_FUNCS([close fstat ftruncate ioctl lseek open read write])\n\n  AS_IF(\n    [test \"x$ac_cv_func_close\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: close],\n      [1])\n    ])\n\n  AX_LIBCFILE_CHECK_FUNC_POSIX_FADVISE\n\n  AS_IF(\n    [test \"x$ac_cv_func_fstat\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: fstat],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_ftruncate\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: ftruncate],\n      [1])\n    ])\n\n  AS_IF(\n    [test x\"$ac_cv_enable_winapi\" = xno],\n    [AS_IF(\n      [test \"x$ac_cv_func_ioctl\" != xyes],\n      [AC_MSG_FAILURE(\n        [Missing function: ioctl],\n        [1])\n      ])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_lseek\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: lseek],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_open\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: open],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_read\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: read],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_write\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: write],\n      [1])\n    ])\n\n  dnl File input/output functions used in libcfile/libcfile_support.c\n  AC_CHECK_FUNCS([stat unlink])\n\n  AS_IF(\n    [test \"x$ac_cv_func_stat\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: stat],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_unlink\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: unlink],\n      [1])\n    ])\n\n  ac_cv_libcfile_CPPFLAGS=\"-I../libcfile -I\\$(top_srcdir)/libcfile\";\n  ac_cv_libcfile_LIBADD=\"../libcfile/libcfile.la\";\n\n  ac_cv_libcfile=local\n  ])\n\ndnl Function to detect how to enable libcfile\nAC_DEFUN([AX_LIBCFILE_CHECK_ENABLE],\n  [AX_COMMON_ARG_WITH(\n    [libcfile],\n    [libcfile],\n    [search for libcfile in includedir and libdir or in the specified DIR, or no if to use local version],\n    [auto-detect],\n    [DIR])\n\n  dnl Check for a shared library version\n  AX_LIBCFILE_CHECK_LIB\n\n  dnl Check if the dependencies for the local library version\n  AS_IF(\n    [test \"x$ac_cv_libcfile\" != xyes],\n    [AX_LIBCFILE_CHECK_LOCAL\n\n    AC_DEFINE(\n      [HAVE_LOCAL_LIBCFILE],\n      [1],\n      [Define to 1 if the local version of libcfile is used.])\n    AC_SUBST(\n      [HAVE_LOCAL_LIBCFILE],\n      [1])\n    ])\n\n  AM_CONDITIONAL(\n    [HAVE_LOCAL_LIBCFILE],\n    [test \"x$ac_cv_libcfile\" = xlocal])\n  AS_IF(\n    [test \"x$ac_cv_libcfile_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [LIBCFILE_CPPFLAGS],\n      [$ac_cv_libcfile_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_libcfile_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [LIBCFILE_LIBADD],\n      [$ac_cv_libcfile_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcfile\" = xyes],\n    [AC_SUBST(\n      [ax_libcfile_pc_libs_private],\n      [-lcfile])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcfile\" = xyes],\n    [AC_SUBST(\n      [ax_libcfile_spec_requires],\n      [libcfile])\n    AC_SUBST(\n      [ax_libcfile_spec_build_requires],\n      [libcfile-devel])\n    ])\n  ])\n\n"
  },
  {
    "path": "m4/libclocale.m4",
    "content": "dnl Checks for libclocale required headers and functions\ndnl\ndnl Version: 20240513\n\ndnl Function to detect if libclocale is available\ndnl ac_libclocale_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments\nAC_DEFUN([AX_LIBCLOCALE_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_libclocale\" = xno],\n    [ac_cv_libclocale=no],\n    [ac_cv_libclocale=check\n    dnl Check if the directory provided as parameter exists\n    dnl For both --with-libclocale which returns \"yes\" and --with-libclocale= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_libclocale\" != x && test \"x$ac_cv_with_libclocale\" != xauto-detect && test \"x$ac_cv_with_libclocale\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([libclocale])],\n      [dnl Check for a pkg-config file\n      AS_IF(\n        [test \"x$cross_compiling\" != \"xyes\" && test \"x$PKGCONFIG\" != \"x\"],\n        [PKG_CHECK_MODULES(\n          [libclocale],\n          [libclocale >= 20120425],\n          [ac_cv_libclocale=yes],\n          [ac_cv_libclocale=check])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libclocale\" = xyes && test \"x$ac_cv_enable_wide_character_type\" != xno],\n        [AC_CACHE_CHECK(\n          [whether libclocale/features.h defines LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE as 1],\n          [ac_cv_header_libclocale_features_h_have_wide_character_type],\n          [AC_LANG_PUSH(C)\n          AC_COMPILE_IFELSE(\n            [AC_LANG_PROGRAM(\n              [[#include <libclocale/features.h>]],\n              [[#if !defined( LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE != 1 )\n#error LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE not defined\n#endif]] )],\n            [ac_cv_header_libclocale_features_h_have_wide_character_type=yes],\n            [ac_cv_header_libclocale_features_h_have_wide_character_type=no])\n          AC_LANG_POP(C)],\n          [ac_cv_header_libclocale_features_h_have_wide_character_type=no])\n\n        AS_IF(\n          [test \"x$ac_cv_header_libclocale_features_h_have_wide_character_type\" = xno],\n          [ac_cv_libclocale=no])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libclocale\" = xyes],\n        [ac_cv_libclocale_CPPFLAGS=\"$pkg_cv_libclocale_CFLAGS\"\n        ac_cv_libclocale_LIBADD=\"$pkg_cv_libclocale_LIBS\"])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_libclocale\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([libclocale.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_libclocale_h\" = xno],\n        [ac_cv_libclocale=no],\n        [ac_cv_libclocale=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [libclocale],\n          [clocale],\n          [[libclocale_get_version],\n           [libclocale_codepage],\n           [libclocale_codepage_get],\n           [libclocale_codepage_set],\n           [libclocale_codepage_copy_from_string],\n           [libclocale_locale_get_codepage],\n           [libclocale_locale_get_decimal_point],\n           [libclocale_initialize]])\n\n        AS_IF(\n          [test \"x$ac_cv_enable_wide_character_type\" != xno],\n          [AC_CHECK_LIB(\n            clocale,\n            libclocale_codepage_copy_from_string_wide,\n            [ac_cv_libclocale_dummy=yes],\n            [ac_cv_libclocale=no])\n          ])\n\n        ac_cv_libclocale_LIBADD=\"-lclocale\"])\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([libclocale])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libclocale\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LIBCLOCALE],\n      [1],\n      [Define to 1 if you have the `clocale' library (-lclocale).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libclocale\" = xyes],\n    [AC_SUBST(\n      [HAVE_LIBCLOCALE],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_LIBCLOCALE],\n      [0])\n    ])\n  ])\n\ndnl Function to detect whether nl_langinfo supports CODESET\nAC_DEFUN([AX_LIBCLOCALE_CHECK_FUNC_LANGINFO_CODESET],\n  [AC_CHECK_FUNCS([nl_langinfo])\n\n  AS_IF(\n    [test \"x$ac_cv_func_nl_langinfo\" = xyes],\n    [AC_CACHE_CHECK(\n      [for nl_langinfo CODESET support],\n      [ac_cv_cv_langinfo_codeset],\n      [AC_LANG_PUSH(C)\n      AC_LINK_IFELSE(\n        [AC_LANG_PROGRAM(\n          [[#include <langinfo.h>]],\n          [[char* charset = nl_langinfo( CODESET );]] )],\n        [ac_cv_cv_langinfo_codeset=yes],\n        [ac_cv_cv_langinfo_codeset=no])\n      AC_LANG_POP(C) ]) ],\n    [ac_cv_cv_langinfo_codeset=no])\n\n  AS_IF(\n    [test \"x$ac_cv_cv_langinfo_codeset\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LANGINFO_CODESET],\n      [1],\n      [Define if nl_langinfo has CODESET support.])\n    ])\n  ])\n\ndnl Function to detect if libclocale dependencies are available\nAC_DEFUN([AX_LIBCLOCALE_CHECK_LOCAL],\n  [dnl Headers included in libclocale/libclocale_locale.c\n  AC_CHECK_HEADERS([langinfo.h locale.h])\n\n  dnl Check for environment functions in libclocale/libclocale_locale.c\n  AC_CHECK_FUNCS([getenv])\n\n  AS_IF(\n    [test \"x$ac_cv_func_getenv\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: getenv],\n      [1])\n    ])\n\n  dnl Check for localization functions in libclocale/libclocale_locale.c\n  AS_IF(\n    [test \"x$ac_cv_enable_winapi\" = xno],\n    [AC_CHECK_FUNCS([localeconv])\n\n    AS_IF(\n      [test \"x$ac_cv_func_localeconv\" != xyes],\n      [AC_MSG_FAILURE(\n        [Missing function: localeconv],\n        [1])\n      ])\n    ])\n\n  AC_CHECK_FUNCS([setlocale])\n\n  AS_IF(\n    [test \"x$ac_cv_func_setlocale\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: setlocale],\n      [1])\n    ])\n\n  AX_LIBCLOCALE_CHECK_FUNC_LANGINFO_CODESET\n\n  ac_cv_libclocale_CPPFLAGS=\"-I../libclocale -I\\$(top_srcdir)/libclocale\";\n  ac_cv_libclocale_LIBADD=\"../libclocale/libclocale.la\";\n\n  ac_cv_libclocale=local\n  ])\n\ndnl Function to detect how to enable libclocale\nAC_DEFUN([AX_LIBCLOCALE_CHECK_ENABLE],\n  [AX_COMMON_ARG_WITH(\n    [libclocale],\n    [libclocale],\n    [search for libclocale in includedir and libdir or in the specified DIR, or no if to use local version],\n    [auto-detect],\n    [DIR])\n\n  dnl Check for a shared library version\n  AX_LIBCLOCALE_CHECK_LIB\n\n  dnl Check if the dependencies for the local library version\n  AS_IF(\n    [test \"x$ac_cv_libclocale\" != xyes],\n    [AX_LIBCLOCALE_CHECK_LOCAL\n\n    AC_DEFINE(\n      [HAVE_LOCAL_LIBCLOCALE],\n      [1],\n      [Define to 1 if the local version of libclocale is used.])\n    AC_SUBST(\n      [HAVE_LOCAL_LIBCLOCALE],\n      [1])\n    ])\n\n  AM_CONDITIONAL(\n    [HAVE_LOCAL_LIBCLOCALE],\n    [test \"x$ac_cv_libclocale\" = xlocal])\n  AS_IF(\n    [test \"x$ac_cv_libclocale_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [LIBCLOCALE_CPPFLAGS],\n      [$ac_cv_libclocale_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_libclocale_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [LIBCLOCALE_LIBADD],\n      [$ac_cv_libclocale_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libclocale\" = xyes],\n    [AC_SUBST(\n      [ax_libclocale_pc_libs_private],\n      [-lclocale])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libclocale\" = xyes],\n    [AC_SUBST(\n      [ax_libclocale_spec_requires],\n      [libclocale])\n    AC_SUBST(\n      [ax_libclocale_spec_build_requires],\n      [libclocale-devel])\n    ])\n  ])\n\n"
  },
  {
    "path": "m4/libcnotify.m4",
    "content": "dnl Checks for libcnotify required headers and functions\ndnl\ndnl Version: 20240513\n\ndnl Function to detect if libcnotify is available\ndnl ac_libcnotify_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments\nAC_DEFUN([AX_LIBCNOTIFY_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_libcnotify\" = xno],\n    [ac_cv_libcnotify=no],\n    [ac_cv_libcnotify=check\n    dnl Check if the directory provided as parameter exists\n    dnl For both --with-libcnotify which returns \"yes\" and --with-libcnotify= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_libcnotify\" != x && test \"x$ac_cv_with_libcnotify\" != xauto-detect && test \"x$ac_cv_with_libcnotify\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([libcnotify])],\n      [dnl Check for a pkg-config file\n      AS_IF(\n        [test \"x$cross_compiling\" != \"xyes\" && test \"x$PKGCONFIG\" != \"x\"],\n        [PKG_CHECK_MODULES(\n          [libcnotify],\n          [libcnotify >= 20120425],\n          [ac_cv_libcnotify=yes],\n          [ac_cv_libcnotify=check])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libcnotify\" = xyes],\n        [ac_cv_libcnotify_CPPFLAGS=\"$pkg_cv_libcnotify_CFLAGS\"\n        ac_cv_libcnotify_LIBADD=\"$pkg_cv_libcnotify_LIBS\"])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_libcnotify\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([libcnotify.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_libcnotify_h\" = xno],\n        [ac_cv_libcnotify=no],\n        [ac_cv_libcnotify=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [libcnotify],\n          [cnotify],\n          [[libcnotify_get_version],\n           [libcnotify_printf],\n           [libcnotify_print_data],\n           [libcnotify_print_error_backtrace],\n           [libcnotify_stream_set],\n           [libcnotify_stream_open],\n           [libcnotify_stream_close],\n           [libcnotify_verbose_set]])\n\n        ac_cv_libcnotify_LIBADD=\"-lcnotify\"])\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([libcnotify])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcnotify\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LIBCNOTIFY],\n      [1],\n      [Define to 1 if you have the `cnotify' library (-lcnotify).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcnotify\" = xyes],\n    [AC_SUBST(\n      [HAVE_LIBCNOTIFY],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_LIBCNOTIFY],\n      [0])\n    ])\n  ])\n\ndnl Function to detect if libcnotify dependencies are available\nAC_DEFUN([AX_LIBCNOTIFY_CHECK_LOCAL],\n  [dnl Headers included in libcnotify/libcnotify_print.c\n  AC_CHECK_HEADERS([stdarg.h varargs.h])\n\n  AS_IF(\n    [test \"x$ac_cv_header_stdarg_h\" != xyes && test \"x$ac_cv_header_varargs_h\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing headers: stdarg.h and varargs.h],\n      [1])\n    ])\n\n  dnl Headers included in libcnotify/libcnotify_stream.c\n  AC_CHECK_HEADERS([errno.h])\n\n  ac_cv_libcnotify_CPPFLAGS=\"-I../libcnotify -I\\$(top_srcdir)/libcnotify\";\n  ac_cv_libcnotify_LIBADD=\"../libcnotify/libcnotify.la\";\n\n  ac_cv_libcnotify=local\n  ])\n\ndnl Function to detect how to enable libcnotify\nAC_DEFUN([AX_LIBCNOTIFY_CHECK_ENABLE],\n  [AX_COMMON_ARG_WITH(\n    [libcnotify],\n    [libcnotify],\n    [search for libcnotify in includedir and libdir or in the specified DIR, or no if to use local version],\n    [auto-detect],\n    [DIR])\n\n  dnl Check for a shared library version\n  AX_LIBCNOTIFY_CHECK_LIB\n\n  dnl Check if the dependencies for the local library version\n  AS_IF(\n    [test \"x$ac_cv_libcnotify\" != xyes],\n    [AX_LIBCNOTIFY_CHECK_LOCAL\n\n    AC_DEFINE(\n      [HAVE_LOCAL_LIBCNOTIFY],\n      [1],\n      [Define to 1 if the local version of libcnotify is used.])\n    AC_SUBST(\n      [HAVE_LOCAL_LIBCNOTIFY],\n      [1])\n    ])\n\n  AM_CONDITIONAL(\n    [HAVE_LOCAL_LIBCNOTIFY],\n    [test \"x$ac_cv_libcnotify\" = xlocal])\n  AS_IF(\n    [test \"x$ac_cv_libcnotify_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [LIBCNOTIFY_CPPFLAGS],\n      [$ac_cv_libcnotify_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_libcnotify_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [LIBCNOTIFY_LIBADD],\n      [$ac_cv_libcnotify_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcnotify\" = xyes],\n    [AC_SUBST(\n      [ax_libcnotify_pc_libs_private],\n      [-lcnotify])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcnotify\" = xyes],\n    [AC_SUBST(\n      [ax_libcnotify_spec_requires],\n      [libcnotify])\n    AC_SUBST(\n      [ax_libcnotify_spec_build_requires],\n      [libcnotify-devel])\n    ])\n  ])\n\n"
  },
  {
    "path": "m4/libcpath.m4",
    "content": "dnl Checks for libcpath required headers and functions\ndnl\ndnl Version: 20240518\n\ndnl Function to detect if libcpath is available\ndnl ac_libcpath_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments\nAC_DEFUN([AX_LIBCPATH_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_libcpath\" = xno],\n    [ac_cv_libcpath=no],\n    [ac_cv_libcpath=check\n    dnl Check if the directory provided as parameter exists\n    dnl For both --with-libcpath which returns \"yes\" and --with-libcpath= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_libcpath\" != x && test \"x$ac_cv_with_libcpath\" != xauto-detect && test \"x$ac_cv_with_libcpath\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([libcpath])],\n      [dnl Check for a pkg-config file\n      AS_IF(\n        [test \"x$cross_compiling\" != \"xyes\" && test \"x$PKGCONFIG\" != \"x\"],\n        [PKG_CHECK_MODULES(\n          [libcpath],\n          [libcpath >= 20180716],\n          [ac_cv_libcpath=yes],\n          [ac_cv_libcpath=check])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libcpath\" = xyes && test \"x$ac_cv_enable_wide_character_type\" != xno],\n        [AC_CACHE_CHECK(\n         [whether libcpath/features.h defines LIBCPATH_HAVE_WIDE_CHARACTER_TYPE as 1],\n         [ac_cv_header_libcpath_features_h_have_wide_character_type],\n         [AC_LANG_PUSH(C)\n         AC_COMPILE_IFELSE(\n           [AC_LANG_PROGRAM(\n             [[#include <libcpath/features.h>]],\n             [[#if !defined( LIBCPATH_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCPATH_HAVE_WIDE_CHARACTER_TYPE != 1 )\n#error LIBCPATH_HAVE_WIDE_CHARACTER_TYPE not defined\n#endif]] )],\n           [ac_cv_header_libcpath_features_h_have_wide_character_type=yes],\n           [ac_cv_header_libcpath_features_h_have_wide_character_type=no])\n         AC_LANG_POP(C)],\n         [ac_cv_header_libcpath_features_h_have_wide_character_type=no])\n\n        AS_IF(\n          [test \"x$ac_cv_header_libcpath_features_h_have_wide_character_type\" = xno],\n          [ac_cv_libcpath=no])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libcpath\" = xyes],\n        [ac_cv_libcpath_CPPFLAGS=\"$pkg_cv_libcpath_CFLAGS\"\n        ac_cv_libcpath_LIBADD=\"$pkg_cv_libcpath_LIBS\"])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_libcpath\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([libcpath.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_libcpath_h\" = xno],\n        [ac_cv_libcpath=no],\n        [ac_cv_libcpath=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [libcpath],\n          [cpath],\n          [[libcpath_get_version],\n           [libcpath_path_change_directory],\n           [libcpath_path_get_current_working_directory],\n           [libcpath_path_get_full_path],\n           [libcpath_path_get_sanitized_filename],\n           [libcpath_path_get_sanitized_path],\n           [libcpath_path_join],\n           [libcpath_path_make_directory]])\n\n        AS_IF(\n          [test \"x$ac_cv_enable_wide_character_type\" != xno],\n          [AX_CHECK_LIB_FUNCTIONS(\n            [libcpath],\n            [cpath],\n            [[libcpath_path_change_directory_wide],\n             [libcpath_path_get_current_working_directory_wide],\n             [libcpath_path_get_full_path_wide],\n             [libcpath_path_get_sanitized_filename_wide],\n             [libcpath_path_get_sanitized_path_wide],\n             [libcpath_path_join_wide],\n             [libcpath_path_make_directory_wide]])\n          ])\n\n        ac_cv_libcpath_LIBADD=\"-lcpath\"])\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([libcpath])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcpath\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LIBCPATH],\n      [1],\n      [Define to 1 if you have the `cpath' library (-lcpath).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcpath\" = xyes],\n    [AC_SUBST(\n      [HAVE_LIBCPATH],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_LIBCPATH],\n      [0])\n    ])\n  ])\n\ndnl Function to detect if mkdir is available\ndnl Also checks how to use mkdir\nAC_DEFUN([AX_LIBCPATH_CHECK_FUNC_MKDIR],\n  [AC_CHECK_FUNCS([mkdir])\n\n  AS_IF(\n    [test \"x$ac_cv_func_mkdir\" = xyes],\n    [AC_MSG_CHECKING(\n      [how to use mkdir])\n\n    SAVE_CFLAGS=\"$CFLAGS\"\n    CFLAGS=\"$CFLAGS -Wall -Werror\"\n    AC_LANG_PUSH(C)\n\n    AC_LINK_IFELSE(\n      [AC_LANG_PROGRAM(\n        [[#include <sys/stat.h>\n#include <sys/types.h>]],\n        [[mkdir( \"\", 0 )]] )],\n        [AC_MSG_RESULT(\n          [with additional mode argument])\n        ac_cv_cv_mkdir_mode=yes],\n        [ac_cv_cv_mkdir_mode=no])\n\n    AS_IF(\n      [test \"x$ac_cv_cv_mkdir_mode\" = xno],\n      [AC_LINK_IFELSE(\n        [AC_LANG_PROGRAM(\n          [[#include <io.h>]],\n          [[mkdir( \"\" )]] )],\n        [AC_MSG_RESULT(\n          [with single argument])\n        ac_cv_cv_mkdir=yes],\n        [ac_cv_cv_mkdir=no])\n      ])\n\n    AC_LANG_POP(C)\n    CFLAGS=\"$SAVE_CFLAGS\"\n\n    AS_IF(\n      [test \"x$ac_cv_cv_mkdir_mode\" = xno && test \"x$ac_cv_cv_mkdir\" = xno],\n      [AC_MSG_WARN(\n        [unknown])\n      ac_cv_func_mkdir=no])\n\n    AS_IF(\n      [test \"x$ac_cv_func_mkdir\" = xyes],\n      [AC_DEFINE(\n        [HAVE_MKDIR],\n        [1],\n        [Define to 1 if you have the mkdir function.])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_cv_mkdir_mode\" = xyes],\n      [AC_DEFINE(\n        [HAVE_MKDIR_MODE],\n        [1],\n        [Define to 1 if you have the mkdir function with a second mode argument.])\n      ])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_mkdir\" = xno],\n    [AC_MSG_FAILURE(\n      [Missing function: mkdir],\n      [1])\n    ])\n  ])\n\ndnl Function to detect if libcpath dependencies are available\nAC_DEFUN([AX_LIBCPATH_CHECK_LOCAL],\n  [dnl Headers included in libcpath/libcpath_path.h\n  AC_CHECK_HEADERS([errno.h sys/stat.h sys/syslimits.h])\n\n  dnl Path functions used in libcpath/libcpath_path.h\n  AC_CHECK_FUNCS([chdir getcwd])\n\n  AS_IF(\n    [test \"x$ac_cv_func_chdir\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing functions: chdir],\n      [1])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_func_getcwd\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing functions: getcwd],\n      [1])\n    ])\n\n  AX_LIBCPATH_CHECK_FUNC_MKDIR\n\n  ac_cv_libcpath_CPPFLAGS=\"-I../libcpath -I\\$(top_srcdir)/libcpath\";\n  ac_cv_libcpath_LIBADD=\"../libcpath/libcpath.la\";\n\n  ac_cv_libcpath=local\n  ])\n\ndnl Function to detect how to enable libcpath\nAC_DEFUN([AX_LIBCPATH_CHECK_ENABLE],\n  [AX_COMMON_ARG_WITH(\n    [libcpath],\n    [libcpath],\n    [search for libcpath in includedir and libdir or in the specified DIR, or no if to use local version],\n    [auto-detect],\n    [DIR])\n\n  dnl Check for a shared library version\n  AX_LIBCPATH_CHECK_LIB\n\n  dnl Check if the dependencies for the local library version\n  AS_IF(\n    [test \"x$ac_cv_libcpath\" != xyes],\n    [AX_LIBCPATH_CHECK_LOCAL\n\n    AC_DEFINE(\n      [HAVE_LOCAL_LIBCPATH],\n      [1],\n      [Define to 1 if the local version of libcpath is used.])\n    AC_SUBST(\n      [HAVE_LOCAL_LIBCPATH],\n      [1])\n    ])\n\n  AM_CONDITIONAL(\n    [HAVE_LOCAL_LIBCPATH],\n    [test \"x$ac_cv_libcpath\" = xlocal])\n  AS_IF(\n    [test \"x$ac_cv_libcpath_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [LIBCPATH_CPPFLAGS],\n      [$ac_cv_libcpath_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_libcpath_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [LIBCPATH_LIBADD],\n      [$ac_cv_libcpath_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcpath\" = xyes],\n    [AC_SUBST(\n      [ax_libcpath_pc_libs_private],\n      [-lcpath])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcpath\" = xyes],\n    [AC_SUBST(\n      [ax_libcpath_spec_requires],\n      [libcpath])\n    AC_SUBST(\n      [ax_libcpath_spec_build_requires],\n      [libcpath-devel])\n    ])\n  ])\n\n"
  },
  {
    "path": "m4/libcsplit.m4",
    "content": "dnl Checks for libcsplit required headers and functions\ndnl\ndnl Version: 20240513\n\ndnl Function to detect if libcsplit is available\ndnl ac_libcsplit_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments\nAC_DEFUN([AX_LIBCSPLIT_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_libcsplit\" = xno],\n    [ac_cv_libcsplit=no],\n    [ac_cv_libcsplit=check\n    dnl Check if the directory provided as parameter exists\n    dnl For both --with-libcsplit which returns \"yes\" and --with-libcsplit= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_libcsplit\" != x && test \"x$ac_cv_with_libcsplit\" != xauto-detect && test \"x$ac_cv_with_libcsplit\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([libcsplit])],\n      [dnl Check for a pkg-config file\n      AS_IF(\n        [test \"x$cross_compiling\" != \"xyes\" && test \"x$PKGCONFIG\" != \"x\"],\n        [PKG_CHECK_MODULES(\n          [libcsplit],\n          [libcsplit >= 20120701],\n          [ac_cv_libcsplit=yes],\n          [ac_cv_libcsplit=check])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libcsplit\" = xyes && test \"x$ac_cv_enable_wide_character_type\" != xno],\n        [AC_CACHE_CHECK(\n          [whether libcsplit/features.h defines LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE as 1],\n          [ac_cv_header_libcsplit_features_h_have_wide_character_type],\n          [AC_LANG_PUSH(C)\n          AC_COMPILE_IFELSE(\n            [AC_LANG_PROGRAM(\n              [[#include <libcsplit/features.h>]],\n              [[#if !defined( LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE != 1 )\n#error LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE not defined\n#endif]] )],\n            [ac_cv_header_libcsplit_features_h_have_wide_character_type=yes],\n            [ac_cv_header_libcsplit_features_h_have_wide_character_type=no])\n          AC_LANG_POP(C)],\n          [ac_cv_header_libcsplit_features_h_have_wide_character_type=no])\n\n         AS_IF(\n           [test \"x$ac_cv_header_libcsplit_features_h_have_wide_character_type\" = xno],\n           [ac_cv_libcsplit=no])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libcsplit\" = xyes],\n        [ac_cv_libcsplit_CPPFLAGS=\"$pkg_cv_libcsplit_CFLAGS\"\n        ac_cv_libcsplit_LIBADD=\"$pkg_cv_libcsplit_LIBS\"])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_libcsplit\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([libcsplit.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_libcsplit_h\" = xno],\n        [ac_cv_libcsplit=no],\n        [ac_cv_libcsplit=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [libcsplit],\n          [csplit],\n          [[libcsplit_get_version],\n           [libcsplit_narrow_string_split],\n           [libcsplit_narrow_split_string_free],\n           [libcsplit_narrow_split_string_get_string],\n           [libcsplit_narrow_split_string_get_number_of_segments],\n           [libcsplit_narrow_split_string_get_segment_by_index],\n           [libcsplit_narrow_split_string_set_segment_by_index]])\n\n        dnl Wide string functions\n        AS_IF(\n          [test \"x$ac_cv_enable_wide_character_type\" != xno],\n          [AX_CHECK_LIB_FUNCTIONS(\n            [libcsplit],\n            [csplit],\n            [[libcsplit_wide_string_split],\n             [libcsplit_wide_split_string_free],\n             [libcsplit_wide_split_string_get_string],\n             [libcsplit_wide_split_string_get_number_of_segments],\n             [libcsplit_wide_split_string_get_segment_by_index],\n             [libcsplit_wide_split_string_set_segment_by_index]])\n          ])\n\n        ac_cv_libcsplit_LIBADD=\"-lcsplit\"])\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([libcsplit])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcsplit\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LIBCSPLIT],\n      [1],\n      [Define to 1 if you have the `csplit' library (-lcsplit).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcsplit\" = xyes],\n    [AC_SUBST(\n      [HAVE_LIBCSPLIT],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_LIBCSPLIT],\n      [0])\n    ])\n  ])\n\ndnl Function to detect if libcsplit dependencies are available\nAC_DEFUN([AX_LIBCSPLIT_CHECK_LOCAL],\n  [dnl No additional checks.\n\n  ac_cv_libcsplit_CPPFLAGS=\"-I../libcsplit -I\\$(top_srcdir)/libcsplit\";\n  ac_cv_libcsplit_LIBADD=\"../libcsplit/libcsplit.la\";\n\n  ac_cv_libcsplit=local\n  ])\n\ndnl Function to detect how to enable libcsplit\nAC_DEFUN([AX_LIBCSPLIT_CHECK_ENABLE],\n  [AX_COMMON_ARG_WITH(\n    [libcsplit],\n    [libcsplit],\n    [search for libcsplit in includedir and libdir or in the specified DIR, or no if to use local version],\n    [auto-detect],\n    [DIR])\n\n  dnl Check for a shared library version\n  AX_LIBCSPLIT_CHECK_LIB\n\n  dnl Check if the dependencies for the local library version\n  AS_IF(\n    [test \"x$ac_cv_libcsplit\" != xyes],\n    [AX_LIBCSPLIT_CHECK_LOCAL\n\n    AC_DEFINE(\n      [HAVE_LOCAL_LIBCSPLIT],\n      [1],\n      [Define to 1 if the local version of libcsplit is used.])\n    AC_SUBST(\n      [HAVE_LOCAL_LIBCSPLIT],\n      [1])\n    ])\n\n  AM_CONDITIONAL(\n    [HAVE_LOCAL_LIBCSPLIT],\n    [test \"x$ac_cv_libcsplit\" = xlocal])\n  AS_IF(\n    [test \"x$ac_cv_libcsplit_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [LIBCSPLIT_CPPFLAGS],\n      [$ac_cv_libcsplit_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_libcsplit_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [LIBCSPLIT_LIBADD],\n      [$ac_cv_libcsplit_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcsplit\" = xyes],\n    [AC_SUBST(\n      [ax_libcsplit_pc_libs_private],\n      [-lcsplit])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcsplit\" = xyes],\n    [AC_SUBST(\n      [ax_libcsplit_spec_requires],\n      [libcsplit])\n    AC_SUBST(\n      [ax_libcsplit_spec_build_requires],\n      [libcsplit-devel])\n    ])\n  ])\n\n"
  },
  {
    "path": "m4/libcthreads.m4",
    "content": "dnl Checks for libcthreads required headers and functions\ndnl\ndnl Version: 20240513\n\ndnl Function to detect if libcthreads is available\ndnl ac_libcthreads_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments\nAC_DEFUN([AX_LIBCTHREADS_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_libcthreads\" = xno],\n    [ac_cv_libcthreads=no],\n    [ac_cv_libcthreads=check\n    dnl Check if the directory provided as parameter exists\n    dnl For both --with-libcthreads which returns \"yes\" and --with-libcthreads= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_libcthreads\" != x && test \"x$ac_cv_with_libcthreads\" != xauto-detect && test \"x$ac_cv_with_libcthreads\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([libcthreads])],\n      [dnl Check for a pkg-config file\n      AS_IF(\n        [test \"x$cross_compiling\" != \"xyes\" && test \"x$PKGCONFIG\" != \"x\"],\n        [PKG_CHECK_MODULES(\n          [libcthreads],\n          [libcthreads >= 20160404],\n          [ac_cv_libcthreads=yes],\n          [ac_cv_libcthreads=check])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libcthreads\" = xyes],\n        [ac_cv_libcthreads_CPPFLAGS=\"$pkg_cv_libcthreads_CFLAGS\"\n        ac_cv_libcthreads_LIBADD=\"$pkg_cv_libcthreads_LIBS\"])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_libcthreads\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([libcthreads.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_libcthreads_h\" = xno],\n        [ac_cv_libcthreads=no],\n        [ac_cv_libcthreads=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [libcthreads],\n          [cthreads],\n          [[libcthreads_get_version],\n           [libcthreads_thread_create],\n           [libcthreads_thread_join],\n           [libcthreads_thread_attributes_initialize],\n           [libcthreads_thread_attributes_free],\n           [libcthreads_condition_initialize],\n           [libcthreads_condition_free],\n           [libcthreads_condition_broadcast],\n           [libcthreads_condition_signal],\n           [libcthreads_condition_wait],\n           [libcthreads_lock_initialize],\n           [libcthreads_lock_free],\n           [libcthreads_lock_grab],\n           [libcthreads_lock_release],\n           [libcthreads_mutex_initialize],\n           [libcthreads_mutex_free],\n           [libcthreads_mutex_grab],\n           [libcthreads_mutex_try_grab],\n           [libcthreads_mutex_release],\n           [libcthreads_read_write_lock_initialize],\n           [libcthreads_read_write_lock_free],\n           [libcthreads_read_write_lock_grab_for_read],\n           [libcthreads_read_write_lock_grab_for_write],\n           [libcthreads_read_write_lock_release_for_read],\n           [libcthreads_read_write_lock_release_for_write],\n           [libcthreads_queue_initialize],\n           [libcthreads_queue_free],\n           [libcthreads_queue_type_pop],\n           [libcthreads_queue_pop],\n           [libcthreads_queue_try_push],\n           [libcthreads_queue_push],\n           [libcthreads_queue_push_sorted],\n           [libcthreads_thread_pool_create],\n           [libcthreads_thread_pool_push],\n           [libcthreads_thread_pool_push_sorted],\n           [libcthreads_thread_pool_join]])\n\n        ac_cv_libcthreads_LIBADD=\"-lcthreads\"])\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([libcthreads])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcthreads\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LIBCTHREADS],\n      [1],\n      [Define to 1 if you have the `cthreads' library (-lcthreads).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcthreads\" = xyes],\n    [ac_cv_libcthreads_multi_threading=libcthreads],\n    [ac_cv_libcthreads_multi_threading=no])\n\n  AS_IF(\n    [test \"x$ac_cv_libcthreads\" = xyes],\n    [AC_SUBST(\n      [HAVE_LIBCTHREADS],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_LIBCTHREADS],\n      [0])\n    ])\n  ])\n\ndnl Function to detect if libcthreads dependencies are available\nAC_DEFUN([AX_LIBCTHREADS_CHECK_LOCAL],\n  [AS_IF(\n    [test \"x$ac_cv_enable_winapi\" = xno],\n    [dnl Check for enabling pthread support\n    AX_PTHREAD_CHECK_ENABLE\n      ac_cv_libcthreads_multi_threading=$ac_cv_pthread],\n    [ac_cv_libcthreads_multi_threading=\"winapi\"])\n\n  AS_IF(\n    [test \"x$ac_cv_libcthreads_multi_threading\" != xno],\n    [ac_cv_libcthreads_CPPFLAGS=\"-I../libcthreads -I\\$(top_srcdir)/libcthreads\";\n    ac_cv_libcthreads_LIBADD=\"../libcthreads/libcthreads.la\";\n\n    ac_cv_libcthreads=local],\n    [ac_cv_libcthreads=no])\n  ])\n\ndnl Function to detect how to enable libcthreads\nAC_DEFUN([AX_LIBCTHREADS_CHECK_ENABLE],\n  [AX_COMMON_ARG_ENABLE(\n    [multi-threading-support],\n    [multi_threading_support],\n    [enable multi-threading support],\n    [yes])\n  AX_COMMON_ARG_WITH(\n    [libcthreads],\n    [libcthreads],\n    [search for libcthreads in includedir and libdir or in the specified DIR, or no if to use local version],\n    [auto-detect],\n    [DIR])\n\n  AS_IF(\n    [test \"x$ac_cv_enable_multi_threading_support\" = xno],\n    [ac_cv_libcthreads=\"no\"\n    ac_cv_libcthreads_multi_threading=\"no\"],\n    [dnl Check for a shared library version\n    AX_LIBCTHREADS_CHECK_LIB\n\n    dnl Check if the dependencies for the local library version\n    AS_IF(\n      [test \"x$ac_cv_libcthreads\" != xyes],\n      [AX_LIBCTHREADS_CHECK_LOCAL\n\n      AC_DEFINE(\n        [HAVE_LOCAL_LIBCTHREADS],\n        [1],\n        [Define to 1 if the local version of libcthreads is used.])\n      AC_SUBST(\n        [HAVE_LOCAL_LIBCTHREADS],\n        [1])\n      ])\n    ])\n\n  AM_CONDITIONAL(\n    [HAVE_LOCAL_LIBCTHREADS],\n    [test \"x$ac_cv_libcthreads\" = xlocal])\n  AS_IF(\n    [test \"x$ac_cv_libcthreads_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [LIBCTHREADS_CPPFLAGS],\n      [$ac_cv_libcthreads_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_libcthreads_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [LIBCTHREADS_LIBADD],\n      [$ac_cv_libcthreads_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcthreads\" != xno],\n    [AC_DEFINE(\n      [HAVE_MULTI_THREAD_SUPPORT],\n      [1],\n      [Define to 1 if multi thread support should be used.])\n    AC_SUBST(\n      [HAVE_MULTI_THREAD_SUPPORT],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_MULTI_THREAD_SUPPORT],\n      [0])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcthreads\" = xyes],\n    [AC_SUBST(\n      [ax_libcthreads_pc_libs_private],\n      [-lcthreads])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libcthreads\" = xyes],\n    [AC_SUBST(\n      [ax_libcthreads_spec_requires],\n      [libcthreads])\n    AC_SUBST(\n      [ax_libcthreads_spec_build_requires],\n      [libcthreads-devel])\n    ])\n  ])\n\n"
  },
  {
    "path": "m4/libfcache.m4",
    "content": "dnl Checks for libfcache required headers and functions\ndnl\ndnl Version: 20240514\n\ndnl Function to detect if libfcache is available\ndnl ac_libfcache_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments\nAC_DEFUN([AX_LIBFCACHE_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_libfcache\" = xno],\n    [ac_cv_libfcache=no],\n    [ac_cv_libfcache=check\n    dnl Check if the directory provided as parameter exists\n    dnl For both --with-libfcache which returns \"yes\" and --with-libfcache= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_libfcache\" != x && test \"x$ac_cv_with_libfcache\" != xauto-detect && test \"x$ac_cv_with_libfcache\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([libfcache])],\n      [dnl Check for a pkg-config file\n      AS_IF(\n        [test \"x$cross_compiling\" != \"xyes\" && test \"x$PKGCONFIG\" != \"x\"],\n        [PKG_CHECK_MODULES(\n          [libfcache],\n          [libfcache >= 20191109],\n          [ac_cv_libfcache=yes],\n          [ac_cv_libfcache=check])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libfcache\" = xyes],\n        [ac_cv_libfcache_CPPFLAGS=\"$pkg_cv_libfcache_CFLAGS\"\n        ac_cv_libfcache_LIBADD=\"$pkg_cv_libfcache_LIBS\"])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_libfcache\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([libfcache.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_libfcache_h\" = xno],\n        [ac_cv_libfcache=no],\n        [ac_cv_libfcache=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [libfcache],\n          [fcache],\n          [[libfcache_get_version],\n           [libfcache_cache_initialize],\n           [libfcache_cache_free],\n           [libfcache_cache_clone],\n           [libfcache_cache_clear],\n           [libfcache_cache_get_number_of_entries],\n           [libfcache_cache_get_number_of_cache_values],\n           [libfcache_cache_clear_value_by_index],\n           [libfcache_cache_get_value_by_identifier],\n           [libfcache_cache_get_value_by_index],\n           [libfcache_cache_set_value_by_identifier],\n           [libfcache_cache_set_value_by_index],\n           [libfcache_cache_value_free],\n           [libfcache_cache_value_clear],\n           [libfcache_cache_value_get_identifier],\n           [libfcache_cache_value_set_identifier],\n           [libfcache_cache_value_get_value],\n           [libfcache_cache_value_set_value],\n           [libfcache_date_time_get_timestamp]])\n\n        ac_cv_libfcache_LIBADD=\"-lfcache\"])\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([libfcache])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfcache\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LIBFCACHE],\n      [1],\n      [Define to 1 if you have the `fcache' library (-lfcache).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfcache\" = xyes],\n    [AC_SUBST(\n      [HAVE_LIBFCACHE],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_LIBFCACHE],\n      [0])\n    ])\n  ])\n\ndnl Function to detect if libfcache dependencies are available\nAC_DEFUN([AX_LIBFCACHE_CHECK_LOCAL],\n  [dnl Types used in libfcache/libfcache_date_time.h\n  AC_STRUCT_TM\n\n  dnl Headers included in libfcache/libfcache_date_time.h\n  AC_CHECK_HEADERS([sys/time.h])\n\n  dnl Date and time functions used in libfcache/libfcache_date_time.h\n  AC_CHECK_FUNCS([clock_gettime time])\n\n  AS_IF(\n    [test \"x$ac_cv_func_time\" != xyes],\n    [AC_MSG_FAILURE(\n      [Missing function: time],\n      [1])\n    ])\n\n  ac_cv_libfcache_CPPFLAGS=\"-I../libfcache -I\\$(top_srcdir)/libfcache\";\n  ac_cv_libfcache_LIBADD=\"../libfcache/libfcache.la\";\n\n  ac_cv_libfcache=local\n  ])\n\ndnl Function to detect how to enable libfcache\nAC_DEFUN([AX_LIBFCACHE_CHECK_ENABLE],\n  [AX_COMMON_ARG_WITH(\n    [libfcache],\n    [libfcache],\n    [search for libfcache in includedir and libdir or in the specified DIR, or no if to use local version],\n    [auto-detect],\n    [DIR])\n\n  dnl Check for a shared library version\n  AX_LIBFCACHE_CHECK_LIB\n\n  dnl Check if the dependencies for the local library version\n  AS_IF(\n    [test \"x$ac_cv_libfcache\" != xyes],\n    [AX_LIBFCACHE_CHECK_LOCAL\n\n    AC_DEFINE(\n      [HAVE_LOCAL_LIBFCACHE],\n      [1],\n      [Define to 1 if the local version of libfcache is used.])\n    AC_SUBST(\n      [HAVE_LOCAL_LIBFCACHE],\n      [1])\n    ])\n\n  AM_CONDITIONAL(\n    [HAVE_LOCAL_LIBFCACHE],\n    [test \"x$ac_cv_libfcache\" = xlocal])\n  AS_IF(\n    [test \"x$ac_cv_libfcache_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [LIBFCACHE_CPPFLAGS],\n      [$ac_cv_libfcache_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_libfcache_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [LIBFCACHE_LIBADD],\n      [$ac_cv_libfcache_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfcache\" = xyes],\n    [AC_SUBST(\n      [ax_libfcache_pc_libs_private],\n      [-lfcache])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfcache\" = xyes],\n    [AC_SUBST(\n      [ax_libfcache_spec_requires],\n      [libfcache])\n    AC_SUBST(\n      [ax_libfcache_spec_build_requires],\n      [libfcache-devel])\n    ])\n  ])\n"
  },
  {
    "path": "m4/libfdata.m4",
    "content": "dnl Functions for libfdata\ndnl\ndnl Version: 20240520\n\ndnl Function to detect if libfdata is available\ndnl ac_libfdata_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments\nAC_DEFUN([AX_LIBFDATA_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_libfdata\" = xno],\n    [ac_cv_libfdata=no],\n    [ac_cv_libfdata=check\n    dnl Check if the directory provided as parameter exists\n    dnl For both --with-libfdata which returns \"yes\" and --with-libfdata= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_libfdata\" != x && test \"x$ac_cv_with_libfdata\" != xauto-detect && test \"x$ac_cv_with_libfdata\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([libfdata])],\n      [dnl Check for a pkg-config file\n      AS_IF(\n        [test \"x$cross_compiling\" != \"xyes\" && test \"x$PKGCONFIG\" != \"x\"],\n        [PKG_CHECK_MODULES(\n          [libfdata],\n          [libfdata >= 20201129],\n          [ac_cv_libfdata=yes],\n          [ac_cv_libfdata=check])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libfdata\" = xyes],\n        [ac_cv_libfdata_CPPFLAGS=\"$pkg_cv_libfdata_CFLAGS\"\n        ac_cv_libfdata_LIBADD=\"$pkg_cv_libfdata_LIBS\"])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_libfdata\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([libfdata.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_libfdata_h\" = xno],\n        [ac_cv_libfdata=no],\n        [ac_cv_libfdata=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [libfdata],\n          [fdata],\n          [[libfdata_get_version],\n           [libfdata_area_initialize],\n           [libfdata_area_free],\n           [libfdata_area_clone],\n           [libfdata_area_empty],\n           [libfdata_area_resize],\n           [libfdata_area_get_number_of_segments],\n           [libfdata_area_get_segment_by_index],\n           [libfdata_area_set_segment_by_index],\n           [libfdata_area_prepend_segment],\n           [libfdata_area_append_segment],\n           [libfdata_area_get_element_data_size],\n           [libfdata_area_get_element_value_at_offset],\n           [libfdata_area_set_element_value_at_offset],\n           [libfdata_area_get_size],\n           [libfdata_list_initialize],\n           [libfdata_list_free],\n           [libfdata_list_clone],\n           [libfdata_list_empty],\n           [libfdata_list_resize],\n           [libfdata_list_reverse],\n           [libfdata_list_get_number_of_elements],\n           [libfdata_list_get_list_element_by_index],\n           [libfdata_list_get_element_by_index],\n           [libfdata_list_set_element_by_index],\n           [libfdata_list_prepend_element],\n           [libfdata_list_append_element],\n           [libfdata_list_append_list],\n           [libfdata_list_is_element_set],\n           [libfdata_list_get_element_mapped_range],\n           [libfdata_list_get_mapped_offset],\n           [libfdata_list_set_mapped_offset],\n           [libfdata_list_get_mapped_size_by_index],\n           [libfdata_list_set_mapped_size_by_index],\n           [libfdata_list_get_element_by_index_with_mapped_size],\n           [libfdata_list_set_element_by_index_with_mapped_size],\n           [libfdata_list_append_element_with_mapped_size],\n           [libfdata_list_get_element_index_at_offset],\n           [libfdata_list_get_list_element_at_offset],\n           [libfdata_list_get_element_at_offset],\n           [libfdata_list_cache_element_value],\n           [libfdata_list_get_element_value_by_index],\n           [libfdata_list_get_element_value_at_offset],\n           [libfdata_list_set_element_value_by_index],\n           [libfdata_list_set_element_value_at_offset],\n           [libfdata_list_get_size],\n           [libfdata_list_element_get_mapped_size],\n           [libfdata_list_element_set_mapped_size],\n           [libfdata_list_element_get_element_value],\n           [libfdata_list_element_set_element_value],\n           [libfdata_list_element_get_mapped_size],\n           [libfdata_list_element_set_mapped_size],\n           [libfdata_list_element_get_element_value],\n           [libfdata_list_element_set_element_value],\n           [libfdata_stream_initialize],\n           [libfdata_stream_free],\n           [libfdata_stream_clone],\n           [libfdata_stream_empty],\n           [libfdata_stream_resize],\n           [libfdata_stream_reverse],\n           [libfdata_stream_get_number_of_segments],\n           [libfdata_stream_get_segment_by_index],\n           [libfdata_stream_set_segment_by_index],\n           [libfdata_stream_prepend_segment],\n           [libfdata_stream_append_segment],\n           [libfdata_stream_set_mapped_size],\n           [libfdata_stream_get_segment_mapped_range],\n           [libfdata_stream_get_segment_index_at_offset],\n           [libfdata_stream_get_segment_at_offset],\n           [libfdata_stream_read_buffer],\n           [libfdata_stream_read_buffer_at_offset],\n           [libfdata_stream_write_buffer],\n           [libfdata_stream_seek_offset],\n           [libfdata_stream_get_offset],\n           [libfdata_stream_get_size],\n           [libfdata_range_list_initialize],\n           [libfdata_range_list_free],\n           [libfdata_range_list_clone],\n           [libfdata_range_list_empty],\n           [libfdata_range_list_get_list_element_at_offset],\n           [libfdata_range_list_get_element_at_offset],\n           [libfdata_range_list_insert_element],\n           [libfdata_range_list_get_element_value_at_offset],\n           [libfdata_range_list_set_element_value_at_offset],\n           [libfdata_vector_initialize],\n           [libfdata_vector_free],\n           [libfdata_vector_clone],\n           [libfdata_vector_empty],\n           [libfdata_vector_resize],\n           [libfdata_vector_get_number_of_segments],\n           [libfdata_vector_get_segment_by_index],\n           [libfdata_vector_set_segment_by_index],\n           [libfdata_vector_prepend_segment],\n           [libfdata_vector_append_segment],\n           [libfdata_vector_get_element_data_size],\n           [libfdata_vector_get_number_of_elements],\n           [libfdata_vector_get_element_index_at_offset],\n           [libfdata_vector_get_element_value_by_index],\n           [libfdata_vector_get_element_value_at_offset],\n           [libfdata_vector_set_element_value_by_index],\n           [libfdata_vector_get_size]])\n\n        ac_cv_libfdata_LIBADD=\"-lfdata\"])\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([libfdata])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfdata\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LIBFDATA],\n      [1],\n      [Define to 1 if you have the `fdata' library (-lfdata).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfdata\" = xyes],\n    [AC_SUBST(\n      [HAVE_LIBFDATA],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_LIBFDATA],\n      [0])\n    ])\n  ])\n\ndnl Function to detect if libfdata dependencies are available\nAC_DEFUN([AX_LIBFDATA_CHECK_LOCAL],\n  [dnl No additional checks.\n\n  ac_cv_libfdata_CPPFLAGS=\"-I../libfdata -I\\$(top_srcdir)/libfdata\";\n  ac_cv_libfdata_LIBADD=\"../libfdata/libfdata.la\";\n\n  ac_cv_libfdata=local\n  ])\n\ndnl Function to detect how to enable libfdata\nAC_DEFUN([AX_LIBFDATA_CHECK_ENABLE],\n  [AX_COMMON_ARG_WITH(\n    [libfdata],\n    [libfdata],\n    [search for libfdata in includedir and libdir or in the specified DIR, or no if to use local version],\n    [auto-detect],\n    [DIR])\n\n  dnl Check for a shared library version\n  AX_LIBFDATA_CHECK_LIB\n\n  dnl Check if the dependencies for the local library version\n  AS_IF(\n    [test \"x$ac_cv_libfdata\" != xyes],\n    [AX_LIBFDATA_CHECK_LOCAL\n\n    AC_DEFINE(\n      [HAVE_LOCAL_LIBFDATA],\n      [1],\n      [Define to 1 if the local version of libfdata is used.])\n    AC_SUBST(\n      [HAVE_LOCAL_LIBFDATA],\n      [1])\n    ])\n\n  AM_CONDITIONAL(\n    [HAVE_LOCAL_LIBFDATA],\n    [test \"x$ac_cv_libfdata\" = xlocal])\n  AS_IF(\n    [test \"x$ac_cv_libfdata_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [LIBFDATA_CPPFLAGS],\n      [$ac_cv_libfdata_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_libfdata_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [LIBFDATA_LIBADD],\n      [$ac_cv_libfdata_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfdata\" = xyes],\n    [AC_SUBST(\n      [ax_libfdata_pc_libs_private],\n      [-lfdata])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfdata\" = xyes],\n    [AC_SUBST(\n      [ax_libfdata_spec_requires],\n      [libfdata])\n    AC_SUBST(\n      [ax_libfdata_spec_build_requires],\n      [libfdata-devel])\n    ])\n  ])\n"
  },
  {
    "path": "m4/libfdatetime.m4",
    "content": "dnl Checks for libfdatetime required headers and functions\ndnl\ndnl Version: 20240518\n\ndnl Function to detect if libfdatetime is available\ndnl ac_libfdatetime_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments\nAC_DEFUN([AX_LIBFDATETIME_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_libfdatetime\" = xno],\n    [ac_cv_libfdatetime=no],\n    [ac_cv_libfdatetime=check\n    dnl Check if the directory provided as parameter exists\n    dnl For both --with-libfdatetime which returns \"yes\" and --with-libfdatetime= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_libfdatetime\" != x && test \"x$ac_cv_with_libfdatetime\" != xauto-detect && test \"x$ac_cv_with_libfdatetime\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([libfdatetime])],\n      [dnl Check for a pkg-config file\n      AS_IF(\n        [test \"x$cross_compiling\" != \"xyes\" && test \"x$PKGCONFIG\" != \"x\"],\n        [PKG_CHECK_MODULES(\n          [libfdatetime],\n          [libfdatetime >= 20180910],\n          [ac_cv_libfdatetime=yes],\n          [ac_cv_libfdatetime=check])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libfdatetime\" = xyes],\n        [ac_cv_libfdatetime_CPPFLAGS=\"$pkg_cv_libfdatetime_CFLAGS\"\n        ac_cv_libfdatetime_LIBADD=\"$pkg_cv_libfdatetime_LIBS\"])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_libfdatetime\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([libfdatetime.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_libfdatetime_h\" = xno],\n        [ac_cv_libfdatetime=no],\n        [ac_cv_libfdatetime=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [libfdatetime],\n          [fdatetime],\n          [[libfdatetime_get_version],\n           [libfdatetime_fat_date_time_initialize],\n           [libfdatetime_fat_date_time_free],\n           [libfdatetime_fat_date_time_copy_from_byte_stream],\n           [libfdatetime_fat_date_time_copy_from_32bit],\n           [libfdatetime_fat_date_time_copy_to_32bit],\n           [libfdatetime_fat_date_time_copy_to_utf8_string],\n           [libfdatetime_fat_date_time_copy_to_utf8_string_with_index],\n           [libfdatetime_fat_date_time_copy_to_utf16_string],\n           [libfdatetime_fat_date_time_copy_to_utf16_string_with_index],\n           [libfdatetime_fat_date_time_copy_to_utf32_string],\n           [libfdatetime_fat_date_time_copy_to_utf32_string_with_index],\n           [libfdatetime_filetime_initialize],\n           [libfdatetime_filetime_free],\n           [libfdatetime_filetime_copy_from_byte_stream],\n           [libfdatetime_filetime_copy_from_64bit],\n           [libfdatetime_filetime_copy_to_64bit],\n           [libfdatetime_filetime_copy_to_utf8_string],\n           [libfdatetime_filetime_copy_to_utf8_string_with_index],\n           [libfdatetime_filetime_copy_to_utf16_string],\n           [libfdatetime_filetime_copy_to_utf16_string_with_index],\n           [libfdatetime_filetime_copy_to_utf32_string],\n           [libfdatetime_filetime_copy_to_utf32_string_with_index],\n           [libfdatetime_filetime_add],\n           [libfdatetime_floatingtime_initialize],\n           [libfdatetime_floatingtime_free],\n           [libfdatetime_floatingtime_copy_from_byte_stream],\n           [libfdatetime_floatingtime_copy_from_64bit],\n           [libfdatetime_floatingtime_copy_to_64bit],\n           [libfdatetime_floatingtime_copy_to_utf8_string],\n           [libfdatetime_floatingtime_copy_to_utf8_string_with_index],\n           [libfdatetime_floatingtime_copy_to_utf16_string],\n           [libfdatetime_floatingtime_copy_to_utf16_string_with_index],\n           [libfdatetime_floatingtime_copy_to_utf32_string],\n           [libfdatetime_floatingtime_copy_to_utf32_string_with_index],\n           [libfdatetime_hfs_time_initialize],\n           [libfdatetime_hfs_time_free],\n           [libfdatetime_hfs_time_copy_from_byte_stream],\n           [libfdatetime_hfs_time_copy_from_32bit],\n           [libfdatetime_hfs_time_copy_to_32bit],\n           [libfdatetime_hfs_time_copy_to_utf8_string],\n           [libfdatetime_hfs_time_copy_to_utf8_string_with_index],\n           [libfdatetime_hfs_time_copy_to_utf16_string],\n           [libfdatetime_hfs_time_copy_to_utf16_string_with_index],\n           [libfdatetime_hfs_time_copy_to_utf32_string],\n           [libfdatetime_hfs_time_copy_to_utf32_string_with_index],\n           [libfdatetime_nsf_timedate_initialize],\n           [libfdatetime_nsf_timedate_free],\n           [libfdatetime_nsf_timedate_copy_from_byte_stream],\n           [libfdatetime_nsf_timedate_copy_from_64bit],\n           [libfdatetime_nsf_timedate_copy_to_64bit],\n           [libfdatetime_nsf_timedate_copy_to_utf8_string],\n           [libfdatetime_nsf_timedate_copy_to_utf8_string_with_index],\n           [libfdatetime_nsf_timedate_copy_to_utf16_string],\n           [libfdatetime_nsf_timedate_copy_to_utf16_string_with_index],\n           [libfdatetime_nsf_timedate_copy_to_utf32_string],\n           [libfdatetime_nsf_timedate_copy_to_utf32_string_with_index],\n           [libfdatetime_posix_time_initialize],\n           [libfdatetime_posix_time_free],\n           [libfdatetime_posix_time_copy_from_byte_stream],\n           [libfdatetime_posix_time_copy_from_32bit],\n           [libfdatetime_posix_time_copy_to_32bit],\n           [libfdatetime_posix_time_copy_from_64bit],\n           [libfdatetime_posix_time_copy_to_64bit],\n           [libfdatetime_posix_time_copy_to_utf8_string],\n           [libfdatetime_posix_time_copy_to_utf8_string_with_index],\n           [libfdatetime_posix_time_copy_to_utf16_string],\n           [libfdatetime_posix_time_copy_to_utf16_string_with_index],\n           [libfdatetime_posix_time_copy_to_utf32_string],\n           [libfdatetime_posix_time_copy_to_utf32_string_with_index],\n           [libfdatetime_systemetime_initialize],\n           [libfdatetime_systemetime_free],\n           [libfdatetime_systemetime_copy_from_byte_stream],\n           [libfdatetime_systemetime_copy_to_utf8_string],\n           [libfdatetime_systemetime_copy_to_utf8_string_with_index],\n           [libfdatetime_systemetime_copy_to_utf16_string],\n           [libfdatetime_systemetime_copy_to_utf16_string_with_index],\n           [libfdatetime_systemetime_copy_to_utf32_string],\n           [libfdatetime_systemetime_copy_to_utf32_string_with_index]])\n\n        ac_cv_libfdatetime_LIBADD=\"-lfdatetime\"])\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([libfdatetime])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfdatetime\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LIBFDATETIME],\n      [1],\n      [Define to 1 if you have the `fdatetime' library (-lfdatetime).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfdatetime\" = xyes],\n    [AC_SUBST(\n      [HAVE_LIBFDATETIME],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_LIBFDATETIME],\n      [0])\n    ])\n  ])\n\ndnl Function to detect if libfdatetime dependencies are available\nAC_DEFUN([AX_LIBFDATETIME_CHECK_LOCAL],\n  [dnl No additional checks.\n\n  ac_cv_libfdatetime_CPPFLAGS=\"-I../libfdatetime -I\\$(top_srcdir)/libfdatetime\";\n  ac_cv_libfdatetime_LIBADD=\"../libfdatetime/libfdatetime.la\";\n\n  ac_cv_libfdatetime=local\n  ])\n\ndnl Function to detect how to enable libfdatetime\nAC_DEFUN([AX_LIBFDATETIME_CHECK_ENABLE],\n  [AX_COMMON_ARG_WITH(\n    [libfdatetime],\n    [libfdatetime],\n    [search for libfdatetime in includedir and libdir or in the specified DIR, or no if to use local version],\n    [auto-detect],\n    [DIR])\n\n  AX_LIBFDATETIME_CHECK_LIB\n\n  dnl Check if the dependencies for the local library version\n  AS_IF(\n    [test \"x$ac_cv_libfdatetime\" != xyes],\n    [AX_LIBFDATETIME_CHECK_LOCAL\n\n    AC_DEFINE(\n      [HAVE_LOCAL_LIBFDATETIME],\n      [1],\n      [Define to 1 if the local version of libfdatetime is used.])\n    AC_SUBST(\n      [HAVE_LOCAL_LIBFDATETIME],\n      [1])\n    ])\n\n  AM_CONDITIONAL(\n    [HAVE_LOCAL_LIBFDATETIME],\n    [test \"x$ac_cv_libfdatetime\" = xlocal])\n  AS_IF(\n    [test \"x$ac_cv_libfdatetime_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [LIBFDATETIME_CPPFLAGS],\n      [$ac_cv_libfdatetime_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_libfdatetime_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [LIBFDATETIME_LIBADD],\n      [$ac_cv_libfdatetime_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfdatetime\" = xyes],\n    [AC_SUBST(\n      [ax_libfdatetime_pc_libs_private],\n      [-lfdatetime])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfdatetime\" = xyes],\n    [AC_SUBST(\n      [ax_libfdatetime_spec_requires],\n      [libfdatetime])\n    AC_SUBST(\n      [ax_libfdatetime_spec_build_requires],\n      [libfdatetime-devel])\n    ])\n  ])\n\n"
  },
  {
    "path": "m4/libfguid.m4",
    "content": "dnl Checks for libfguid required headers and functions\ndnl\ndnl Version: 20240519\n\ndnl Function to detect if libfguid is available\ndnl ac_libfguid_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments\nAC_DEFUN([AX_LIBFGUID_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_libfguid\" = xno],\n    [ac_cv_libfguid=no],\n    [ac_cv_libfguid=check\n    dnl Check if the directory provided as parameter exists\n    dnl For both --with-libfguid which returns \"yes\" and --with-libfguid= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_libfguid\" != x && test \"x$ac_cv_with_libfguid\" != xauto-detect && test \"x$ac_cv_with_libfguid\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([libfguid])],\n      [dnl Check for a pkg-config file\n      AS_IF(\n        [test \"x$cross_compiling\" != \"xyes\" && test \"x$PKGCONFIG\" != \"x\"],\n        [PKG_CHECK_MODULES(\n          [libfguid],\n          [libfguid >= 20120426],\n          [ac_cv_libfguid=yes],\n          [ac_cv_libfguid=check])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libfguid\" = xyes],\n        [ac_cv_libfguid_CPPFLAGS=\"$pkg_cv_libfguid_CFLAGS\"\n        ac_cv_libfguid_LIBADD=\"$pkg_cv_libfguid_LIBS\"])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_libfguid\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([libfguid.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_libfguid_h\" = xno],\n        [ac_cv_libfguid=no],\n        [ac_cv_libfguid=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [libfguid],\n          [fguid],\n          [[libfguid_get_version],\n           [libfguid_identifier_initialize],\n           [libfguid_identifier_free],\n           [libfguid_identifier_copy_from_byte_stream],\n           [libfguid_identifier_get_string_size],\n           [libfguid_identifier_copy_to_utf8_string],\n           [libfguid_identifier_copy_to_utf8_string_with_index],\n           [libfguid_identifier_copy_to_utf16_string],\n           [libfguid_identifier_copy_to_utf16_string_with_index],\n           [libfguid_identifier_copy_to_utf32_string],\n           [libfguid_identifier_copy_to_utf32_string_with_index]])\n\n        ac_cv_libfguid_LIBADD=\"-lfguid\"])\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([libfguid])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfguid\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LIBFGUID],\n      [1],\n      [Define to 1 if you have the `fguid' library (-lfguid).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfguid\" = xyes],\n    [AC_SUBST(\n      [HAVE_LIBFGUID],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_LIBFGUID],\n      [0])\n    ])\n  ])\n\ndnl Function to detect if libfguid dependencies are available\nAC_DEFUN([AX_LIBFGUID_CHECK_LOCAL],\n  [dnl No additional checks.\n\n  ac_cv_libfguid_CPPFLAGS=\"-I../libfguid -I\\$(top_srcdir)/libfguid\";\n  ac_cv_libfguid_LIBADD=\"../libfguid/libfguid.la\";\n\n  ac_cv_libfguid=local\n  ])\n\n\ndnl Function to detect how to enable libfguid\nAC_DEFUN([AX_LIBFGUID_CHECK_ENABLE],\n  [AX_COMMON_ARG_WITH(\n    [libfguid],\n    [libfguid],\n    [search for libfguid in includedir and libdir or in the specified DIR, or no if to use local version],\n    [auto-detect],\n    [DIR])\n\n  dnl Check for a shared library version\n  AX_LIBFGUID_CHECK_LIB\n\n  dnl Check if the dependencies for the local library version\n  AS_IF(\n    [test \"x$ac_cv_libfguid\" != xyes],\n    [AX_LIBFGUID_CHECK_LOCAL\n\n    AC_DEFINE(\n      [HAVE_LOCAL_LIBFGUID],\n      [1],\n      [Define to 1 if the local version of libfguid is used.])\n    AC_SUBST(\n      [HAVE_LOCAL_LIBFGUID],\n      [1])\n    ])\n\n  AM_CONDITIONAL(\n    [HAVE_LOCAL_LIBFGUID],\n    [test \"x$ac_cv_libfguid\" = xlocal])\n  AS_IF(\n    [test \"x$ac_cv_libfguid_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [LIBFGUID_CPPFLAGS],\n      [$ac_cv_libfguid_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_libfguid_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [LIBFGUID_LIBADD],\n      [$ac_cv_libfguid_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfguid\" = xyes],\n    [AC_SUBST(\n      [ax_libfguid_pc_libs_private],\n      [-lfguid])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfguid\" = xyes],\n    [AC_SUBST(\n      [ax_libfguid_spec_requires],\n      [libfguid])\n    AC_SUBST(\n      [ax_libfguid_spec_build_requires],\n      [libfguid-devel])\n    ])\n  ])\n\n"
  },
  {
    "path": "m4/libfusn.m4",
    "content": "dnl Checks for libfusn required headers and functions\ndnl\ndnl Version: 20240521\n\ndnl Function to detect if libfusn is available\ndnl ac_libfusn_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments\nAC_DEFUN([AX_LIBFUSN_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_libfusn\" = xno],\n    [ac_cv_libfusn=no],\n    [ac_cv_libfusn=check\n    dnl Check if the directory provided as parameter exists\n    dnl For both --with-libfusn which returns \"yes\" and --with-libfusn= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_libfusn\" != x && test \"x$ac_cv_with_libfusn\" != xauto-detect && test \"x$ac_cv_with_libfusn\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([libfusn])],\n      [dnl Check for a pkg-config file\n      AS_IF(\n        [test \"x$cross_compiling\" != \"xyes\" && test \"x$PKGCONFIG\" != \"x\"],\n        [PKG_CHECK_MODULES(\n          [libfusn],\n          [libfusn >= 20180611],\n          [ac_cv_libfusn=yes],\n          [ac_cv_libfusn=check])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libfusn\" = xyes],\n        [ac_cv_libfusn_CPPFLAGS=\"$pkg_cv_libfusn_CFLAGS\"\n        ac_cv_libfusn_LIBADD=\"$pkg_cv_libfusn_LIBS\"])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_libfusn\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([libfusn.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_libfusn_h\" = xno],\n        [ac_cv_libfusn=no],\n        [ac_cv_libfusn=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [libfusn],\n          [fusn],\n          [[libfusn_get_version],\n           [libfusn_record_initialize],\n           [libfusn_record_free],\n           [libfusn_record_copy_from_byte_stream],\n           [libfusn_record_get_size],\n           [libfusn_record_get_update_time],\n           [libfusn_record_get_file_reference],\n           [libfusn_record_get_parent_file_reference],\n           [libfusn_record_get_update_sequence_number],\n           [libfusn_record_get_update_reason_flags],\n           [libfusn_record_get_update_source_flags],\n           [libfusn_record_get_file_attribute_flags],\n           [libfusn_record_get_utf8_name_size],\n           [libfusn_record_get_utf8_name],\n           [libfusn_record_get_utf16_name_size],\n           [libfusn_record_get_utf16_name]])\n\n        ac_cv_libfusn_LIBADD=\"-lfusn\"])\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([libfusn])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfusn\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LIBFUSN],\n      [1],\n      [Define to 1 if you have the `fusn' library (-lfusn).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfusn\" = xyes],\n    [AC_SUBST(\n      [HAVE_LIBFUSN],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_LIBFUSN],\n      [0])\n    ])\n  ])\n\ndnl Function to detect if libfusn dependencies are available\nAC_DEFUN([AX_LIBFUSN_CHECK_LOCAL],\n  [dnl No additional checks.\n\n  ac_cv_libfusn_CPPFLAGS=\"-I../libfusn -I\\$(top_srcdir)/libfusn\";\n  ac_cv_libfusn_LIBADD=\"../libfusn/libfusn.la\";\n\n  ac_cv_libfusn=local\n  ])\n\ndnl Function to detect how to enable libfusn\nAC_DEFUN([AX_LIBFUSN_CHECK_ENABLE],\n  [AX_COMMON_ARG_WITH(\n    [libfusn],\n    [libfusn],\n    [search for libfusn in includedir and libdir or in the specified DIR, or no if to use local version],\n    [auto-detect],\n    [DIR])\n\n  dnl Check for a shared library version\n  AX_LIBFUSN_CHECK_LIB\n\n  dnl Check if the dependencies for the local library version\n  AS_IF(\n    [test \"x$ac_cv_libfusn\" != xyes],\n    [AX_LIBFUSN_CHECK_LOCAL\n\n    AC_DEFINE(\n      [HAVE_LOCAL_LIBFUSN],\n      [1],\n      [Define to 1 if the local version of libfusn is used.])\n    AC_SUBST(\n      [HAVE_LOCAL_LIBFUSN],\n      [1])\n    ])\n\n  AM_CONDITIONAL(\n    [HAVE_LOCAL_LIBFUSN],\n    [test \"x$ac_cv_libfusn\" = xlocal])\n  AS_IF(\n    [test \"x$ac_cv_libfusn_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [LIBFUSN_CPPFLAGS],\n      [$ac_cv_libfusn_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_libfusn_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [LIBFUSN_LIBADD],\n      [$ac_cv_libfusn_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfusn\" = xyes],\n    [AC_SUBST(\n      [ax_libfusn_pc_libs_private],\n      [-lfusn])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfusn\" = xyes],\n    [AC_SUBST(\n      [ax_libfusn_spec_requires],\n      [libfusn])\n    AC_SUBST(\n      [ax_libfusn_spec_build_requires],\n      [libfusn-devel])\n    ])\n  ])\n\n"
  },
  {
    "path": "m4/libfwnt.m4",
    "content": "dnl Checks for libfwnt required headers and functions\ndnl\ndnl Version: 20240519\n\ndnl Function to detect if libfwnt is available\ndnl ac_libfwnt_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments\nAC_DEFUN([AX_LIBFWNT_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_libfwnt\" = xno],\n    [ac_cv_libfwnt=no],\n    [ac_cv_libfwnt=check\n    dnl Check if the directory provided as parameter exists\n    dnl For both --with-libfwnt which returns \"yes\" and --with-libfwnt= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_libfwnt\" != x && test \"x$ac_cv_with_libfwnt\" != xauto-detect && test \"x$ac_cv_with_libfwnt\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([libfwnt])],\n      [dnl Check for a pkg-config file\n      AS_IF(\n        [test \"x$cross_compiling\" != \"xyes\" && test \"x$PKGCONFIG\" != \"x\"],\n        [PKG_CHECK_MODULES(\n          [libfwnt],\n          [libfwnt >= 20191217],\n          [ac_cv_libfwnt=yes],\n          [ac_cv_libfwnt=check])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libfwnt\" = xyes],\n        [ac_cv_libfwnt_CPPFLAGS=\"$pkg_cv_libfwnt_CFLAGS\"\n        ac_cv_libfwnt_LIBADD=\"$pkg_cv_libfwnt_LIBS\"])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_libfwnt\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([libfwnt.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_libfwnt_h\" = xno],\n        [ac_cv_libfwnt=no],\n        [ac_cv_libfwnt=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [libfwnt],\n          [fwnt],\n          [[libfwnt_get_version],\n           [libfwnt_array_initialize],\n           [libfwnt_security_descriptor_initialize],\n           [libfwnt_security_descriptor_free],\n           [libfwnt_security_descriptor_copy_from_byte_stream],\n           [libfwnt_security_descriptor_get_owner],\n           [libfwnt_security_descriptor_get_group],\n           [libfwnt_security_descriptor_get_discretionary_acl],\n           [libfwnt_security_descriptor_get_system_acl],\n           [libfwnt_security_identifier_initialize],\n           [libfwnt_security_identifier_free],\n           [libfwnt_security_identifier_copy_from_byte_stream],\n           [libfwnt_security_identifier_get_string_size],\n           [libfwnt_security_identifier_copy_to_utf8_string],\n           [libfwnt_security_identifier_copy_to_utf8_string_with_index],\n           [libfwnt_security_identifier_copy_to_utf16_string],\n           [libfwnt_security_identifier_copy_to_utf16_string_with_index],\n           [libfwnt_security_identifier_copy_to_utf32_string],\n           [libfwnt_security_identifier_copy_to_utf32_string_with_index],\n           [libfwnt_access_control_list_free],\n           [libfwnt_access_control_list_get_number_of_entries],\n           [libfwnt_access_control_list_get_entry_by_index],\n           [libfwnt_access_control_entry_free],\n           [libfwnt_access_control_entry_get_type],\n           [libfwnt_access_control_entry_get_flags],\n           [libfwnt_access_control_entry_get_access_mask],\n           [libfwnt_access_control_entry_get_security_identifier],\n           [libfwnt_lznt1_decompress],\n           [libfwnt_lzx_decompress],\n           [libfwnt_lzxpress_decompress],\n           [libfwnt_lzxpress_huffman_decompress]])\n\n        ac_cv_libfwnt_LIBADD=\"-lfwnt\"])\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([libfwnt])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfwnt\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LIBFWNT],\n      [1],\n      [Define to 1 if you have the `fwnt' library (-lfwnt).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfwnt\" = xyes],\n    [AC_SUBST(\n      [HAVE_LIBFWNT],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_LIBFWNT],\n      [0])\n    ])\n  ])\n\ndnl Function to detect if libfwnt dependencies are available\nAC_DEFUN([AX_LIBFWNT_CHECK_LOCAL],\n  [dnl No additional checks.\n\n  ac_cv_libfwnt_CPPFLAGS=\"-I../libfwnt -I\\$(top_srcdir)/libfwnt\";\n  ac_cv_libfwnt_LIBADD=\"../libfwnt/libfwnt.la\";\n\n  ac_cv_libfwnt=local\n  ])\n\ndnl Function to detect how to enable libfwnt\nAC_DEFUN([AX_LIBFWNT_CHECK_ENABLE],\n  [AX_COMMON_ARG_WITH(\n    [libfwnt],\n    [libfwnt],\n    [search for libfwnt in includedir and libdir or in the specified DIR, or no if to use local version],\n    [auto-detect],\n    [DIR])\n\n  dnl Check for a shared library version\n  AX_LIBFWNT_CHECK_LIB\n\n  dnl Check if the dependencies for the local library version\n  AS_IF(\n    [test \"x$ac_cv_libfwnt\" != xyes],\n    [AX_LIBFWNT_CHECK_LOCAL\n\n    AC_DEFINE(\n      [HAVE_LOCAL_LIBFWNT],\n      [1],\n      [Define to 1 if the local version of libfwnt is used.])\n    AC_SUBST(\n      [HAVE_LOCAL_LIBFWNT],\n      [1])\n    ])\n\n  AM_CONDITIONAL(\n    [HAVE_LOCAL_LIBFWNT],\n    [test \"x$ac_cv_libfwnt\" = xlocal])\n  AS_IF(\n    [test \"x$ac_cv_libfwnt_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [LIBFWNT_CPPFLAGS],\n      [$ac_cv_libfwnt_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_libfwnt_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [LIBFWNT_LIBADD],\n      [$ac_cv_libfwnt_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfwnt\" = xyes],\n    [AC_SUBST(\n      [ax_libfwnt_pc_libs_private],\n      [-lfwnt])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libfwnt\" = xyes],\n    [AC_SUBST(\n      [ax_libfwnt_spec_requires],\n      [libfwnt])\n    AC_SUBST(\n      [ax_libfwnt_spec_build_requires],\n      [libfwnt-devel])\n    ])\n  ])\n\n"
  },
  {
    "path": "m4/libuna.m4",
    "content": "dnl Checks for libuna or required headers and functions\ndnl\ndnl Version: 20240513\n\ndnl Function to detect if libuna is available\ndnl ac_libuna_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments\nAC_DEFUN([AX_LIBUNA_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_libuna\" = xno],\n    [ac_cv_libuna=no],\n    [ac_cv_libuna=check\n    dnl Check if the directory provided as parameter exists\n    dnl For both --with-libuna which returns \"yes\" and --with-libuna= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_libuna\" != x && test \"x$ac_cv_with_libuna\" != xauto-detect && test \"x$ac_cv_with_libuna\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([libuna])],\n      [dnl Check for a pkg-config file\n      AS_IF(\n        [test \"x$cross_compiling\" != \"xyes\" && test \"x$PKGCONFIG\" != \"x\"],\n        [PKG_CHECK_MODULES(\n          [libuna],\n          [libuna >= 20230702],\n          [ac_cv_libuna=yes],\n          [ac_cv_libuna=check])\n        ])\n      AS_IF(\n        [test \"x$ac_cv_libuna\" = xyes],\n        [ac_cv_libuna_CPPFLAGS=\"$pkg_cv_libuna_CFLAGS\"\n        ac_cv_libuna_LIBADD=\"$pkg_cv_libuna_LIBS\"])\n      ])\n\n    AS_IF(\n      [test \"x$ac_cv_libuna\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([libuna.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_libuna_h\" = xno],\n        [ac_cv_libuna=no],\n        [ac_cv_libuna=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [libuna],\n          [una],\n          [[libuna_get_version],\n           [libuna_base16_stream_size_to_byte_stream],\n           [libuna_base16_stream_copy_to_byte_stream],\n           [libuna_base16_stream_size_from_byte_stream],\n           [libuna_base16_stream_copy_from_byte_stream],\n           [libuna_base16_stream_with_index_copy_from_byte_stream],\n           [libuna_base32_quintuplet_copy_from_base32_stream],\n           [libuna_base32_quintuplet_copy_to_base32_stream],\n           [libuna_base32_quintuplet_copy_from_byte_stream],\n           [libuna_base32_quintuplet_copy_to_byte_stream],\n           [libuna_base32_stream_size_to_byte_stream],\n           [libuna_base32_stream_copy_to_byte_stream],\n           [libuna_base32_stream_size_from_byte_stream],\n           [libuna_base32_stream_copy_from_byte_stream],\n           [libuna_base32_stream_with_index_copy_from_byte_stream],\n           [libuna_base64_triplet_copy_from_base64_stream],\n           [libuna_base64_triplet_copy_to_base64_stream],\n           [libuna_base64_triplet_copy_from_byte_stream],\n           [libuna_base64_triplet_copy_to_byte_stream],\n           [libuna_base64_stream_size_to_byte_stream],\n           [libuna_base64_stream_copy_to_byte_stream],\n           [libuna_base64_stream_size_from_byte_stream],\n           [libuna_base64_stream_copy_from_byte_stream],\n           [libuna_base64_stream_with_index_copy_from_byte_stream],\n           [libuna_byte_stream_size_from_utf8],\n           [libuna_byte_stream_copy_from_utf8],\n           [libuna_byte_stream_size_from_utf16],\n           [libuna_byte_stream_copy_from_utf16],\n           [libuna_byte_stream_size_from_utf32],\n           [libuna_byte_stream_copy_from_utf32],\n           [libuna_unicode_character_size_to_byte_stream],\n           [libuna_unicode_character_copy_from_byte_stream],\n           [libuna_unicode_character_copy_to_byte_stream],\n           [libuna_unicode_character_size_to_ucs2],\n           [libuna_unicode_character_copy_from_ucs2],\n           [libuna_unicode_character_copy_to_ucs2],\n           [libuna_unicode_character_size_to_ucs4],\n           [libuna_unicode_character_copy_from_ucs4],\n           [libuna_unicode_character_copy_to_ucs4],\n           [libuna_unicode_character_copy_from_utf7_stream],\n           [libuna_unicode_character_copy_to_utf7_stream],\n           [libuna_unicode_character_size_to_utf8],\n           [libuna_unicode_character_copy_from_utf8],\n           [libuna_unicode_character_copy_to_utf8],\n           [libuna_unicode_character_size_to_utf8_rfc2279],\n           [libuna_unicode_character_copy_from_utf8_rfc2279],\n           [libuna_unicode_character_copy_to_utf8_rfc2279],\n           [libuna_unicode_character_size_to_utf16],\n           [libuna_unicode_character_copy_from_utf16],\n           [libuna_unicode_character_copy_to_utf16],\n           [libuna_unicode_character_copy_from_utf16_stream],\n           [libuna_unicode_character_copy_to_utf16_stream],\n           [libuna_unicode_character_copy_from_utf32],\n           [libuna_unicode_character_copy_to_utf32],\n           [libuna_unicode_character_copy_from_utf32_stream],\n           [libuna_unicode_character_copy_to_utf32_stream],\n           [libuna_utf8_stream_size_from_utf8],\n           [libuna_utf8_stream_copy_from_utf8],\n           [libuna_utf8_stream_size_from_utf16],\n           [libuna_utf8_stream_copy_from_utf16],\n           [libuna_utf8_stream_size_from_utf32],\n           [libuna_utf8_stream_copy_from_utf32],\n           [libuna_utf16_stream_size_from_utf8],\n           [libuna_utf16_stream_copy_from_utf8],\n           [libuna_utf16_stream_size_from_utf16],\n           [libuna_utf16_stream_copy_from_utf16],\n           [libuna_utf16_stream_size_from_utf32],\n           [libuna_utf16_stream_copy_from_utf32],\n           [libuna_utf32_stream_size_from_utf8],\n           [libuna_utf32_stream_copy_from_utf8],\n           [libuna_utf32_stream_size_from_utf16],\n           [libuna_utf32_stream_copy_from_utf16],\n           [libuna_utf32_stream_size_from_utf32],\n           [libuna_utf32_stream_copy_from_utf32],\n           [libuna_utf8_string_size_from_byte_stream],\n           [libuna_utf8_string_copy_from_byte_stream],\n           [libuna_utf8_string_with_index_copy_from_byte_stream],\n           [libuna_utf8_string_compare_with_byte_stream],\n           [libuna_utf8_string_size_from_utf7_stream],\n           [libuna_utf8_string_copy_from_utf7_stream],\n           [libuna_utf8_string_with_index_copy_from_utf7_stream],\n           [libuna_utf8_string_compare_with_utf7_stream],\n           [libuna_utf8_string_size_from_utf8_stream],\n           [libuna_utf8_string_copy_from_utf8_stream],\n           [libuna_utf8_string_with_index_copy_from_utf8_stream],\n           [libuna_utf8_string_compare_with_utf8_stream],\n           [libuna_utf8_string_size_from_utf16],\n           [libuna_utf8_string_copy_from_utf16],\n           [libuna_utf8_string_with_index_copy_from_utf16],\n           [libuna_utf8_string_compare_with_utf16],\n           [libuna_utf8_string_size_from_utf16_stream],\n           [libuna_utf8_string_copy_from_utf16_stream],\n           [libuna_utf8_string_with_index_copy_from_utf16_stream],\n           [libuna_utf8_string_compare_with_utf16_stream],\n           [libuna_utf8_string_size_from_utf32],\n           [libuna_utf8_string_copy_from_utf32],\n           [libuna_utf8_string_with_index_copy_from_utf32],\n           [libuna_utf8_string_compare_with_utf32],\n           [libuna_utf8_string_size_from_utf32_stream],\n           [libuna_utf8_string_copy_from_utf32_stream],\n           [libuna_utf8_string_with_index_copy_from_utf32_stream],\n           [libuna_utf8_string_compare_with_utf32_stream],\n           [libuna_utf8_string_size_from_scsu_stream],\n           [libuna_utf8_string_copy_from_scsu_stream],\n           [libuna_utf8_string_with_index_copy_from_scsu_stream],\n           [libuna_utf16_string_size_from_byte_stream],\n           [libuna_utf16_string_copy_from_byte_stream],\n           [libuna_utf16_string_with_index_copy_from_byte_stream],\n           [libuna_utf16_string_compare_with_byte_stream],\n           [libuna_utf16_string_size_from_utf7_stream],\n           [libuna_utf16_string_copy_from_utf7_stream],\n           [libuna_utf16_string_with_index_copy_from_utf7_stream],\n           [libuna_utf16_string_compare_with_utf7_stream],\n           [libuna_utf16_string_size_from_utf8],\n           [libuna_utf16_string_copy_from_utf8],\n           [libuna_utf16_string_with_index_copy_from_utf8],\n           [libuna_utf16_string_size_from_utf8_stream],\n           [libuna_utf16_string_copy_from_utf8_stream],\n           [libuna_utf16_string_with_index_copy_from_utf8_stream],\n           [libuna_utf16_string_compare_with_utf8_stream],\n           [libuna_utf16_string_size_from_utf16_stream],\n           [libuna_utf16_string_copy_from_utf16_stream],\n           [libuna_utf16_string_with_index_copy_from_utf16_stream],\n           [libuna_utf16_string_compare_with_utf16_stream],\n           [libuna_utf16_string_size_from_utf32],\n           [libuna_utf16_string_copy_from_utf32],\n           [libuna_utf16_string_with_index_copy_from_utf32],\n           [libuna_utf16_string_compare_with_utf32],\n           [libuna_utf16_string_size_from_utf32_stream],\n           [libuna_utf16_string_copy_from_utf32_stream],\n           [libuna_utf16_string_with_index_copy_from_utf32_stream],\n           [libuna_utf16_string_compare_with_utf32_stream],\n           [libuna_utf16_string_size_from_scsu_stream],\n           [libuna_utf16_string_copy_from_scsu_stream],\n           [libuna_utf16_string_with_index_copy_from_scsu_stream],\n           [libuna_utf32_string_size_from_byte_stream],\n           [libuna_utf32_string_copy_from_byte_stream],\n           [libuna_utf32_string_with_index_copy_from_byte_stream],\n           [libuna_utf32_string_compare_with_byte_stream],\n           [libuna_utf32_string_size_from_utf7_stream],\n           [libuna_utf32_string_copy_from_utf7_stream],\n           [libuna_utf32_string_with_index_copy_from_utf7_stream],\n           [libuna_utf32_string_compare_with_utf7_stream],\n           [libuna_utf32_string_size_from_utf8_stream],\n           [libuna_utf32_string_size_from_utf8],\n           [libuna_utf32_string_copy_from_utf8],\n           [libuna_utf32_string_copy_from_utf8_stream],\n           [libuna_utf32_string_with_index_copy_from_utf8_stream],\n           [libuna_utf32_string_compare_with_utf8_stream],\n           [libuna_utf32_string_size_from_utf16],\n           [libuna_utf32_string_copy_from_utf16],\n           [libuna_utf32_string_with_index_copy_from_utf16],\n           [libuna_utf32_string_size_from_utf16_stream],\n           [libuna_utf32_string_copy_from_utf16_stream],\n           [libuna_utf32_string_with_index_copy_from_utf16_stream],\n           [libuna_utf32_string_compare_with_utf16_stream],\n           [libuna_utf32_string_size_from_utf32_stream],\n           [libuna_utf32_string_copy_from_utf32_stream],\n           [libuna_utf32_string_with_index_copy_from_utf32_stream],\n           [libuna_utf32_string_compare_with_utf32_stream],\n           [libuna_utf32_string_size_from_scsu_stream],\n           [libuna_utf32_string_copy_from_scsu_stream],\n           [libuna_utf32_string_with_index_copy_from_scsu_stream]])\n\n        AX_CHECK_LIB_DEFINITIONS(\n          [libuna],\n          [[LIBUNA_COMPARE_LESS],\n           [LIBUNA_COMPARE_EQUAL],\n           [LIBUNA_COMPARE_GREATER],\n           [LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE]])\n\n        ac_cv_libuna_LIBADD=\"-luna\"])\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([libuna])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libuna\" = xyes],\n    [AC_DEFINE(\n      [HAVE_LIBUNA],\n      [1],\n      [Define to 1 if you have the `una' library (-luna).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libuna\" = xyes],\n    [AC_SUBST(\n      [HAVE_LIBUNA],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_LIBUNA],\n      [0])\n    ])\n  ])\n\ndnl Function to detect if libuna dependencies are available\nAC_DEFUN([AX_LIBUNA_CHECK_LOCAL],\n  [dnl No additional checks.\n\n  ac_cv_libuna_CPPFLAGS=\"-I../libuna -I\\$(top_srcdir)/libuna\";\n  ac_cv_libuna_LIBADD=\"../libuna/libuna.la\";\n\n  ac_cv_libuna=local\n  ])\n\ndnl Function to detect how to enable libuna\nAC_DEFUN([AX_LIBUNA_CHECK_ENABLE],\n  [AX_COMMON_ARG_WITH(\n    [libuna],\n    [libuna],\n    [search for libuna in includedir and libdir or in the specified DIR, or no if to use local version],\n    [auto-detect],\n    [DIR])\n\n  dnl Check for a shared library version\n  AX_LIBUNA_CHECK_LIB\n\n  dnl Check if the dependencies for the local library version\n  AS_IF(\n    [test \"x$ac_cv_libuna\" != xyes],\n    [AX_LIBUNA_CHECK_LOCAL\n\n    AC_DEFINE(\n      [HAVE_LOCAL_LIBUNA],\n      [1],\n      [Define to 1 if the local version of libuna is used.])\n    AC_SUBST(\n      [HAVE_LOCAL_LIBUNA],\n      [1])\n    ])\n\n  AM_CONDITIONAL(\n    [HAVE_LOCAL_LIBUNA],\n    [test \"x$ac_cv_libuna\" = xlocal])\n  AS_IF(\n    [test \"x$ac_cv_libuna_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [LIBUNA_CPPFLAGS],\n      [$ac_cv_libuna_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_libuna_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [LIBUNA_LIBADD],\n      [$ac_cv_libuna_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libuna\" = xyes],\n    [AC_SUBST(\n      [ax_libuna_pc_libs_private],\n      [-luna])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_libuna\" = xyes],\n    [AC_SUBST(\n      [ax_libuna_spec_requires],\n      [libuna])\n    AC_SUBST(\n      [ax_libuna_spec_build_requires],\n      [libuna-devel])\n    ])\n  ])\n\n"
  },
  {
    "path": "m4/pthread.m4",
    "content": "dnl Functions for pthread\ndnl\ndnl Version: 20240513\n\ndnl Function to detect if pthread is available\nAC_DEFUN([AX_PTHREAD_CHECK_LIB],\n  [AS_IF(\n    [test \"x$ac_cv_enable_shared_libs\" = xno || test \"x$ac_cv_with_pthread\" = xno],\n    [ac_cv_pthread=no],\n    [ac_cv_pthread=check\n    dnl Check if parameters were provided\n    dnl For both --with-pthread which returns \"yes\" and --with-pthread= which returns \"\"\n    dnl treat them as auto-detection.\n    AS_IF(\n      [test \"x$ac_cv_with_pthread\" != x && test \"x$ac_cv_with_pthread\" != xauto-detect && test \"x$ac_cv_with_pthread\" != xyes],\n      [AX_CHECK_LIB_DIRECTORY_EXISTS([pthread])])\n    ])\n\n    AS_IF(\n      [test \"x$ac_cv_pthread\" = xcheck],\n      [dnl Check for headers\n      AC_CHECK_HEADERS([pthread.h])\n\n      AS_IF(\n        [test \"x$ac_cv_header_pthread_h\" = xno],\n        [ac_cv_pthread=no],\n        [ac_cv_pthread=yes\n\n        AX_CHECK_LIB_FUNCTIONS(\n          [pthread],\n          [pthread],\n          [[pthread_create],\n          [pthread_exit],\n          [pthread_join],\n          [pthread_cond_init],\n          [pthread_cond_destroy],\n          [pthread_cond_broadcast],\n          [pthread_cond_signal],\n          [pthread_cond_wait],\n          [pthread_mutex_init],\n          [pthread_mutex_destroy],\n          [pthread_mutex_lock],\n          [pthread_mutex_trylock],\n          [pthread_mutex_unlock],\n          [pthread_rwlock_init],\n          [pthread_rwlock_destroy],\n          [pthread_rwlock_rdlock],\n          [pthread_rwlock_wrlock],\n          [pthread_rwlock_unlock]])\n\n        ac_cv_pthread_LIBADD=\"-lpthread\"\n      ])\n\n    AX_CHECK_LIB_DIRECTORY_MSG_ON_FAILURE([pthread])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_pthread\" = xpthread],\n    [AC_DEFINE(\n      [HAVE_PTHREAD],\n      [1],\n      [Define to 1 if you have the 'pthread' library (-lpthread).])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_pthread\" != xno],\n    [AC_SUBST(\n      [HAVE_PTHREAD],\n      [1]) ],\n    [AC_SUBST(\n      [HAVE_PTHREAD],\n      [0])\n    ])\n  ])\n\ndnl Function to detect how to enable pthread\nAC_DEFUN([AX_PTHREAD_CHECK_ENABLE],\n  [AX_COMMON_ARG_WITH(\n    [pthread],\n    [pthread],\n    [search for pthread in includedir and libdir or in the specified DIR, or no if not to use pthread],\n    [auto-detect],\n    [DIR])\n\n  dnl Check for a shared library version\n  AX_PTHREAD_CHECK_LIB\n\n  AS_IF(\n    [test \"x$ac_cv_pthread_CPPFLAGS\" != \"x\"],\n    [AC_SUBST(\n      [PTHREAD_CPPFLAGS],\n      [$ac_cv_pthread_CPPFLAGS])\n    ])\n  AS_IF(\n    [test \"x$ac_cv_pthread_LIBADD\" != \"x\"],\n    [AC_SUBST(\n      [PTHREAD_LIBADD],\n      [$ac_cv_pthread_LIBADD])\n    ])\n\n  AS_IF(\n    [test \"x$ac_cv_pthread\" = xpthread],\n    [AC_SUBST(\n      [ax_pthread_pc_libs_private],\n      [-lpthread])\n    ])\n  ])\n\n"
  },
  {
    "path": "m4/tests.m4",
    "content": "dnl Functions for testing\ndnl\ndnl Version: 20200712\n\ndnl Function to detect if tests dependencies are available\nAC_DEFUN([AX_TESTS_CHECK_LOCAL],\n  [AC_CHECK_HEADERS([dlfcn.h])\n\n  AC_CHECK_FUNCS([fmemopen getopt mkstemp setenv tzset unlink])\n\n  AC_CHECK_LIB(\n    dl,\n    dlsym)\n\n  AS_IF(\n    [test \"x$lt_cv_prog_gnu_ld\" = xyes && test \"x$ac_cv_lib_dl_dlsym\" = xyes],\n    [AC_DEFINE(\n      [HAVE_GNU_DL_DLSYM],\n      [1],\n      [Define to 1 if dlsym function is available in GNU dl.])\n  ])\n])\n\ndnl Function to detect if OSS-Fuzz build environment is available\nAC_DEFUN([AX_TESTS_CHECK_OSSFUZZ],\n  [AM_CONDITIONAL(\n    HAVE_LIB_FUZZING_ENGINE,\n    [test \"x${LIB_FUZZING_ENGINE}\" != x])\n  AC_SUBST(\n    [LIB_FUZZING_ENGINE],\n    [\"${LIB_FUZZING_ENGINE}\"])\n])\n\n"
  },
  {
    "path": "m4/types.m4",
    "content": "dnl Functions for type definitions\ndnl\ndnl Version: 20180727\n\ndnl Function to detect if type definitions are available\nAC_DEFUN([AX_TYPES_CHECK_LOCAL],\n [AS_IF(\n  [test \"x$ac_cv_enable_winapi\" = xyes],\n  [ac_cv_enable_wide_character_type=yes])\n\n AS_IF(\n  [test \"x$ac_cv_enable_wide_character_type\" = xyes],\n  [AC_DEFINE(\n   [HAVE_WIDE_CHARACTER_TYPE],\n   [1],\n   [Define to 1 if wide character type should be used.])\n  AC_SUBST(\n   [HAVE_WIDE_CHARACTER_TYPE],\n   [1]) ],\n  [AC_SUBST(\n   [HAVE_WIDE_CHARACTER_TYPE],\n   [0])\n  ])\n\n AC_CHECK_HEADERS([sys/types.h inttypes.h stdint.h wchar.h])\n\n AS_IF(\n  [test \"x$ac_cv_header_sys_types_h\" = xyes],\n  [AC_SUBST(\n   [HAVE_SYS_TYPES_H],\n   [1])],\n  [AC_SUBST(\n   [HAVE_SYS_TYPES_H],\n   [0])\n  ])\n\n AS_IF(\n  [test \"x$ac_cv_header_inttypes_h\" = xyes],\n  [AC_SUBST(\n   [HAVE_INTTYPES_H],\n   [1])],\n  [AC_SUBST(\n   [HAVE_INTTYPES_H],\n   [0])\n  ])\n\n AS_IF(\n  [test \"x$ac_cv_header_stdint_h\" = xyes],\n  [AC_SUBST(\n   [HAVE_STDINT_H],\n   [1])],\n  [AC_SUBST(\n   [HAVE_STDINT_H],\n   [0])\n  ])\n\n AS_IF(\n  [test \"x$ac_cv_header_wchar_h\" = xyes],\n  [AC_SUBST(\n   [HAVE_WCHAR_H],\n   [1]) ],\n  [AC_SUBST(\n   [HAVE_WCHAR_H],\n   [0])\n  ])\n\n AC_TYPE_MODE_T\n AC_TYPE_OFF_T\n AC_TYPE_SIZE_T\n\n AC_CHECK_TYPE(\n  [size32_t],\n  [AC_SUBST(\n   [HAVE_SIZE32_T],\n   [1])],\n  [AC_SUBST(\n   [HAVE_SIZE32_T],\n   [0])\n  ])\n\n AC_CHECK_TYPE(\n  [ssize32_t],\n  [AC_SUBST(\n   [HAVE_SSIZE32_T],\n   [1])],\n  [AC_SUBST(\n   [HAVE_SSIZE32_T],\n   [0])\n  ])\n\n AC_CHECK_TYPE(\n  [size64_t],\n  [AC_SUBST(\n   [HAVE_SIZE64_T],\n   [1])],\n  [AC_SUBST(\n   [HAVE_SIZE64_T],\n   [0])\n  ])\n\n AC_CHECK_TYPE(\n  [ssize64_t],\n  [AC_SUBST(\n   [HAVE_SSIZE64_T],\n   [1])],\n  [AC_SUBST(\n   [HAVE_SSIZE64_T],\n   [0])\n  ])\n\n AC_CHECK_TYPE(\n  [off64_t],\n  [AC_SUBST(\n   [HAVE_OFF64_T],\n   [1])],\n  [AC_SUBST(\n   [HAVE_OFF64_T],\n   [0])\n  ])\n\n AC_CHECK_TYPE([ssize_t])\n AC_CHECK_TYPE([u64])\n\n AC_CHECK_SIZEOF([int])\n AC_CHECK_SIZEOF([long])\n AC_CHECK_SIZEOF([off_t])\n AC_CHECK_SIZEOF([size_t])\n\n AS_IF(\n  [test \"x$ac_cv_header_wchar_h\" = xyes],\n  [AC_CHECK_SIZEOF([wchar_t])])\n ])\n\n"
  },
  {
    "path": "manuals/Makefile.am",
    "content": "man_MANS = \\\n\tfsrefsinfo.1 \\\n\tlibfsrefs.3\n\nEXTRA_DIST = \\\n\tfsrefsinfo.1 \\\n\tlibfsrefs.3\n\nDISTCLEANFILES = \\\n\tMakefile \\\n\tMakefile.in\n\n"
  },
  {
    "path": "manuals/fsrefsinfo.1",
    "content": ".Dd June 28, 2023\n.Dt fsrefsinfo\n.Os libfsrefs\n.Sh NAME\n.Nm fsrefsinfo\n.Nd determines information about a Resiliant File System (ReFS)\n.Sh SYNOPSIS\n.Nm fsrefsinfo\n.Op Fl ahvV\n.Va Ar source\n.Sh DESCRIPTION\n.Nm fsrefsinfo\nis a utility to determine information about a Resiliant File System (ReFS)\n.Pp\n.Nm fsrefsinfo\nis part of the\n.Nm libfsrefs\npackage.\n.Nm libfsrefs\nis a library to access the Resiliant File System (ReFS) format\n.Pp\n.Ar source\nis the source file.\n.Pp\nThe options are as follows:\n.Bl -tag -width Ds\n.It Fl a\nshows allocation information\n.It Fl h\nshows this help\n.It Fl v\nverbose output to stderr\n.It Fl V\nprint version\n.El\n.Sh ENVIRONMENT\nNone\n.Sh FILES\nNone\n.Sh EXAMPLES\n.Bd -literal\n# fsrefsinfo /dev/sda1\nfsrefsinfo 20130915\n\nResiliant File System (ReFS) volume information:\n.Dl        ...\n\n.Ed\n.Sh DIAGNOSTICS\nErrors, verbose and debug output are printed to stderr when verbose output \\-v is enabled.\nVerbose and debug output are only printed when enabled at compilation.\n.Sh BUGS\nPlease report bugs of any kind to <joachim.metz@gmail.com> or on the project website:\nhttps://github.com/libyal/libfsrefs/\n.Sh AUTHOR\nThese man pages were written by Joachim Metz.\n.Sh COPYRIGHT\nCopyright 2012-2013, Joachim Metz <joachim.metz@gmail.com>.\nThis is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n.Sh SEE ALSO\n"
  },
  {
    "path": "manuals/libfsrefs.3",
    "content": ".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 (ReFS) format\n.Sh SYNOPSIS\n.In libfsrefs.h\n.Pp\nSupport functions\n.Ft const char *\n.Fn libfsrefs_get_version \"void\"\n.Ft int\n.Fn libfsrefs_get_access_flags_read \"void\"\n.Ft int\n.Fn libfsrefs_get_codepage \"int *codepage\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_set_codepage \"int codepage\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_check_volume_signature \"const char *filename\" \"libfsrefs_error_t **error\"\n.Pp\nAvailable when compiled with wide character string support:\n.Ft int\n.Fn libfsrefs_check_volume_signature_wide \"const wchar_t *filename\" \"libfsrefs_error_t **error\"\n.Pp\nAvailable when compiled with libbfio support:\n.Ft int\n.Fn libfsrefs_check_volume_signature_file_io_handle \"libbfio_handle_t *file_io_handle\" \"libfsrefs_error_t **error\"\n.Pp\nNotify functions\n.Ft void\n.Fn libfsrefs_notify_set_verbose \"int verbose\"\n.Ft int\n.Fn libfsrefs_notify_set_stream \"FILE *stream\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_notify_stream_open \"const char *filename\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_notify_stream_close \"libfsrefs_error_t **error\"\n.Pp\nError functions\n.Ft void\n.Fn libfsrefs_error_free \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_error_fprint \"libfsrefs_error_t *error\" \"FILE *stream\"\n.Ft int\n.Fn libfsrefs_error_sprint \"libfsrefs_error_t *error\" \"char *string\" \"size_t size\"\n.Ft int\n.Fn libfsrefs_error_backtrace_fprint \"libfsrefs_error_t *error\" \"FILE *stream\"\n.Ft int\n.Fn libfsrefs_error_backtrace_sprint \"libfsrefs_error_t *error\" \"char *string\" \"size_t size\"\n.Pp\nVolume functions\n.Ft int\n.Fn libfsrefs_volume_initialize \"libfsrefs_volume_t **volume\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_volume_free \"libfsrefs_volume_t **volume\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_volume_signal_abort \"libfsrefs_volume_t *volume\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_volume_open \"libfsrefs_volume_t *volume\" \"const char *filename\" \"int access_flags\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_volume_close \"libfsrefs_volume_t *volume\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_volume_get_bytes_per_sector \"libfsrefs_volume_t *volume\" \"uint16_t *bytes_per_sector\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_volume_get_cluster_block_size \"libfsrefs_volume_t *volume\" \"size32_t *cluster_block_size\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_volume_get_utf8_name_size \"libfsrefs_volume_t *volume\" \"size_t *utf8_string_size\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_volume_get_utf8_name \"libfsrefs_volume_t *volume\" \"uint8_t *utf8_string\" \"size_t utf8_string_size\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_volume_get_utf16_name_size \"libfsrefs_volume_t *volume\" \"size_t *utf16_string_size\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_volume_get_utf16_name \"libfsrefs_volume_t *volume\" \"uint16_t *utf16_string\" \"size_t utf16_string_size\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_volume_get_version \"libfsrefs_volume_t *volume\" \"uint8_t *major_version\" \"uint8_t *minor_version\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_volume_get_serial_number \"libfsrefs_volume_t *volume\" \"uint64_t *serial_number\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_volume_get_root_directory \"libfsrefs_volume_t *volume\" \"libfsrefs_file_entry_t **file_entry\" \"libfsrefs_error_t **error\"\n.Pp\nAvailable when compiled with wide character string support:\n.Ft int\n.Fn libfsrefs_volume_open_wide \"libfsrefs_volume_t *volume\" \"const wchar_t *filename\" \"int access_flags\" \"libfsrefs_error_t **error\"\n.Pp\nAvailable when compiled with libbfio support:\n.Ft int\n.Fn libfsrefs_volume_open_file_io_handle \"libfsrefs_volume_t *volume\" \"libbfio_handle_t *file_io_handle\" \"int access_flags\" \"libfsrefs_error_t **error\"\n.Pp\nFile entry functions\n.Ft int\n.Fn libfsrefs_file_entry_free \"libfsrefs_file_entry_t **file_entry\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_file_entry_get_creation_time \"libfsrefs_file_entry_t *file_entry\" \"uint64_t *filetime\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_file_entry_get_modification_time \"libfsrefs_file_entry_t *file_entry\" \"uint64_t *filetime\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_file_entry_get_access_time \"libfsrefs_file_entry_t *file_entry\" \"uint64_t *filetime\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_file_entry_get_entry_modification_time \"libfsrefs_file_entry_t *file_entry\" \"uint64_t *filetime\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_file_entry_get_file_attribute_flags \"libfsrefs_file_entry_t *file_entry\" \"uint32_t *file_attribute_flags\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_file_entry_get_utf8_name_size \"libfsrefs_file_entry_t *file_entry\" \"size_t *utf8_string_size\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_file_entry_get_utf8_name \"libfsrefs_file_entry_t *file_entry\" \"uint8_t *utf8_string\" \"size_t utf8_string_size\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_file_entry_get_utf16_name_size \"libfsrefs_file_entry_t *file_entry\" \"size_t *utf16_string_size\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_file_entry_get_utf16_name \"libfsrefs_file_entry_t *file_entry\" \"uint16_t *utf16_string\" \"size_t utf16_string_size\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_file_entry_get_number_of_sub_file_entries \"libfsrefs_file_entry_t *file_entry\" \"int *number_of_sub_file_entries\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_file_entry_get_sub_file_entry_by_index \"libfsrefs_file_entry_t *file_entry\" \"int sub_file_entry_index\" \"libfsrefs_file_entry_t **sub_file_entry\" \"libfsrefs_error_t **error\"\n.Ft int\n.Fn libfsrefs_file_entry_get_size \"libfsrefs_file_entry_t *file_entry\" \"size64_t *size\" \"libfsrefs_error_t **error\"\n.Sh DESCRIPTION\nThe\n.Fn libfsrefs_get_version\nfunction is used to retrieve the library version.\n.Sh RETURN VALUES\nMost of the functions return NULL or \\-1 on error, dependent on the return type.\nFor the actual return values see \"libfsrefs.h\".\n.Sh ENVIRONMENT\nNone\n.Sh FILES\nNone\n.Sh NOTES\nlibfsrefs can be compiled with wide character support (wchar_t).\n.sp\nTo compile libfsrefs with wide character support use:\n.Ar ./configure --enable-wide-character-type=yes\n or define:\n.Ar _UNICODE\n or\n.Ar UNICODE\n during compilation.\n.sp\n.Ar LIBFSREFS_WIDE_CHARACTER_TYPE\n in libfsrefs/features.h can be used to determine if libfsrefs was compiled with wide character support.\n.Sh BUGS\nPlease report bugs of any kind on the project issue tracker: https://github.com/libyal/libfsrefs/issues\n.Sh AUTHOR\nThese man pages are generated from \"libfsrefs.h\".\n.Sh COPYRIGHT\nCopyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>.\n.sp\nThis is free software; see the source for copying conditions.\nThere is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n.Sh SEE ALSO\nthe libfsrefs.h include file\n"
  },
  {
    "path": "msvscpp/Makefile.am",
    "content": "MSVSCPP_FILES = \\\n\tfsrefs_test_attribute_values/fsrefs_test_attribute_values.vcproj \\\n\tfsrefs_test_block_descriptor/fsrefs_test_block_descriptor.vcproj \\\n\tfsrefs_test_block_reference/fsrefs_test_block_reference.vcproj \\\n\tfsrefs_test_block_tree/fsrefs_test_block_tree.vcproj \\\n\tfsrefs_test_block_tree_node/fsrefs_test_block_tree_node.vcproj \\\n\tfsrefs_test_checkpoint/fsrefs_test_checkpoint.vcproj \\\n\tfsrefs_test_data_run/fsrefs_test_data_run.vcproj \\\n\tfsrefs_test_directory_entry/fsrefs_test_directory_entry.vcproj \\\n\tfsrefs_test_directory_object/fsrefs_test_directory_object.vcproj \\\n\tfsrefs_test_error/fsrefs_test_error.vcproj \\\n\tfsrefs_test_file_entry/fsrefs_test_file_entry.vcproj \\\n\tfsrefs_test_file_system/fsrefs_test_file_system.vcproj \\\n\tfsrefs_test_io_handle/fsrefs_test_io_handle.vcproj \\\n\tfsrefs_test_metadata_block_header/fsrefs_test_metadata_block_header.vcproj \\\n\tfsrefs_test_ministore_node/fsrefs_test_ministore_node.vcproj \\\n\tfsrefs_test_node_header/fsrefs_test_node_header.vcproj \\\n\tfsrefs_test_node_record/fsrefs_test_node_record.vcproj \\\n\tfsrefs_test_notify/fsrefs_test_notify.vcproj \\\n\tfsrefs_test_objects_tree/fsrefs_test_objects_tree.vcproj \\\n\tfsrefs_test_superblock/fsrefs_test_superblock.vcproj \\\n\tfsrefs_test_support/fsrefs_test_support.vcproj \\\n\tfsrefs_test_tools_info_handle/fsrefs_test_tools_info_handle.vcproj \\\n\tfsrefs_test_tools_output/fsrefs_test_tools_output.vcproj \\\n\tfsrefs_test_tools_signal/fsrefs_test_tools_signal.vcproj \\\n\tfsrefs_test_tree_header/fsrefs_test_tree_header.vcproj \\\n\tfsrefs_test_volume/fsrefs_test_volume.vcproj \\\n\tfsrefs_test_volume_header/fsrefs_test_volume_header.vcproj \\\n\tfsrefsinfo/fsrefsinfo.vcproj \\\n\tlibbfio/libbfio.vcproj \\\n\tlibcdata/libcdata.vcproj \\\n\tlibcerror/libcerror.vcproj \\\n\tlibcfile/libcfile.vcproj \\\n\tlibclocale/libclocale.vcproj \\\n\tlibcnotify/libcnotify.vcproj \\\n\tlibcpath/libcpath.vcproj \\\n\tlibcsplit/libcsplit.vcproj \\\n\tlibcthreads/libcthreads.vcproj \\\n\tlibfcache/libfcache.vcproj \\\n\tlibfdata/libfdata.vcproj \\\n\tlibfdatetime/libfdatetime.vcproj \\\n\tlibfguid/libfguid.vcproj \\\n\tlibfsrefs/libfsrefs.vcproj \\\n\tlibfusn/libfusn.vcproj \\\n\tlibfwnt/libfwnt.vcproj \\\n\tlibuna/libuna.vcproj \\\n\tlibfsrefs.sln\n\nEXTRA_DIST = \\\n\t$(MSVSCPP_FILES)\n\nDISTCLEANFILES = \\\n\tMakefile \\\n\tMakefile.in\n\n"
  },
  {
    "path": "msvscpp/fsrefs_test_attribute_values/fsrefs_test_attribute_values.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_attribute_values\"\r\n\tProjectGUID=\"{10303E16-AE3C-4EC5-9058-40A53F9E6D30}\"\r\n\tRootNamespace=\"fsrefs_test_attribute_values\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_attribute_values.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_block_descriptor/fsrefs_test_block_descriptor.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_block_descriptor\"\r\n\tProjectGUID=\"{86FE2A37-6E20-42C5-AD0E-65C894513B1E}\"\r\n\tRootNamespace=\"fsrefs_test_block_descriptor\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_block_descriptor.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_block_reference/fsrefs_test_block_reference.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_block_reference\"\r\n\tProjectGUID=\"{6481EBD4-1CE7-4701-B4B2-BD0733B1892E}\"\r\n\tRootNamespace=\"fsrefs_test_block_reference\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_block_reference.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_block_tree/fsrefs_test_block_tree.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_block_tree\"\r\n\tProjectGUID=\"{FA1B5333-2889-41C8-B936-B123F8B71D53}\"\r\n\tRootNamespace=\"fsrefs_test_block_tree\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_block_tree.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_block_tree_node/fsrefs_test_block_tree_node.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_block_tree_node\"\r\n\tProjectGUID=\"{C68F2739-7E0D-41BC-9126-4F4662B62D2F}\"\r\n\tRootNamespace=\"fsrefs_test_block_tree_node\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_block_tree_node.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_checkpoint/fsrefs_test_checkpoint.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_checkpoint\"\r\n\tProjectGUID=\"{AF13DDD6-36B7-4589-98EF-113557719D40}\"\r\n\tRootNamespace=\"fsrefs_test_checkpoint\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_checkpoint.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_functions.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_functions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libbfio.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_data_run/fsrefs_test_data_run.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_data_run\"\r\n\tProjectGUID=\"{383E86C0-B064-4E96-8C80-D1BA77232B07}\"\r\n\tRootNamespace=\"fsrefs_test_data_run\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_data_run.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_directory_entry/fsrefs_test_directory_entry.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_directory_entry\"\r\n\tProjectGUID=\"{47245AB7-7780-46AF-B1E1-895CDCD70B44}\"\r\n\tRootNamespace=\"fsrefs_test_directory_entry\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_directory_entry.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_directory_object/fsrefs_test_directory_object.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_directory_object\"\r\n\tProjectGUID=\"{77FD568A-E194-4119-84E3-F9B780604DFB}\"\r\n\tRootNamespace=\"fsrefs_test_directory_object\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_directory_object.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_error/fsrefs_test_error.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_error\"\r\n\tProjectGUID=\"{F4A33415-A38B-4FCE-A9C5-C3298AB0DA31}\"\r\n\tRootNamespace=\"fsrefs_test_error\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_error.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_file_entry/fsrefs_test_file_entry.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_file_entry\"\r\n\tProjectGUID=\"{4BDB64CA-2219-4737-B0D9-EEEBCDE526EB}\"\r\n\tRootNamespace=\"fsrefs_test_file_entry\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_file_entry.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_file_system/fsrefs_test_file_system.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_file_system\"\r\n\tProjectGUID=\"{F139F66F-812A-4AE5-9950-DA583DF64F90}\"\r\n\tRootNamespace=\"fsrefs_test_file_system\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_file_system.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_io_handle/fsrefs_test_io_handle.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_io_handle\"\r\n\tProjectGUID=\"{011F4ADF-096E-4B5C-972B-80CA715C06E8}\"\r\n\tRootNamespace=\"fsrefs_test_io_handle\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_io_handle.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_metadata_block_header/fsrefs_test_metadata_block_header.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_metadata_block_header\"\r\n\tProjectGUID=\"{0B7CF568-8154-41C0-85E0-182D0172DF69}\"\r\n\tRootNamespace=\"fsrefs_test_metadata_block_header\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_functions.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_metadata_block_header.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_functions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libbfio.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_ministore_node/fsrefs_test_ministore_node.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_ministore_node\"\r\n\tProjectGUID=\"{ECFEFE5C-4167-45D6-9888-3AEDF151EE6A}\"\r\n\tRootNamespace=\"fsrefs_test_ministore_node\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_functions.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_ministore_node.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_functions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libbfio.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_node_header/fsrefs_test_node_header.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_node_header\"\r\n\tProjectGUID=\"{99CE5562-ED92-4BCA-AECE-69E98C0F6281}\"\r\n\tRootNamespace=\"fsrefs_test_node_header\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_node_header.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_node_record/fsrefs_test_node_record.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_node_record\"\r\n\tProjectGUID=\"{E2913BF9-8251-4905-9C3F-259968A95A08}\"\r\n\tRootNamespace=\"fsrefs_test_node_record\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_node_record.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_notify/fsrefs_test_notify.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_notify\"\r\n\tProjectGUID=\"{C6939822-15BF-4CD9-8DF1-6444B30DF640}\"\r\n\tRootNamespace=\"fsrefs_test_notify\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_notify.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_objects_tree/fsrefs_test_objects_tree.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_objects_tree\"\r\n\tProjectGUID=\"{68271DFE-475D-4987-81D7-AC14C71B6244}\"\r\n\tRootNamespace=\"fsrefs_test_objects_tree\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_objects_tree.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_superblock/fsrefs_test_superblock.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_superblock\"\r\n\tProjectGUID=\"{DFF7AF07-0F74-472D-97FE-BA9A068ABC3F}\"\r\n\tRootNamespace=\"fsrefs_test_superblock\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_functions.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_superblock.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_functions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libbfio.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_support/fsrefs_test_support.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_support\"\r\n\tProjectGUID=\"{3507BFE7-7504-46F9-B33E-038BDC5EC426}\"\r\n\tRootNamespace=\"fsrefs_test_support\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_functions.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_getopt.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_functions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_getopt.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libbfio.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libclocale.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcnotify.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libuna.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_tools_info_handle/fsrefs_test_tools_info_handle.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_tools_info_handle\"\r\n\tProjectGUID=\"{65CDD553-456B-4110-B594-87C12AF39B2B}\"\r\n\tRootNamespace=\"fsrefs_test_tools_info_handle\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\info_handle.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_tools_info_handle.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\info_handle.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_tools_output/fsrefs_test_tools_output.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_tools_output\"\r\n\tProjectGUID=\"{5E36F2A8-F375-4777-8D75-FB2C895FA81A}\"\r\n\tRootNamespace=\"fsrefs_test_tools_output\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_output.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_tools_output.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_output.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_tools_signal/fsrefs_test_tools_signal.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_tools_signal\"\r\n\tProjectGUID=\"{08B474B6-F7FE-4FCB-B598-B8C2F664BD88}\"\r\n\tRootNamespace=\"fsrefs_test_tools_signal\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_signal.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_tools_signal.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_signal.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_tree_header/fsrefs_test_tree_header.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_tree_header\"\r\n\tProjectGUID=\"{AE26AFAA-85F1-45B7-9F9D-EDCA66642C2C}\"\r\n\tRootNamespace=\"fsrefs_test_tree_header\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_tree_header.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_volume/fsrefs_test_volume.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_volume\"\r\n\tProjectGUID=\"{86CEACC5-A5E8-4664-9332-829C13BD3EB0}\"\r\n\tRootNamespace=\"fsrefs_test_volume\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_functions.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_getopt.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_volume.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_functions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_getopt.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libbfio.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libclocale.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcnotify.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libuna.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefs_test_volume_header/fsrefs_test_volume_header.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefs_test_volume_header\"\r\n\tProjectGUID=\"{6703E278-1803-4BAD-A7B2-1C80E7BC4416}\"\r\n\tRootNamespace=\"fsrefs_test_volume_header\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_functions.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_volume_header.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_functions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libbfio.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_macros.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_memory.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\tests\\fsrefs_test_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/fsrefsinfo/fsrefsinfo.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"fsrefsinfo\"\r\n\tProjectGUID=\"{DDF498F3-065E-468C-B3AA-0C538AD45B1E}\"\r\n\tRootNamespace=\"fsrefsinfo\"\r\n\tKeyword=\"Win32Proj\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\tWholeProgramOptimization=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"1\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_IMPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tLinkIncremental=\"1\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tSubSystem=\"1\"\r\n\t\t\t\tOptimizeReferences=\"2\"\r\n\t\t\t\tEnableCOMDATFolding=\"2\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefsinfo.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_getopt.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_output.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_signal.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\info_handle.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_getopt.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_i18n.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_libbfio.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_libclocale.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_libcnotify.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_libfcache.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_libfdata.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_libfdatetime.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_libfguid.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_libfsrefs.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_libfwnt.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_libuna.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_output.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_signal.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\fsrefstools_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\fsrefstools\\info_handle.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libbfio/libbfio.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libbfio\"\r\n\tProjectGUID=\"{6B3ECD42-FEA0-4920-B1F5-FBB83439A17D}\"\r\n\tRootNamespace=\"libbfio\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcdata;..\\..\\libcsplit;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libuna\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBBFIO\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcdata;..\\..\\libcsplit;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libuna\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBBFIO\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_error.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_file.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_file_io_handle.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_file_pool.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_file_range.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_file_range_io_handle.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_handle.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_memory_range.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_memory_range_io_handle.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_pool.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_system_string.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_codepage.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_error.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_file.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_file_io_handle.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_file_pool.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_file_range.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_file_range_io_handle.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_handle.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_libcdata.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_libcfile.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_libclocale.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_libcpath.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_libcthreads.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_libuna.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_memory_range.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_memory_range_io_handle.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_pool.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_system_string.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_types.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libbfio\\libbfio_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libcdata/libcdata.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libcdata\"\r\n\tProjectGUID=\"{6CDB6011-A284-45B9-9043-D79AEC26396C}\"\r\n\tRootNamespace=\"libcdata\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_array.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_btree.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_btree_node.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_btree_values_list.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_error.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_list.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_list_element.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_range_list.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_range_list_value.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_tree_node.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_array.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_btree.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_btree_node.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_btree_values_list.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_error.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_libcthreads.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_list.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_list_element.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_range_list.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_range_list_value.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_tree_node.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_types.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcdata\\libcdata_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libcerror/libcerror.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libcerror\"\r\n\tProjectGUID=\"{CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\"\r\n\tRootNamespace=\"libcerror\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcerror\\libcerror_error.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcerror\\libcerror_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcerror\\libcerror_system.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcerror\\libcerror_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcerror\\libcerror_error.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcerror\\libcerror_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcerror\\libcerror_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcerror\\libcerror_system.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcerror\\libcerror_types.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcerror\\libcerror_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libcfile/libcfile.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libcfile\"\r\n\tProjectGUID=\"{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}\"\r\n\tRootNamespace=\"libcfile\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libuna\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libuna\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_error.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_file.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_notify.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_system_string.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_winapi.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_error.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_file.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_libclocale.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_libcnotify.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_libuna.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_notify.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_system_string.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_types.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcfile\\libcfile_winapi.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libclocale/libclocale.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libclocale\"\r\n\tProjectGUID=\"{221E4F2C-BB02-4C32-9C3E-95E80CC60574}\"\r\n\tRootNamespace=\"libclocale\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCLOCALE\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCLOCALE\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libclocale\\libclocale_codepage.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libclocale\\libclocale_locale.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libclocale\\libclocale_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libclocale\\libclocale_wide_string.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libclocale\\libclocale_codepage.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libclocale\\libclocale_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libclocale\\libclocale_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libclocale\\libclocale_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libclocale\\libclocale_locale.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libclocale\\libclocale_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libclocale\\libclocale_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libclocale\\libclocale_wide_string.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libcnotify/libcnotify.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libcnotify\"\r\n\tProjectGUID=\"{6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\"\r\n\tRootNamespace=\"libcnotify\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCNOTIFY\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCNOTIFY\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcnotify\\libcnotify_print.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcnotify\\libcnotify_stream.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcnotify\\libcnotify_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcnotify\\libcnotify_verbose.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcnotify\\libcnotify_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcnotify\\libcnotify_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcnotify\\libcnotify_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcnotify\\libcnotify_print.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcnotify\\libcnotify_stream.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcnotify\\libcnotify_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcnotify\\libcnotify_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcnotify\\libcnotify_verbose.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libcpath/libcpath.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libcpath\"\r\n\tProjectGUID=\"{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}\"\r\n\tRootNamespace=\"libcpath\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libclocale;..\\..\\libcsplit;..\\..\\libuna\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCPATH\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libclocale;..\\..\\libcsplit;..\\..\\libuna\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCPATH\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcpath\\libcpath_error.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcpath\\libcpath_path.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcpath\\libcpath_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcpath\\libcpath_system_string.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcpath\\libcpath_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcpath\\libcpath_error.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcpath\\libcpath_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcpath\\libcpath_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcpath\\libcpath_libclocale.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcpath\\libcpath_libcsplit.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcpath\\libcpath_libuna.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcpath\\libcpath_path.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcpath\\libcpath_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcpath\\libcpath_system_string.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcpath\\libcpath_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libcsplit/libcsplit.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libcsplit\"\r\n\tProjectGUID=\"{B983F764-6F5A-482E-9E8B-23D68DBC7173}\"\r\n\tRootNamespace=\"libcsplit\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCSPLIT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCSPLIT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_error.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_narrow_split_string.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_narrow_string.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_wide_split_string.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_wide_string.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_error.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_narrow_split_string.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_narrow_string.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_types.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_wide_split_string.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcsplit\\libcsplit_wide_string.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libcthreads/libcthreads.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libcthreads\"\r\n\tProjectGUID=\"{3FB75558-9168-450F-9FE2-EDB2A08EBE64}\"\r\n\tRootNamespace=\"libcthreads\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_condition.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_error.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_lock.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_mutex.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_queue.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_read_write_lock.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_repeating_thread.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_thread.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_thread_attributes.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_thread_pool.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_condition.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_error.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_lock.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_mutex.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_queue.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_read_write_lock.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_repeating_thread.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_thread.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_thread_attributes.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_thread_pool.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_types.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libcthreads\\libcthreads_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libfcache/libfcache.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libfcache\"\r\n\tProjectGUID=\"{3B808C9B-707E-4AD6-80E3-A57B5FA3AFAF}\"\r\n\tRootNamespace=\"libfcache\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBFCACHE\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBFCACHE\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfcache\\libfcache_cache.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfcache\\libfcache_cache_value.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfcache\\libfcache_date_time.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfcache\\libfcache_error.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfcache\\libfcache_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfcache\\libfcache_cache.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfcache\\libfcache_cache_value.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfcache\\libfcache_date_time.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfcache\\libfcache_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfcache\\libfcache_error.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfcache\\libfcache_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfcache\\libfcache_libcdata.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfcache\\libfcache_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfcache\\libfcache_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfcache\\libfcache_types.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfcache\\libfcache_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libfdata/libfdata.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libfdata\"\r\n\tProjectGUID=\"{C1E29BED-CD7D-4A41-8DE4-45F7EA4CBFE4}\"\r\n\tRootNamespace=\"libfdata\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libcnotify;..\\..\\libfcache\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libcnotify;..\\..\\libfcache\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_area.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_cache.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_error.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_list.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_list_element.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_mapped_range.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_notify.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_range.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_range_list.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_segments_array.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_stream.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_vector.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_area.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_cache.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_error.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_libcdata.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_libcnotify.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_libfcache.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_list.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_list_element.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_mapped_range.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_notify.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_range.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_range_list.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_segments_array.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_stream.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_types.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdata\\libfdata_vector.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libfdatetime/libfdatetime.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libfdatetime\"\r\n\tProjectGUID=\"{F3C93041-4C86-4F58-B22C-336B2A82038A}\"\r\n\tRootNamespace=\"libfdatetime\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBFDATETIME\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBFDATETIME\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_date_time_values.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_error.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_fat_date_time.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_filetime.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_floatingtime.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_hfs_time.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_nsf_timedate.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_posix_time.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_systemtime.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_date_time_values.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_error.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_fat_date_time.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_filetime.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_floatingtime.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_hfs_time.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_nsf_timedate.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_posix_time.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_systemtime.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_types.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfdatetime\\libfdatetime_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libfguid/libfguid.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libfguid\"\r\n\tProjectGUID=\"{87BEF2E0-F880-46F6-ADDA-DDBCD4A80B3D}\"\r\n\tRootNamespace=\"libfguid\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBFGUID\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBFGUID\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfguid\\libfguid_error.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfguid\\libfguid_identifier.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfguid\\libfguid_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfguid\\libfguid_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfguid\\libfguid_error.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfguid\\libfguid_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfguid\\libfguid_identifier.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfguid\\libfguid_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfguid\\libfguid_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfguid\\libfguid_types.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfguid\\libfguid_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libfsrefs/libfsrefs.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libfsrefs\"\r\n\tProjectGUID=\"{44706D15-A853-489F-B136-57F352800654}\"\r\n\tRootNamespace=\"libfsrefs\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"2\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_EXPORT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).dll\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tRandomizedBaseAddress=\"2\"\r\n\t\t\t\tDataExecutionPrevention=\"2\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t\tImportLibrary=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"2\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libclocale;..\\..\\libcnotify;..\\..\\libcsplit;..\\..\\libuna;..\\..\\libcfile;..\\..\\libcpath;..\\..\\libbfio;..\\..\\libfcache;..\\..\\libfdata;..\\..\\libfdatetime;..\\..\\libfguid;..\\..\\libfwnt\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCLOCALE;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBCSPLIT;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBCFILE;HAVE_LOCAL_LIBCPATH;HAVE_LOCAL_LIBBFIO;HAVE_LOCAL_LIBFCACHE;HAVE_LOCAL_LIBFDATA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFGUID;HAVE_LOCAL_LIBFWNT;LIBFSREFS_DLL_EXPORT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLinkerTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).dll\"\r\n\t\t\t\tAdditionalLibraryDirectories=\"&quot;$(OutDir)&quot;\"\r\n\t\t\t\tGenerateDebugInformation=\"true\"\r\n\t\t\t\tRandomizedBaseAddress=\"1\"\r\n\t\t\t\tDataExecutionPrevention=\"1\"\r\n\t\t\t\tTargetMachine=\"1\"\r\n\t\t\t\tImportLibrary=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManifestTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCAppVerifierTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_attribute_values.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_block_descriptor.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_block_reference.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_block_tree.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_block_tree_node.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_checkpoint.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_data_run.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_debug.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_directory_entry.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_directory_object.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_error.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_file_entry.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_file_system.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_io_handle.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_metadata_block_header.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_ministore_node.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_node_header.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_node_record.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_notify.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_objects_tree.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_superblock.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_tree_header.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_volume.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_volume_header.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\fsrefs_checkpoint.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\fsrefs_directory_object.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\fsrefs_metadata_block.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\fsrefs_ministore_tree.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\fsrefs_superblock.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\fsrefs_volume_header.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_attribute_values.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_block_descriptor.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_block_reference.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_block_tree.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_block_tree_node.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_checkpoint.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_data_run.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_debug.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_directory_entry.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_directory_object.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_error.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_file_entry.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_file_system.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_io_handle.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_libbfio.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_libcdata.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_libclocale.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_libcnotify.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_libcthreads.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_libfcache.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_libfdata.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_libfdatetime.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_libfguid.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_libfwnt.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_libuna.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_metadata_block_header.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_ministore_node.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_node_header.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_node_record.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_notify.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_objects_tree.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_superblock.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_tree_header.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_types.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_volume.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs_volume_header.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfsrefs\\libfsrefs.rc\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libfsrefs.sln",
    "content": "﻿\r\nMicrosoft Visual Studio Solution File, Format Version 10.00\r\n# Visual C++ Express 2008\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libfcache\", \"libfcache\\libfcache.vcproj\", \"{3B808C9B-707E-4AD6-80E3-A57B5FA3AFAF}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\t\t{3FB75558-9168-450F-9FE2-EDB2A08EBE64} = {3FB75558-9168-450F-9FE2-EDB2A08EBE64}\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C} = {6CDB6011-A284-45B9-9043-D79AEC26396C}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libfguid\", \"libfguid\\libfguid.vcproj\", \"{87BEF2E0-F880-46F6-ADDA-DDBCD4A80B3D}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_attribute_values\", \"fsrefs_test_attribute_values\\fsrefs_test_attribute_values.vcproj\", \"{10303E16-AE3C-4EC5-9058-40A53F9E6D30}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_block_descriptor\", \"fsrefs_test_block_descriptor\\fsrefs_test_block_descriptor.vcproj\", \"{86FE2A37-6E20-42C5-AD0E-65C894513B1E}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_block_reference\", \"fsrefs_test_block_reference\\fsrefs_test_block_reference.vcproj\", \"{6481EBD4-1CE7-4701-B4B2-BD0733B1892E}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_block_tree\", \"fsrefs_test_block_tree\\fsrefs_test_block_tree.vcproj\", \"{FA1B5333-2889-41C8-B936-B123F8B71D53}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_block_tree_node\", \"fsrefs_test_block_tree_node\\fsrefs_test_block_tree_node.vcproj\", \"{C68F2739-7E0D-41BC-9126-4F4662B62D2F}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_checkpoint\", \"fsrefs_test_checkpoint\\fsrefs_test_checkpoint.vcproj\", \"{AF13DDD6-36B7-4589-98EF-113557719D40}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{6B3ECD42-FEA0-4920-B1F5-FBB83439A17D} = {6B3ECD42-FEA0-4920-B1F5-FBB83439A17D}\r\n\t\t{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0} = {8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}\r\n\t\t{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A} = {4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27} = {1EF1DBEB-344B-45C9-BF06-FE36F5145C27}\r\n\t\t{B983F764-6F5A-482E-9E8B-23D68DBC7173} = {B983F764-6F5A-482E-9E8B-23D68DBC7173}\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85} = {6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574} = {221E4F2C-BB02-4C32-9C3E-95E80CC60574}\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C} = {6CDB6011-A284-45B9-9043-D79AEC26396C}\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_data_run\", \"fsrefs_test_data_run\\fsrefs_test_data_run.vcproj\", \"{383E86C0-B064-4E96-8C80-D1BA77232B07}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_directory_entry\", \"fsrefs_test_directory_entry\\fsrefs_test_directory_entry.vcproj\", \"{47245AB7-7780-46AF-B1E1-895CDCD70B44}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_directory_object\", \"fsrefs_test_directory_object\\fsrefs_test_directory_object.vcproj\", \"{77FD568A-E194-4119-84E3-F9B780604DFB}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_error\", \"fsrefs_test_error\\fsrefs_test_error.vcproj\", \"{F4A33415-A38B-4FCE-A9C5-C3298AB0DA31}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_file_entry\", \"fsrefs_test_file_entry\\fsrefs_test_file_entry.vcproj\", \"{4BDB64CA-2219-4737-B0D9-EEEBCDE526EB}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_file_system\", \"fsrefs_test_file_system\\fsrefs_test_file_system.vcproj\", \"{F139F66F-812A-4AE5-9950-DA583DF64F90}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_io_handle\", \"fsrefs_test_io_handle\\fsrefs_test_io_handle.vcproj\", \"{011F4ADF-096E-4B5C-972B-80CA715C06E8}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_metadata_block_header\", \"fsrefs_test_metadata_block_header\\fsrefs_test_metadata_block_header.vcproj\", \"{0B7CF568-8154-41C0-85E0-182D0172DF69}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{6B3ECD42-FEA0-4920-B1F5-FBB83439A17D} = {6B3ECD42-FEA0-4920-B1F5-FBB83439A17D}\r\n\t\t{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0} = {8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}\r\n\t\t{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A} = {4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27} = {1EF1DBEB-344B-45C9-BF06-FE36F5145C27}\r\n\t\t{B983F764-6F5A-482E-9E8B-23D68DBC7173} = {B983F764-6F5A-482E-9E8B-23D68DBC7173}\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85} = {6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574} = {221E4F2C-BB02-4C32-9C3E-95E80CC60574}\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C} = {6CDB6011-A284-45B9-9043-D79AEC26396C}\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_ministore_node\", \"fsrefs_test_ministore_node\\fsrefs_test_ministore_node.vcproj\", \"{ECFEFE5C-4167-45D6-9888-3AEDF151EE6A}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{6B3ECD42-FEA0-4920-B1F5-FBB83439A17D} = {6B3ECD42-FEA0-4920-B1F5-FBB83439A17D}\r\n\t\t{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0} = {8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}\r\n\t\t{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A} = {4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27} = {1EF1DBEB-344B-45C9-BF06-FE36F5145C27}\r\n\t\t{B983F764-6F5A-482E-9E8B-23D68DBC7173} = {B983F764-6F5A-482E-9E8B-23D68DBC7173}\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85} = {6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574} = {221E4F2C-BB02-4C32-9C3E-95E80CC60574}\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C} = {6CDB6011-A284-45B9-9043-D79AEC26396C}\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_node_header\", \"fsrefs_test_node_header\\fsrefs_test_node_header.vcproj\", \"{99CE5562-ED92-4BCA-AECE-69E98C0F6281}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_node_record\", \"fsrefs_test_node_record\\fsrefs_test_node_record.vcproj\", \"{E2913BF9-8251-4905-9C3F-259968A95A08}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_notify\", \"fsrefs_test_notify\\fsrefs_test_notify.vcproj\", \"{C6939822-15BF-4CD9-8DF1-6444B30DF640}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_objects_tree\", \"fsrefs_test_objects_tree\\fsrefs_test_objects_tree.vcproj\", \"{68271DFE-475D-4987-81D7-AC14C71B6244}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_superblock\", \"fsrefs_test_superblock\\fsrefs_test_superblock.vcproj\", \"{DFF7AF07-0F74-472D-97FE-BA9A068ABC3F}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{6B3ECD42-FEA0-4920-B1F5-FBB83439A17D} = {6B3ECD42-FEA0-4920-B1F5-FBB83439A17D}\r\n\t\t{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0} = {8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}\r\n\t\t{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A} = {4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27} = {1EF1DBEB-344B-45C9-BF06-FE36F5145C27}\r\n\t\t{B983F764-6F5A-482E-9E8B-23D68DBC7173} = {B983F764-6F5A-482E-9E8B-23D68DBC7173}\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85} = {6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574} = {221E4F2C-BB02-4C32-9C3E-95E80CC60574}\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C} = {6CDB6011-A284-45B9-9043-D79AEC26396C}\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_support\", \"fsrefs_test_support\\fsrefs_test_support.vcproj\", \"{3507BFE7-7504-46F9-B33E-038BDC5EC426}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{6B3ECD42-FEA0-4920-B1F5-FBB83439A17D} = {6B3ECD42-FEA0-4920-B1F5-FBB83439A17D}\r\n\t\t{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0} = {8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}\r\n\t\t{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A} = {4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27} = {1EF1DBEB-344B-45C9-BF06-FE36F5145C27}\r\n\t\t{B983F764-6F5A-482E-9E8B-23D68DBC7173} = {B983F764-6F5A-482E-9E8B-23D68DBC7173}\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85} = {6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574} = {221E4F2C-BB02-4C32-9C3E-95E80CC60574}\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C} = {6CDB6011-A284-45B9-9043-D79AEC26396C}\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_tools_info_handle\", \"fsrefs_test_tools_info_handle\\fsrefs_test_tools_info_handle.vcproj\", \"{65CDD553-456B-4110-B594-87C12AF39B2B}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{6B3ECD42-FEA0-4920-B1F5-FBB83439A17D} = {6B3ECD42-FEA0-4920-B1F5-FBB83439A17D}\r\n\t\t{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0} = {8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}\r\n\t\t{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A} = {4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27} = {1EF1DBEB-344B-45C9-BF06-FE36F5145C27}\r\n\t\t{B983F764-6F5A-482E-9E8B-23D68DBC7173} = {B983F764-6F5A-482E-9E8B-23D68DBC7173}\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85} = {6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574} = {221E4F2C-BB02-4C32-9C3E-95E80CC60574}\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C} = {6CDB6011-A284-45B9-9043-D79AEC26396C}\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_tools_output\", \"fsrefs_test_tools_output\\fsrefs_test_tools_output.vcproj\", \"{5E36F2A8-F375-4777-8D75-FB2C895FA81A}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_tools_signal\", \"fsrefs_test_tools_signal\\fsrefs_test_tools_signal.vcproj\", \"{08B474B6-F7FE-4FCB-B598-B8C2F664BD88}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_tree_header\", \"fsrefs_test_tree_header\\fsrefs_test_tree_header.vcproj\", \"{AE26AFAA-85F1-45B7-9F9D-EDCA66642C2C}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_volume\", \"fsrefs_test_volume\\fsrefs_test_volume.vcproj\", \"{86CEACC5-A5E8-4664-9332-829C13BD3EB0}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{6B3ECD42-FEA0-4920-B1F5-FBB83439A17D} = {6B3ECD42-FEA0-4920-B1F5-FBB83439A17D}\r\n\t\t{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0} = {8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}\r\n\t\t{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A} = {4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27} = {1EF1DBEB-344B-45C9-BF06-FE36F5145C27}\r\n\t\t{B983F764-6F5A-482E-9E8B-23D68DBC7173} = {B983F764-6F5A-482E-9E8B-23D68DBC7173}\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85} = {6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574} = {221E4F2C-BB02-4C32-9C3E-95E80CC60574}\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C} = {6CDB6011-A284-45B9-9043-D79AEC26396C}\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{3FB75558-9168-450F-9FE2-EDB2A08EBE64} = {3FB75558-9168-450F-9FE2-EDB2A08EBE64}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefs_test_volume_header\", \"fsrefs_test_volume_header\\fsrefs_test_volume_header.vcproj\", \"{6703E278-1803-4BAD-A7B2-1C80E7BC4416}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{6B3ECD42-FEA0-4920-B1F5-FBB83439A17D} = {6B3ECD42-FEA0-4920-B1F5-FBB83439A17D}\r\n\t\t{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0} = {8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}\r\n\t\t{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A} = {4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27} = {1EF1DBEB-344B-45C9-BF06-FE36F5145C27}\r\n\t\t{B983F764-6F5A-482E-9E8B-23D68DBC7173} = {B983F764-6F5A-482E-9E8B-23D68DBC7173}\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85} = {6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574} = {221E4F2C-BB02-4C32-9C3E-95E80CC60574}\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C} = {6CDB6011-A284-45B9-9043-D79AEC26396C}\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libclocale\", \"libclocale\\libclocale.vcproj\", \"{221E4F2C-BB02-4C32-9C3E-95E80CC60574}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libbfio\", \"libbfio\\libbfio.vcproj\", \"{6B3ECD42-FEA0-4920-B1F5-FBB83439A17D}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\t\t{3FB75558-9168-450F-9FE2-EDB2A08EBE64} = {3FB75558-9168-450F-9FE2-EDB2A08EBE64}\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574} = {221E4F2C-BB02-4C32-9C3E-95E80CC60574}\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85} = {6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C} = {6CDB6011-A284-45B9-9043-D79AEC26396C}\r\n\t\t{B983F764-6F5A-482E-9E8B-23D68DBC7173} = {B983F764-6F5A-482E-9E8B-23D68DBC7173}\r\n\t\t{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A} = {4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}\r\n\t\t{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0} = {8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27} = {1EF1DBEB-344B-45C9-BF06-FE36F5145C27}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libfdatetime\", \"libfdatetime\\libfdatetime.vcproj\", \"{F3C93041-4C86-4F58-B22C-336B2A82038A}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libcfile\", \"libcfile\\libcfile.vcproj\", \"{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574} = {221E4F2C-BB02-4C32-9C3E-95E80CC60574}\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85} = {6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27} = {1EF1DBEB-344B-45C9-BF06-FE36F5145C27}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libfwnt\", \"libfwnt\\libfwnt.vcproj\", \"{25FBF40F-8CE3-4F18-B738-43388FA152C9}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\t\t{3FB75558-9168-450F-9FE2-EDB2A08EBE64} = {3FB75558-9168-450F-9FE2-EDB2A08EBE64}\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C} = {6CDB6011-A284-45B9-9043-D79AEC26396C}\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85} = {6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libcthreads\", \"libcthreads\\libcthreads.vcproj\", \"{3FB75558-9168-450F-9FE2-EDB2A08EBE64}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libcpath\", \"libcpath\\libcpath.vcproj\", \"{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574} = {221E4F2C-BB02-4C32-9C3E-95E80CC60574}\r\n\t\t{B983F764-6F5A-482E-9E8B-23D68DBC7173} = {B983F764-6F5A-482E-9E8B-23D68DBC7173}\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27} = {1EF1DBEB-344B-45C9-BF06-FE36F5145C27}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libfusn\", \"libfusn\\libfusn.vcproj\", \"{682153A3-8081-4698-802F-F0E3DA327950}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85} = {6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27} = {1EF1DBEB-344B-45C9-BF06-FE36F5145C27}\r\n\t\t{F3C93041-4C86-4F58-B22C-336B2A82038A} = {F3C93041-4C86-4F58-B22C-336B2A82038A}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libuna\", \"libuna\\libuna.vcproj\", \"{1EF1DBEB-344B-45C9-BF06-FE36F5145C27}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libfsrefs\", \"libfsrefs\\libfsrefs.vcproj\", \"{44706D15-A853-489F-B136-57F352800654}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\t\t{3FB75558-9168-450F-9FE2-EDB2A08EBE64} = {3FB75558-9168-450F-9FE2-EDB2A08EBE64}\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C} = {6CDB6011-A284-45B9-9043-D79AEC26396C}\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574} = {221E4F2C-BB02-4C32-9C3E-95E80CC60574}\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85} = {6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\r\n\t\t{B983F764-6F5A-482E-9E8B-23D68DBC7173} = {B983F764-6F5A-482E-9E8B-23D68DBC7173}\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27} = {1EF1DBEB-344B-45C9-BF06-FE36F5145C27}\r\n\t\t{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A} = {4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}\r\n\t\t{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0} = {8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}\r\n\t\t{6B3ECD42-FEA0-4920-B1F5-FBB83439A17D} = {6B3ECD42-FEA0-4920-B1F5-FBB83439A17D}\r\n\t\t{3B808C9B-707E-4AD6-80E3-A57B5FA3AFAF} = {3B808C9B-707E-4AD6-80E3-A57B5FA3AFAF}\r\n\t\t{C1E29BED-CD7D-4A41-8DE4-45F7EA4CBFE4} = {C1E29BED-CD7D-4A41-8DE4-45F7EA4CBFE4}\r\n\t\t{F3C93041-4C86-4F58-B22C-336B2A82038A} = {F3C93041-4C86-4F58-B22C-336B2A82038A}\r\n\t\t{87BEF2E0-F880-46F6-ADDA-DDBCD4A80B3D} = {87BEF2E0-F880-46F6-ADDA-DDBCD4A80B3D}\r\n\t\t{25FBF40F-8CE3-4F18-B738-43388FA152C9} = {25FBF40F-8CE3-4F18-B738-43388FA152C9}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libcerror\", \"libcerror\\libcerror.vcproj\", \"{CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\"\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libcnotify\", \"libcnotify\\libcnotify.vcproj\", \"{6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"fsrefsinfo\", \"fsrefsinfo\\fsrefsinfo.vcproj\", \"{DDF498F3-065E-468C-B3AA-0C538AD45B1E}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{6B3ECD42-FEA0-4920-B1F5-FBB83439A17D} = {6B3ECD42-FEA0-4920-B1F5-FBB83439A17D}\r\n\t\t{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0} = {8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}\r\n\t\t{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A} = {4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27} = {1EF1DBEB-344B-45C9-BF06-FE36F5145C27}\r\n\t\t{B983F764-6F5A-482E-9E8B-23D68DBC7173} = {B983F764-6F5A-482E-9E8B-23D68DBC7173}\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85} = {6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574} = {221E4F2C-BB02-4C32-9C3E-95E80CC60574}\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C} = {6CDB6011-A284-45B9-9043-D79AEC26396C}\r\n\t\t{44706D15-A853-489F-B136-57F352800654} = {44706D15-A853-489F-B136-57F352800654}\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libfdata\", \"libfdata\\libfdata.vcproj\", \"{C1E29BED-CD7D-4A41-8DE4-45F7EA4CBFE4}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\t\t{3FB75558-9168-450F-9FE2-EDB2A08EBE64} = {3FB75558-9168-450F-9FE2-EDB2A08EBE64}\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C} = {6CDB6011-A284-45B9-9043-D79AEC26396C}\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85} = {6A54FAA1-6394-40D7-94F2-2F504C1E8A85}\r\n\t\t{3B808C9B-707E-4AD6-80E3-A57B5FA3AFAF} = {3B808C9B-707E-4AD6-80E3-A57B5FA3AFAF}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libcdata\", \"libcdata\\libcdata.vcproj\", \"{6CDB6011-A284-45B9-9043-D79AEC26396C}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\t\t{3FB75558-9168-450F-9FE2-EDB2A08EBE64} = {3FB75558-9168-450F-9FE2-EDB2A08EBE64}\r\n\tEndProjectSection\r\nEndProject\r\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"libcsplit\", \"libcsplit\\libcsplit.vcproj\", \"{B983F764-6F5A-482E-9E8B-23D68DBC7173}\"\r\n\tProjectSection(ProjectDependencies) = postProject\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B} = {CA038E14-4A24-4E0A-8198-66FCE5D1D48B}\r\n\tEndProjectSection\r\nEndProject\r\nGlobal\r\n\tGlobalSection(SolutionConfigurationPlatforms) = preSolution\r\n\t\tRelease|Win32 = Release|Win32\r\n\t\tVSDebug|Win32 = VSDebug|Win32\r\n\tEndGlobalSection\r\n\tGlobalSection(ProjectConfigurationPlatforms) = postSolution\r\n\t\t{3B808C9B-707E-4AD6-80E3-A57B5FA3AFAF}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{3B808C9B-707E-4AD6-80E3-A57B5FA3AFAF}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{3B808C9B-707E-4AD6-80E3-A57B5FA3AFAF}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{3B808C9B-707E-4AD6-80E3-A57B5FA3AFAF}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{87BEF2E0-F880-46F6-ADDA-DDBCD4A80B3D}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{87BEF2E0-F880-46F6-ADDA-DDBCD4A80B3D}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{87BEF2E0-F880-46F6-ADDA-DDBCD4A80B3D}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{87BEF2E0-F880-46F6-ADDA-DDBCD4A80B3D}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{10303E16-AE3C-4EC5-9058-40A53F9E6D30}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{10303E16-AE3C-4EC5-9058-40A53F9E6D30}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{10303E16-AE3C-4EC5-9058-40A53F9E6D30}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{10303E16-AE3C-4EC5-9058-40A53F9E6D30}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{86FE2A37-6E20-42C5-AD0E-65C894513B1E}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{86FE2A37-6E20-42C5-AD0E-65C894513B1E}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{86FE2A37-6E20-42C5-AD0E-65C894513B1E}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{86FE2A37-6E20-42C5-AD0E-65C894513B1E}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{6481EBD4-1CE7-4701-B4B2-BD0733B1892E}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{6481EBD4-1CE7-4701-B4B2-BD0733B1892E}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{6481EBD4-1CE7-4701-B4B2-BD0733B1892E}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{6481EBD4-1CE7-4701-B4B2-BD0733B1892E}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{FA1B5333-2889-41C8-B936-B123F8B71D53}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{FA1B5333-2889-41C8-B936-B123F8B71D53}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{FA1B5333-2889-41C8-B936-B123F8B71D53}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{FA1B5333-2889-41C8-B936-B123F8B71D53}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{C68F2739-7E0D-41BC-9126-4F4662B62D2F}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{C68F2739-7E0D-41BC-9126-4F4662B62D2F}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{C68F2739-7E0D-41BC-9126-4F4662B62D2F}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{C68F2739-7E0D-41BC-9126-4F4662B62D2F}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{AF13DDD6-36B7-4589-98EF-113557719D40}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{AF13DDD6-36B7-4589-98EF-113557719D40}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{AF13DDD6-36B7-4589-98EF-113557719D40}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{AF13DDD6-36B7-4589-98EF-113557719D40}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{383E86C0-B064-4E96-8C80-D1BA77232B07}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{383E86C0-B064-4E96-8C80-D1BA77232B07}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{383E86C0-B064-4E96-8C80-D1BA77232B07}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{383E86C0-B064-4E96-8C80-D1BA77232B07}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{47245AB7-7780-46AF-B1E1-895CDCD70B44}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{47245AB7-7780-46AF-B1E1-895CDCD70B44}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{47245AB7-7780-46AF-B1E1-895CDCD70B44}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{47245AB7-7780-46AF-B1E1-895CDCD70B44}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{77FD568A-E194-4119-84E3-F9B780604DFB}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{77FD568A-E194-4119-84E3-F9B780604DFB}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{77FD568A-E194-4119-84E3-F9B780604DFB}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{77FD568A-E194-4119-84E3-F9B780604DFB}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{F4A33415-A38B-4FCE-A9C5-C3298AB0DA31}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{F4A33415-A38B-4FCE-A9C5-C3298AB0DA31}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{F4A33415-A38B-4FCE-A9C5-C3298AB0DA31}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{F4A33415-A38B-4FCE-A9C5-C3298AB0DA31}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{4BDB64CA-2219-4737-B0D9-EEEBCDE526EB}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{4BDB64CA-2219-4737-B0D9-EEEBCDE526EB}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{4BDB64CA-2219-4737-B0D9-EEEBCDE526EB}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{4BDB64CA-2219-4737-B0D9-EEEBCDE526EB}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{F139F66F-812A-4AE5-9950-DA583DF64F90}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{F139F66F-812A-4AE5-9950-DA583DF64F90}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{F139F66F-812A-4AE5-9950-DA583DF64F90}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{F139F66F-812A-4AE5-9950-DA583DF64F90}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{011F4ADF-096E-4B5C-972B-80CA715C06E8}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{011F4ADF-096E-4B5C-972B-80CA715C06E8}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{011F4ADF-096E-4B5C-972B-80CA715C06E8}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{011F4ADF-096E-4B5C-972B-80CA715C06E8}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{0B7CF568-8154-41C0-85E0-182D0172DF69}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{0B7CF568-8154-41C0-85E0-182D0172DF69}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{0B7CF568-8154-41C0-85E0-182D0172DF69}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{0B7CF568-8154-41C0-85E0-182D0172DF69}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{ECFEFE5C-4167-45D6-9888-3AEDF151EE6A}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{ECFEFE5C-4167-45D6-9888-3AEDF151EE6A}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{ECFEFE5C-4167-45D6-9888-3AEDF151EE6A}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{ECFEFE5C-4167-45D6-9888-3AEDF151EE6A}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{99CE5562-ED92-4BCA-AECE-69E98C0F6281}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{99CE5562-ED92-4BCA-AECE-69E98C0F6281}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{99CE5562-ED92-4BCA-AECE-69E98C0F6281}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{99CE5562-ED92-4BCA-AECE-69E98C0F6281}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{E2913BF9-8251-4905-9C3F-259968A95A08}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{E2913BF9-8251-4905-9C3F-259968A95A08}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{E2913BF9-8251-4905-9C3F-259968A95A08}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{E2913BF9-8251-4905-9C3F-259968A95A08}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{C6939822-15BF-4CD9-8DF1-6444B30DF640}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{C6939822-15BF-4CD9-8DF1-6444B30DF640}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{C6939822-15BF-4CD9-8DF1-6444B30DF640}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{C6939822-15BF-4CD9-8DF1-6444B30DF640}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{68271DFE-475D-4987-81D7-AC14C71B6244}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{68271DFE-475D-4987-81D7-AC14C71B6244}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{68271DFE-475D-4987-81D7-AC14C71B6244}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{68271DFE-475D-4987-81D7-AC14C71B6244}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{DFF7AF07-0F74-472D-97FE-BA9A068ABC3F}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{DFF7AF07-0F74-472D-97FE-BA9A068ABC3F}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{DFF7AF07-0F74-472D-97FE-BA9A068ABC3F}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{DFF7AF07-0F74-472D-97FE-BA9A068ABC3F}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{3507BFE7-7504-46F9-B33E-038BDC5EC426}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{3507BFE7-7504-46F9-B33E-038BDC5EC426}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{3507BFE7-7504-46F9-B33E-038BDC5EC426}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{3507BFE7-7504-46F9-B33E-038BDC5EC426}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{65CDD553-456B-4110-B594-87C12AF39B2B}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{65CDD553-456B-4110-B594-87C12AF39B2B}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{65CDD553-456B-4110-B594-87C12AF39B2B}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{65CDD553-456B-4110-B594-87C12AF39B2B}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{5E36F2A8-F375-4777-8D75-FB2C895FA81A}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{5E36F2A8-F375-4777-8D75-FB2C895FA81A}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{5E36F2A8-F375-4777-8D75-FB2C895FA81A}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{5E36F2A8-F375-4777-8D75-FB2C895FA81A}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{08B474B6-F7FE-4FCB-B598-B8C2F664BD88}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{08B474B6-F7FE-4FCB-B598-B8C2F664BD88}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{08B474B6-F7FE-4FCB-B598-B8C2F664BD88}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{08B474B6-F7FE-4FCB-B598-B8C2F664BD88}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{AE26AFAA-85F1-45B7-9F9D-EDCA66642C2C}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{AE26AFAA-85F1-45B7-9F9D-EDCA66642C2C}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{AE26AFAA-85F1-45B7-9F9D-EDCA66642C2C}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{AE26AFAA-85F1-45B7-9F9D-EDCA66642C2C}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{86CEACC5-A5E8-4664-9332-829C13BD3EB0}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{86CEACC5-A5E8-4664-9332-829C13BD3EB0}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{86CEACC5-A5E8-4664-9332-829C13BD3EB0}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{86CEACC5-A5E8-4664-9332-829C13BD3EB0}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{6703E278-1803-4BAD-A7B2-1C80E7BC4416}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{6703E278-1803-4BAD-A7B2-1C80E7BC4416}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{6703E278-1803-4BAD-A7B2-1C80E7BC4416}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{6703E278-1803-4BAD-A7B2-1C80E7BC4416}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{221E4F2C-BB02-4C32-9C3E-95E80CC60574}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{6B3ECD42-FEA0-4920-B1F5-FBB83439A17D}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{6B3ECD42-FEA0-4920-B1F5-FBB83439A17D}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{6B3ECD42-FEA0-4920-B1F5-FBB83439A17D}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{6B3ECD42-FEA0-4920-B1F5-FBB83439A17D}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{F3C93041-4C86-4F58-B22C-336B2A82038A}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{F3C93041-4C86-4F58-B22C-336B2A82038A}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{F3C93041-4C86-4F58-B22C-336B2A82038A}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{F3C93041-4C86-4F58-B22C-336B2A82038A}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{4DC006AE-1CA8-476B-AD2C-F43A8F093E5A}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{25FBF40F-8CE3-4F18-B738-43388FA152C9}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{25FBF40F-8CE3-4F18-B738-43388FA152C9}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{25FBF40F-8CE3-4F18-B738-43388FA152C9}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{25FBF40F-8CE3-4F18-B738-43388FA152C9}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{3FB75558-9168-450F-9FE2-EDB2A08EBE64}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{3FB75558-9168-450F-9FE2-EDB2A08EBE64}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{3FB75558-9168-450F-9FE2-EDB2A08EBE64}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{3FB75558-9168-450F-9FE2-EDB2A08EBE64}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{8B79E71C-A5BA-4ABD-9BF6-D3858054F7A0}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{682153A3-8081-4698-802F-F0E3DA327950}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{682153A3-8081-4698-802F-F0E3DA327950}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{682153A3-8081-4698-802F-F0E3DA327950}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{682153A3-8081-4698-802F-F0E3DA327950}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{1EF1DBEB-344B-45C9-BF06-FE36F5145C27}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{44706D15-A853-489F-B136-57F352800654}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{44706D15-A853-489F-B136-57F352800654}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{44706D15-A853-489F-B136-57F352800654}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{44706D15-A853-489F-B136-57F352800654}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{CA038E14-4A24-4E0A-8198-66FCE5D1D48B}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{6A54FAA1-6394-40D7-94F2-2F504C1E8A85}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{DDF498F3-065E-468C-B3AA-0C538AD45B1E}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{DDF498F3-065E-468C-B3AA-0C538AD45B1E}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{DDF498F3-065E-468C-B3AA-0C538AD45B1E}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{DDF498F3-065E-468C-B3AA-0C538AD45B1E}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{C1E29BED-CD7D-4A41-8DE4-45F7EA4CBFE4}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{C1E29BED-CD7D-4A41-8DE4-45F7EA4CBFE4}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{C1E29BED-CD7D-4A41-8DE4-45F7EA4CBFE4}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{C1E29BED-CD7D-4A41-8DE4-45F7EA4CBFE4}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{6CDB6011-A284-45B9-9043-D79AEC26396C}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\t\t{B983F764-6F5A-482E-9E8B-23D68DBC7173}.Release|Win32.ActiveCfg = Release|Win32\r\n\t\t{B983F764-6F5A-482E-9E8B-23D68DBC7173}.Release|Win32.Build.0 = Release|Win32\r\n\t\t{B983F764-6F5A-482E-9E8B-23D68DBC7173}.VSDebug|Win32.ActiveCfg = VSDebug|Win32\r\n\t\t{B983F764-6F5A-482E-9E8B-23D68DBC7173}.VSDebug|Win32.Build.0 = VSDebug|Win32\r\n\tEndGlobalSection\r\n\tGlobalSection(SolutionProperties) = preSolution\r\n\t\tHideSolutionNode = FALSE\r\n\tEndGlobalSection\r\nEndGlobal\r\n"
  },
  {
    "path": "msvscpp/libfusn/libfusn.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libfusn\"\r\n\tProjectGUID=\"{682153A3-8081-4698-802F-F0E3DA327950}\"\r\n\tRootNamespace=\"libfusn\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcnotify;..\\..\\libuna;..\\..\\libfdatetime\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFUSN\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcnotify;..\\..\\libuna;..\\..\\libfdatetime\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBUNA;HAVE_LOCAL_LIBFDATETIME;HAVE_LOCAL_LIBFUSN\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\libfusn_debug.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\libfusn_error.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\libfusn_record.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\libfusn_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\fusn_record.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\libfusn_debug.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\libfusn_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\libfusn_error.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\libfusn_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\libfusn_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\libfusn_libcnotify.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\libfusn_libfdatetime.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\libfusn_libuna.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\libfusn_record.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\libfusn_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\libfusn_types.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfusn\\libfusn_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libfwnt/libfwnt.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libfwnt\"\r\n\tProjectGUID=\"{25FBF40F-8CE3-4F18-B738-43388FA152C9}\"\r\n\tRootNamespace=\"libfwnt\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libcnotify\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBFWNT\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror;..\\..\\libcthreads;..\\..\\libcdata;..\\..\\libcnotify\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBCTHREADS;HAVE_LOCAL_LIBCDATA;HAVE_LOCAL_LIBCNOTIFY;HAVE_LOCAL_LIBFWNT\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_access_control_entry.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_access_control_list.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_bit_stream.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_debug.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_error.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_huffman_tree.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_locale_identifier.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_lznt1.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_lzx.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_lzxpress.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_notify.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_security_descriptor.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_security_identifier.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_access_control_entry.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_access_control_list.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_bit_stream.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_debug.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_error.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_huffman_tree.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_libcdata.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_libcnotify.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_locale_identifier.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_lznt1.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_lzx.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_lzxpress.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_notify.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_security_descriptor.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_security_identifier.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_types.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libfwnt\\libfwnt_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "msvscpp/libuna/libuna.vcproj",
    "content": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\r\n<VisualStudioProject\r\n\tProjectType=\"Visual C++\"\r\n\tVersion=\"9,00\"\r\n\tName=\"libuna\"\r\n\tProjectGUID=\"{1EF1DBEB-344B-45C9-BF06-FE36F5145C27}\"\r\n\tRootNamespace=\"libuna\"\r\n\tTargetFrameworkVersion=\"131072\"\r\n\t>\r\n\t<Platforms>\r\n\t\t<Platform\r\n\t\t\tName=\"Win32\"\r\n\t\t/>\r\n\t</Platforms>\r\n\t<ToolFiles>\r\n\t</ToolFiles>\r\n\t<Configurations>\r\n\t\t<Configuration\r\n\t\t\tName=\"Release|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBUNA\"\r\n\t\t\t\tRuntimeLibrary=\"2\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t\t<Configuration\r\n\t\t\tName=\"VSDebug|Win32\"\r\n\t\t\tOutputDirectory=\"$(SolutionDir)$(ConfigurationName)\"\r\n\t\t\tIntermediateDirectory=\"$(ConfigurationName)\"\r\n\t\t\tConfigurationType=\"4\"\r\n\t\t\tCharacterSet=\"1\"\r\n\t\t\t>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreBuildEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCustomBuildTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXMLDataGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCWebServiceProxyGeneratorTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCMIDLTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCCLCompilerTool\"\r\n\t\t\t\tOptimization=\"0\"\r\n\t\t\t\tAdditionalIncludeDirectories=\"..\\..\\include;..\\..\\common;..\\..\\libcerror\"\r\n\t\t\t\tPreprocessorDefinitions=\"_CRT_SECURE_NO_DEPRECATE;HAVE_LOCAL_LIBCERROR;HAVE_LOCAL_LIBUNA\"\r\n\t\t\t\tBasicRuntimeChecks=\"3\"\r\n\t\t\t\tSmallerTypeCheck=\"true\"\r\n\t\t\t\tRuntimeLibrary=\"3\"\r\n\t\t\t\tWarningLevel=\"4\"\r\n\t\t\t\tDebugInformationFormat=\"3\"\r\n\t\t\t\tCompileAs=\"1\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCManagedResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCResourceCompilerTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPreLinkEventTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCLibrarianTool\"\r\n\t\t\t\tOutputFile=\"$(OutDir)\\$(ProjectName).lib\"\r\n\t\t\t\tModuleDefinitionFile=\"\"\r\n\t\t\t\tIgnoreAllDefaultLibraries=\"false\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCALinkTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCXDCMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCBscMakeTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCFxCopTool\"\r\n\t\t\t/>\r\n\t\t\t<Tool\r\n\t\t\t\tName=\"VCPostBuildEventTool\"\r\n\t\t\t/>\r\n\t\t</Configuration>\r\n\t</Configurations>\r\n\t<References>\r\n\t</References>\r\n\t<Files>\r\n\t\t<Filter\r\n\t\t\tName=\"Source Files\"\r\n\t\t\tFilter=\"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx\"\r\n\t\t\tUniqueIdentifier=\"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_base16_stream.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_base32_stream.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_base64_stream.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_byte_stream.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_10.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_13.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_14.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_15.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_16.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_2.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_3.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_4.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_5.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_6.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_7.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_8.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_9.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_koi8_r.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_koi8_u.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_arabic.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_celtic.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_centraleurroman.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_croatian.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_cyrillic.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_dingbats.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_farsi.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_gaelic.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_greek.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_icelandic.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_inuit.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_roman.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_romanian.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_russian.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_symbol.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_thai.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_turkish.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_ukrainian.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1250.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1251.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1252.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1253.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1254.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1255.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1256.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1257.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1258.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_874.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_932.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_936.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_949.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_950.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_error.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_scsu.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_support.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_unicode_character.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_url_stream.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_utf16_stream.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_utf16_string.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_utf32_stream.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_utf32_string.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_utf7_stream.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_utf8_stream.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_utf8_string.c\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Header Files\"\r\n\t\t\tFilter=\"h;hpp;hxx;hm;inl;inc;xsd\"\r\n\t\t\tUniqueIdentifier=\"{93995380-89BD-4b04-88EB-625FBE52EBFB}\"\r\n\t\t\t>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_base16_stream.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_base32_stream.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_base64_stream.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_byte_stream.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_10.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_13.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_14.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_15.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_16.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_2.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_3.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_4.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_5.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_6.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_7.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_8.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_iso_8859_9.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_koi8_r.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_koi8_u.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_arabic.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_celtic.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_centraleurroman.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_croatian.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_cyrillic.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_dingbats.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_farsi.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_gaelic.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_greek.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_icelandic.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_inuit.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_roman.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_romanian.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_russian.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_symbol.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_thai.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_turkish.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_mac_ukrainian.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1250.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1251.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1252.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1253.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1254.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1255.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1256.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1257.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_1258.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_874.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_932.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_936.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_949.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_codepage_windows_950.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_definitions.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_error.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_extern.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_libcerror.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_scsu.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_support.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_types.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_unicode_character.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_unused.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_url_stream.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_utf16_stream.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_utf16_string.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_utf32_stream.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_utf32_string.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_utf7_stream.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_utf8_stream.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t\t<File\r\n\t\t\t\tRelativePath=\"..\\..\\libuna\\libuna_utf8_string.h\"\r\n\t\t\t\t>\r\n\t\t\t</File>\r\n\t\t</Filter>\r\n\t\t<Filter\r\n\t\t\tName=\"Resource Files\"\r\n\t\t\tFilter=\"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav\"\r\n\t\t\tUniqueIdentifier=\"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}\"\r\n\t\t\t>\r\n\t\t</Filter>\r\n\t</Files>\r\n\t<Globals>\r\n\t</Globals>\r\n</VisualStudioProject>\r\n"
  },
  {
    "path": "ossfuzz/Makefile.am",
    "content": "if HAVE_LIB_FUZZING_ENGINE\nAM_CPPFLAGS = \\\n\t-I../include -I$(top_srcdir)/include \\\n\t-I../common -I$(top_srcdir)/common \\\n\t@LIBCERROR_CPPFLAGS@ \\\n\t@LIBCDATA_CPPFLAGS@ \\\n\t@LIBCLOCALE_CPPFLAGS@ \\\n\t@LIBCNOTIFY_CPPFLAGS@ \\\n\t@LIBUNA_CPPFLAGS@ \\\n\t@LIBCFILE_CPPFLAGS@ \\\n\t@LIBCPATH_CPPFLAGS@ \\\n\t@LIBBFIO_CPPFLAGS@\n\nbin_PROGRAMS = \\\n\tvolume_fuzzer\n\nvolume_fuzzer_SOURCES = \\\n\tossfuzz_libbfio.h \\\n\tossfuzz_libfsrefs.h \\\n\tvolume_fuzzer.cc\n\nvolume_fuzzer_LDADD = \\\n\t@LIB_FUZZING_ENGINE@ \\\n\t@LIBBFIO_LIBADD@ \\\n\t@LIBCPATH_LIBADD@ \\\n\t@LIBCFILE_LIBADD@ \\\n\t@LIBUNA_LIBADD@ \\\n\t@LIBCDATA_LIBADD@ \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCNOTIFY_LIBADD@ \\\n\t@LIBCLOCALE_LIBADD@ \\\n\t@LIBCERROR_LIBADD@ \\\n\t@LIBINTL@\nendif\n\nDISTCLEANFILES = \\\n\tMakefile \\\n\tMakefile.in\n\nsplint-local:\n\t@echo \"Running splint on volume_fuzzer ...\"\n\t-splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(volume_fuzzer_SOURCES)\n\n"
  },
  {
    "path": "ossfuzz/ossfuzz_libbfio.h",
    "content": "/*\n * The libbfio header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _OSSFUZZ_LIBBFIO_H )\n#define _OSSFUZZ_LIBBFIO_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBBFIO for local use of libbfio\n */\n#if defined( HAVE_LOCAL_LIBBFIO )\n\n#include <libbfio_definitions.h>\n#include <libbfio_file.h>\n#include <libbfio_file_pool.h>\n#include <libbfio_file_range.h>\n#include <libbfio_handle.h>\n#include <libbfio_memory_range.h>\n#include <libbfio_pool.h>\n#include <libbfio_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBBFIO_DLL_IMPORT\n * before including libbfio.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES )\n#define LIBBFIO_DLL_IMPORT\n#endif\n\n#include <libbfio.h>\n\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( LIBBFIO_HAVE_MULTI_THREAD_SUPPORT )\n#error Multi-threading support requires libbfio with multi-threading support\n#endif\n\n#endif /* defined( HAVE_LOCAL_LIBBFIO ) */\n\n#endif /* !defined( _OSSFUZZ_LIBBFIO_H ) */\n\n"
  },
  {
    "path": "ossfuzz/ossfuzz_libfsrefs.h",
    "content": "/*\n * The libfsrefs header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _OSSFUZZ_LIBFSREFS_H )\n#define _OSSFUZZ_LIBFSREFS_H\n\n#include <common.h>\n\n#include <libfsrefs.h>\n\n#endif /* !defined( _OSSFUZZ_LIBFSREFS_H ) */\n\n"
  },
  {
    "path": "ossfuzz/volume_fuzzer.cc",
    "content": "/*\n * OSS-Fuzz target for libfsrefs volume type\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <stddef.h>\n#include <stdint.h>\n\n/* Note that some of the OSS-Fuzz engines use C++\n */\nextern \"C\" {\n\n#include \"ossfuzz_libbfio.h\"\n#include \"ossfuzz_libfsrefs.h\"\n\n#if !defined( LIBFSREFS_HAVE_BFIO )\n\n/* Opens a volume using a Basic File IO (bfio) handle\n * Returns 1 if successful or -1 on error\n */\nLIBFSREFS_EXTERN \\\nint libfsrefs_volume_open_file_io_handle(\n     libfsrefs_volume_t *volume,\n     libbfio_handle_t *file_io_handle,\n     int access_flags,\n     libfsrefs_error_t **error );\n\n#endif /* !defined( LIBFSREFS_HAVE_BFIO ) */\n\nint LLVMFuzzerTestOneInput(\n     const uint8_t *data,\n     size_t size )\n{\n\tlibbfio_handle_t *file_io_handle = NULL;\n\tlibfsrefs_volume_t *volume       = NULL;\n\n\tif( libbfio_memory_range_initialize(\n\t     &file_io_handle,\n\t     NULL ) != 1 )\n\t{\n\t\treturn( 0 );\n\t}\n\tif( libbfio_memory_range_set(\n\t     file_io_handle,\n\t     (uint8_t *) data,\n\t     size,\n\t     NULL ) != 1 )\n\t{\n\t\tgoto on_error_libbfio;\n\t}\n\tif( libfsrefs_volume_initialize(\n\t     &volume,\n\t     NULL ) != 1 )\n\t{\n\t\tgoto on_error_libbfio;\n\t}\n\tif( libfsrefs_volume_open_file_io_handle(\n\t     volume,\n\t     file_io_handle,\n\t     LIBFSREFS_OPEN_READ,\n\t     NULL ) != 1 )\n\t{\n\t\tgoto on_error_libfsrefs;\n\t}\n\tlibfsrefs_volume_close(\n\t volume,\n\t NULL );\n\non_error_libfsrefs:\n\tlibfsrefs_volume_free(\n\t &volume,\n\t NULL );\n\non_error_libbfio:\n\tlibbfio_handle_free(\n\t &file_io_handle,\n\t NULL );\n\n\treturn( 0 );\n}\n\n} /* extern \"C\" */\n\n"
  },
  {
    "path": "po/ChangeLog",
    "content": "2016-11-09  gettextize  <bug-gnu-gettext@gnu.org>\n"
  },
  {
    "path": "po/Makevars.in",
    "content": "# Makefile variables for PO directory in any package using GNU gettext.\n\n# Usually the message domain is the same as the package name.\nDOMAIN = @PACKAGE@\n\n# These two variables depend on the location of this directory.\nsubdir = po\ntop_builddir = ..\n\n# These options get passed to xgettext.\nXGETTEXT_OPTIONS = --keyword=_ --keyword=N_\n\n# This is the copyright holder that gets inserted into the header of the\n# $(DOMAIN).pot file.  Set this to the copyright holder of the surrounding\n# package.  (Note that the msgstr strings, extracted from the package's\n# sources, belong to the copyright holder of the package.)  Translators are\n# expected to transfer the copyright for their translations to this person\n# or entity, or to disclaim their copyright.  The empty string stands for\n# the public domain; in this case the translators are expected to disclaim\n# their copyright.\nCOPYRIGHT_HOLDER = Joachim Metz\n\n# This is the email address or URL to which the translators shall report\n# bugs in the untranslated strings:\n# - Strings which are not entire sentences, see the maintainer guidelines\n#   in the GNU gettext documentation, section 'Preparing Strings'.\n# - Strings which use unclear terms or require additional context to be\n#   understood.\n# - Strings which make invalid assumptions about notation of date, time or\n#   money.\n# - Pluralisation problems.\n# - Incorrect English spelling.\n# - Incorrect formatting.\n# It can be your email address, or a mailing list address where translators\n# can write to without being subscribed, or the URL of a web page through\n# which the translators can contact you.\nMSGID_BUGS_ADDRESS = @PACKAGE_BUGREPORT@\n\n# This is the list of locale categories, beyond LC_MESSAGES, for which the\n# message catalogs shall be used.  It is usually empty.\nEXTRA_LOCALE_CATEGORIES =\n\n# Additional make targets.\nsources splint:\n\n"
  },
  {
    "path": "po/POTFILES.in",
    "content": "# List of source files which contain translatable strings.\n"
  },
  {
    "path": "runtests.ps1",
    "content": "# Script that runs the tests\n#\n# Version: 20220103\n\n$ExitSuccess = 0\n$ExitFailure = 1\n$ExitIgnore = 77\n\nSet-Location -Path \"tests\"\n\n$Result = ${ExitSuccess}\n\n$Lines = Get-Content \"Makefile.am\"\n$InTests = $FALSE\n\nForeach (${Line} in ${Lines})\n{\n\tIf (${InTests})\n\t{\n\t\tIf (-Not ${Line})\n\t\t{\n\t\t\t${InTests} = $FALSE\n\n\t\t\tContinue\n\t\t}\n\t\t${Line} = ${Line}.TrimStart()\n\n\t\tIf (${Line}.EndsWith(\" \\\"))\n\t\t{\n\t\t\t${Line} = ${Line}.Substring(0, ${Line}.Length - 2)\n\t\t}\n\t\tIf (-Not (${Line}.EndsWith(\".sh\")))\n\t\t{\n\t\t\tContinue\n\t\t}\n\t\t${Line} = ${Line}.Substring(0, ${Line}.Length - 3)\n\t\t${Line} = \".\\${Line}.ps1\"\n\n\t\tTry\n\t\t{\n\t\t\tInvoke-Expression ${Line}\n\t\t}\n\t\tCatch\n\t\t{\n\t\t\t$LastExitCode = ${ExitIgnore}\n\t\t}\n\t\tIf (${LastExitCode} -eq ${ExitFailure})\n\t\t{\n\t\t\t$Result = ${ExitFailure}\n\t\t\tWrite-Host \"FAIL\" -foreground Red -nonewline\n\t\t}\n\t\tElseIf (${LastExitCode} -eq ${ExitIgnore})\n\t\t{\n\t\t\tWrite-Host \"SKIP\" -foreground Cyan -nonewline\n\t\t}\n\t\tElse\n\t\t{\n\t\t\tWrite-Host \"PASS\" -foreground Green -nonewline\n\t\t}\n\t\tWrite-Host \": ${Line}\"\n\t}\n\tElseIf (${Line}.StartsWith(\"TESTS = \"))\n\t{\n\t\t${InTests} = $TRUE\n\t}\n}\n\nSet-Location -Path \"..\"\n\nExit ${Result}\n"
  },
  {
    "path": "runtests.sh",
    "content": "#!/usr/bin/env bash\n# Script that runs the tests\n#\n# Version: 20231119\n\nEXIT_SUCCESS=0;\nEXIT_FAILURE=1;\n\nrun_configure_make()\n{\n\tlocal CONFIGURE_OPTIONS=$@;\n\n\t./configure ${CONFIGURE_OPTIONS[@]};\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\techo \"Running: './configure' failed\";\n\n\t\treturn ${RESULT};\n\tfi\n\n\tmake clean > /dev/null;\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\techo \"Running: 'make clean' failed\";\n\n\t\treturn ${RESULT};\n\tfi\n\n\tmake > /dev/null;\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\techo \"Running: 'make' failed\";\n\n\t\treturn ${RESULT};\n\tfi\n\treturn ${EXIT_SUCCESS};\n}\n\nrun_configure_make_check()\n{\n\trun_configure_make $@;\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\treturn ${RESULT};\n\tfi\n\n\tmake check CHECK_WITH_STDERR=1;\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\techo \"Running: 'make check' failed\";\n\n\t\tif test -f tests/test-suite.log;\n\t\tthen\n\t\t\tcat tests/test-suite.log;\n\t\tfi\n\n\t\treturn ${RESULT};\n\tfi\n\treturn ${EXIT_SUCCESS};\n}\n\nrun_configure_make_check_with_asan()\n{\n\tlocal LDCONFIG=`which ldconfig 2> /dev/null`;\n\n\tif test -z ${LDCONFIG} || test ! -x ${LDCONFIG};\n\tthen\n\t\treturn ${EXIT_SUCCESS};\n\tfi\n\tlocal LIBASAN=`ldconfig -p | grep libasan | sed 's/^.* => //' | sort | tail -n 1`;\n\n\tif test -z ${LIBASAN} || test ! -f ${LIBASAN};\n\tthen\n\t\treturn ${EXIT_SUCCESS};\n\tfi\n\n\t# Using libasan is platform dependent.\n\texport CPPFLAGS=\"-DHAVE_ASAN\";\n\texport CFLAGS=\"-fno-omit-frame-pointer -fsanitize=address -g\";\n\texport LDFLAGS=\"-fsanitize=address -g\";\n\n\tif test -z ${CC} || test ${CC} != \"clang\";\n\tthen\n\t\tLDFLAGS=\"${LDFLAGS} -lasan\";\n\tfi\n\n\trun_configure_make $@;\n\tRESULT=$?;\n\n\texport CPPFLAGS=;\n\texport CFLAGS=;\n\texport LDFLAGS=;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\treturn ${RESULT};\n\tfi\n\n\tmake check CHECK_WITH_ASAN=1 CHECK_WITH_STDERR=1;\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\techo \"Running: 'make check' failed\";\n\n\t\tif test -f tests/test-suite.log;\n\t\tthen\n\t\t\tcat tests/test-suite.log;\n\t\tfi\n\n\t\treturn ${RESULT};\n\tfi\n\treturn ${RESULT};\n}\n\nrun_configure_make_check_with_coverage()\n{\n\t# Disable optimization so we can hook malloc and realloc.\n\texport CPPFLAGS=\"-DOPTIMIZATION_DISABLED\";\n\texport CFLAGS=\"--coverage -O0\";\n\texport LDFLAGS=\"--coverage\";\n\n\t# Disable creating a shared library so we can hook memset.\n\trun_configure_make_check $@;\n\tRESULT=$?;\n\n\texport CPPFLAGS=;\n\texport CFLAGS=;\n\texport LDFLAGS=;\n\n\treturn ${RESULT};\n}\n\nrun_configure_make_check_python()\n{\n\trun_configure_make $@;\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\treturn ${RESULT};\n\tfi\n\n\tmake check CHECK_WITH_STDERR=1 SKIP_LIBRARY_TESTS=1 SKIP_TOOLS_TESTS=1;\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\techo \"Running: 'make check' failed\";\n\n\t\tif test -f tests/test-suite.log;\n\t\tthen\n\t\t\tcat tests/test-suite.log;\n\t\tfi\n\n\t\treturn ${RESULT};\n\tfi\n\treturn ${EXIT_SUCCESS};\n}\n\nrun_setup_py_tests()\n{\n\t# Skip this test when running Cygwin on AppVeyor.\n\tif test -n \"${APPVEYOR}\" && test ${TARGET} = \"cygwin\";\n\tthen\n\t\techo \"Running: 'setup.py build' skipped\";\n\n\t\treturn ${EXIT_SUCCESS};\n\tfi\n\tPYTHON=$1;\n\n\t${PYTHON} setup.py build;\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\techo \"Running: 'setup.py build' failed\";\n\n\t\treturn ${RESULT};\n\tfi\n\treturn ${EXIT_SUCCESS};\n}\n\nPROJECT_NAME=`basename $PWD`;\n\nCONFIGURE_HELP=`./configure --help`;\n\necho \"${CONFIGURE_HELP}\" | grep -- '--enable-wide-character-type' > /dev/null;\n\nHAVE_ENABLE_WIDE_CHARACTER_TYPE=$?;\n\necho \"${CONFIGURE_HELP}\" | grep -- '--enable-verbose-output' > /dev/null;\n\nHAVE_ENABLE_VERBOSE_OUTPUT=$?;\n\necho \"${CONFIGURE_HELP}\" | grep -- '--enable-debug-output' > /dev/null;\n\nHAVE_ENABLE_DEBUG_OUTPUT=$?;\n\necho \"${CONFIGURE_HELP}\" | grep -- '--with-bzip2' > /dev/null;\n\nHAVE_WITH_BZIP2=$?;\n\necho \"${CONFIGURE_HELP}\" | grep -- '--with-libfuse' > /dev/null;\n\nHAVE_WITH_LIBFUSE=$?;\n\necho \"${CONFIGURE_HELP}\" | grep -- '--with-lzma' > /dev/null;\n\nHAVE_WITH_LZMA=$?;\n\necho \"${CONFIGURE_HELP}\" | grep -- '--with-pthread' > /dev/null;\n\nHAVE_WITH_PTHREAD=$?;\n\necho \"${CONFIGURE_HELP}\" | grep -- '--with-openssl' > /dev/null;\n\nHAVE_WITH_OPENSSL=$?;\n\necho \"${CONFIGURE_HELP}\" | grep -- '--with-zlib' > /dev/null;\n\nHAVE_WITH_ZLIB=$?;\n\necho \"${CONFIGURE_HELP}\" | grep -- '--enable-python' > /dev/null;\n\nHAVE_ENABLE_PYTHON=$?;\n\necho \"${CONFIGURE_HELP}\" | grep -- '--enable-static-executables' > /dev/null;\n\nHAVE_ENABLE_STATIC_EXECUTABLES=$?;\n\nPYTHON_CONFIG=\"\";\n\nif test -x /usr/bin/whereis;\nthen\n\tPYTHON_CONFIG=`/usr/bin/whereis python-config | sed 's/^.*:[ ]*//' 2> /dev/null`;\nfi\n\n# Test \"./configure && make && make check\" without options.\n\nrun_configure_make_check;\nRESULT=$?;\n\nif test ${RESULT} -ne ${EXIT_SUCCESS};\nthen\n\texit ${EXIT_FAILURE};\nfi\n\nif test ${HAVE_ENABLE_VERBOSE_OUTPUT} -eq 0 && test ${HAVE_ENABLE_DEBUG_OUTPUT} -eq 0;\nthen\n\t# Test \"./configure && make && make check\" with verbose and debug output.\n\n\trun_configure_make_check \"--enable-verbose-output --enable-debug-output\";\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\texit ${EXIT_FAILURE};\n\tfi\nfi\n\nif test ${HAVE_WITH_PTHREAD} -eq 0 && test ${PROJECT_NAME} != \"libcthreads\";\nthen\n\t# Test \"./configure && make && make check\" without multi-threading support.\n\n\trun_configure_make_check \"--with-pthread=no\";\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\texit ${EXIT_FAILURE};\n\tfi\nfi\n\nif test ${HAVE_WITH_ZLIB} -eq 0;\nthen\n\t# Test \"./configure && make && make check\" with fallback zlib implementation.\n\n\trun_configure_make_check \"--with-zlib=no\";\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\texit ${EXIT_FAILURE};\n\tfi\nfi\n\nif test ${HAVE_WITH_OPENSSL} -eq 0;\nthen\n\t# Test \"./configure && make && make check\" with fallback crypto implementation.\n\n\trun_configure_make_check \"--with-openssl=no\";\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\texit ${EXIT_FAILURE};\n\tfi\n\n\t# Test \"./configure && make && make check\" with OpenSSL non-EVP implementation.\n\n\trun_configure_make_check \"--enable-openssl-evp-cipher=no --enable-openssl-evp-md=no\";\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\texit ${EXIT_FAILURE};\n\tfi\n\n\t# Test \"./configure && make && make check\" with OpenSSL EVP implementation.\n\n\trun_configure_make_check \"--enable-openssl-evp-cipher=yes --enable-openssl-evp-md=yes\";\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\texit ${EXIT_FAILURE};\n\tfi\nfi\n\nif test ${HAVE_ENABLE_PYTHON} -eq 0 && test -n \"${PYTHON_CONFIG}\";\nthen\n\trun_configure_make_check_python \"--enable-python\";\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\texit ${EXIT_FAILURE};\n\tfi\n\n\tPYTHON=`which python 2> /dev/null`;\n\n\tif test -f \"setup.py\" && ! run_setup_py_tests ${PYTHON};\n\tthen\n\t\texit ${EXIT_FAILURE};\n\tfi\nfi\n\nif test ${HAVE_ENABLE_STATIC_EXECUTABLES} -eq 0;\nthen\n\tCONFIGURE_OPTIONS=\"--enable-static-executables --enable-multi-threading-support=no\";\n\n\tif test ${HAVE_WITH_BZIP2} -eq 0;\n\tthen\n\t\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --with-bzip2=no\";\n\tfi\n\tif test ${HAVE_WITH_LIBFUSE} -eq 0;\n\tthen\n\t\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --with-libfuse=no\";\n\tfi\n\tif test ${HAVE_WITH_LZMA} -eq 0;\n\tthen\n\t\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --with-lzma=no\";\n\tfi\n\tif test ${HAVE_WITH_OPENSSL} -eq 0;\n\tthen\n\t\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --with-openssl=no\";\n\tfi\n\tif test ${HAVE_WITH_ZLIB} -eq 0;\n\tthen\n\t\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --with-zlib=no\";\n\tfi\n\trun_configure_make_check ${CONFIGURE_OPTIONS};\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\texit ${EXIT_FAILURE};\n\tfi\nfi\n\n# Run tests with asan.\nCONFIGURE_OPTIONS=\"\";\n\nif test ${HAVE_ENABLE_WIDE_CHARACTER_TYPE} -eq 0;\nthen\n\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --enable-wide-character-type\";\nfi\nif test ${HAVE_WITH_BZIP2} -eq 0;\nthen\n\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --with-bzip2=no\";\nfi\nif test ${HAVE_WITH_LZMA} -eq 0;\nthen\n\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --with-lzma=no\";\nfi\nif test ${HAVE_WITH_OPENSSL} -eq 0;\nthen\n\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --with-openssl=no\";\nfi\nif test ${HAVE_WITH_ZLIB} -eq 0;\nthen\n\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --with-zlib=no\";\nfi\nif test ${HAVE_ENABLE_PYTHON} -eq 0 && test -n \"${PYTHON_CONFIG}\";\nthen\n\t# Issue with running the python bindings with asan disabled for now.\n\t# CONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --enable-python\";\n\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS}\";\nfi\n\nrun_configure_make_check_with_asan ${CONFIGURE_OPTIONS};\nRESULT=$?;\n\nif test ${RESULT} -ne ${EXIT_SUCCESS};\nthen\n\texit ${EXIT_FAILURE};\nfi\n\n# Run tests with coverage.\nCONFIGURE_OPTIONS=\"--enable-shared=no\";\n\nif test ${HAVE_ENABLE_WIDE_CHARACTER_TYPE} -eq 0;\nthen\n\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --enable-wide-character-type\";\nfi\nif test ${HAVE_WITH_BZIP2} -eq 0;\nthen\n\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --with-bzip2=no\";\nfi\nif test ${HAVE_WITH_LZMA} -eq 0;\nthen\n\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --with-lzma=no\";\nfi\nif test ${HAVE_WITH_OPENSSL} -eq 0;\nthen\n\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --with-openssl=no\";\nfi\nif test ${HAVE_WITH_ZLIB} -eq 0;\nthen\n\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --with-zlib=no\";\nfi\n\nrun_configure_make_check_with_coverage ${CONFIGURE_OPTIONS};\nRESULT=$?;\n\nif test ${RESULT} -ne ${EXIT_SUCCESS};\nthen\n\texit ${EXIT_FAILURE};\nfi\n\nexit ${EXIT_SUCCESS};\n\n"
  },
  {
    "path": "synclibs.ps1",
    "content": "# Script that synchronizes the local library dependencies\n#\n# Version: 20180125\n\nParam (\n\t[switch]$UseHead = $false\n)\n\n$GitUrlPrefix = \"https://github.com/libyal\"\n$LocalLibs = \"libbfio libcdata libcerror libcfile libclocale libcnotify libcpath libcsplit libcthreads libfcache libfdata libfdatetime libfguid libfusn libfwnt libuna\"\n$LocalLibs = ${LocalLibs} -split \" \"\n\n$Git = \"git\"\n$WinFlex = \"..\\win_flex_bison\\win_flex.exe\"\n$WinBison = \"..\\win_flex_bison\\win_bison.exe\"\n\nForEach (${LocalLib} in ${LocalLibs})\n{\n\t# Split will return an array of a single empty string when LocalLibs is empty.\n\tIf (-Not (${LocalLib}))\n\t{\n\t\tContinue\n\t}\n\t$GitUrl = \"${GitUrlPrefix}/${LocalLib}.git\"\n\n\t# PowerShell will raise NativeCommandError if git writes to stdout or stderr\n\t# therefore 2>&1 is added and the output is stored in a variable.\n\t$Output = Invoke-Expression -Command \"${Git} clone ${GitUrl} ${LocalLib}-${pid} 2>&1\"\n\n\tPush-Location \"${LocalLib}-${pid}\"\n\n\tTry\n\t{\n\t\t$Output = Invoke-Expression -Command \"${Git} fetch --quiet --all --tags --prune 2>&1\"\n\n\t\t$LatestTag = Invoke-Expression -Command \"${Git} describe --tags --abbrev=0 2>&1\"\n\n\t\tIf (${LatestTag} -and -not ${UseHead})\n\t\t{\n\t\t\tWrite-Host \"Synchronizing: ${LocalLib} from ${GitUrl} tag ${LatestTag}\"\n\n\t\t\t$Output = Invoke-Expression -Command \"${Git} checkout --quiet tags/${LatestTag} 2>&1\"\n\t\t}\n\t\tElse\n\t\t{\n\t\t\tWrite-Host \"Synchronizing: ${LocalLib} from ${GitUrl} HEAD\"\n\t\t}\n\t}\n\tFinally\n\t{\n\t\tPop-Location\n\t}\n\tIf (Test-Path ${LocalLib}-${pid})\n\t{\n\t\t$LocalLibVersion = Get-Content -Path ${LocalLib}-${pid}\\configure.ac | select -skip 4 -first 1 | % { $_ -Replace \" \\[\",\"\" } | % { $_ -Replace \"\\],\",\"\" }\n\n\t\tIf (Test-Path ${LocalLib})\n\t\t{\n\t\t\tRemove-Item -Path ${LocalLib} -Force -Recurse\n\t\t}\n\t\tNew-Item -ItemType directory -Path ${LocalLib} -Force | Out-Null\n\n\t\tIf (Test-Path ${LocalLib})\n\t\t{\n\t\t\tCopy-Item -Path ${LocalLib}-${pid}\\${LocalLib}\\*.[chly] -Destination ${LocalLib}\\\n\t\t\tGet-Content -Path ${LocalLib}-${pid}\\${LocalLib}\\${LocalLib}_definitions.h.in | % { $_ -Replace \"@VERSION@\",${LocalLibVersion} } > ${LocalLib}\\${LocalLib}_definitions.h\n\t\t}\n\t\tRemove-Item -Path ${LocalLib}-${pid} -Force -Recurse\n\n\t\t$NamePrefix = \"\"\n\n\t\tForEach (${DirectoryElement} in Get-ChildItem -Path \"${LocalLib}\\*.l\")\n\t\t{\n\t\t\t$OutputFile = ${DirectoryElement} -Replace \".l$\",\".c\"\n\n\t\t\t$NamePrefix = Split-Path -path ${DirectoryElement} -leaf\n\t\t\t$NamePrefix = ${NamePrefix} -Replace \"^${LocalLib}_\",\"\"\n\t\t\t$NamePrefix = ${NamePrefix} -Replace \".l$\",\"_\"\n\n\t\t\t# PowerShell will raise NativeCommandError if win_flex writes to stdout or stderr\n\t\t\t# therefore 2>&1 is added and the output is stored in a variable.\n\t\t\t$Output = Invoke-Expression -Command \"& '${WinFlex}' -Cf ${DirectoryElement} 2>&1\"\n\t\t\tWrite-Host ${Output}\n\n\t\t\t# Moving manually sicne win_flex -o <filename> does not provide the expected behavior.\n\t\t\tMove-Item \"lex.yy.c\" ${OutputFile} -force\n\t\t}\n\n\t\tForEach (${DirectoryElement} in Get-ChildItem -Path \"${LocalLib}\\*.y\")\n\t\t{\n\t\t\t$OutputFile = ${DirectoryElement} -Replace \".y$\",\".c\"\n\n\t\t\t# PowerShell will raise NativeCommandError if win_bison writes to stdout or stderr\n\t\t\t# therefore 2>&1 is added and the output is stored in a variable.\n\t\t\t$Output = Invoke-Expression -Command \"& '${WinBison}' -d -v -l -p ${NamePrefix} -o ${OutputFile} ${DirectoryElement} 2>&1\"\n\t\t\tWrite-Host ${Output}\n\t\t}\n\t}\n}\n\n"
  },
  {
    "path": "synclibs.sh",
    "content": "#!/bin/sh\n# Script that synchronizes the local library dependencies\n#\n# Version: 20240414\n\nEXIT_SUCCESS=0;\nEXIT_FAILURE=1;\n\nGIT_URL_PREFIX=\"https://github.com/libyal\";\nLOCAL_LIBS=\"libbfio libcdata libcerror libcfile libclocale libcnotify libcpath libcsplit libcthreads libfcache libfdata libfdatetime libfguid libfusn libfwnt libuna\";\n\nOLDIFS=$IFS;\nIFS=\" \";\n\nfor LOCAL_LIB in ${LOCAL_LIBS};\ndo\n\tGIT_URL=\"${GIT_URL_PREFIX}/${LOCAL_LIB}.git\";\n\n\tgit clone --quiet ${GIT_URL} ${LOCAL_LIB}-$$;\n\n\tif ! test -d ${LOCAL_LIB}-$$;\n\tthen\n\t\techo \"Unable to git clone: ${GIT_URL}\";\n\n\t\tIFS=$OLDIFS;\n\n\t\texit ${EXIT_FAILURE};\n\tfi\n\t(cd ${LOCAL_LIB}-$$ && git fetch --quiet --all --tags --prune)\n\n\tLATEST_TAG=`cd ${LOCAL_LIB}-$$ && git describe --tags --abbrev=0`;\n\n\tif test -n ${LATEST_TAG} && test \"$1\" != \"--use-head\";\n\tthen\n\t\techo \"Synchronizing: ${LOCAL_LIB} from ${GIT_URL} tag ${LATEST_TAG}\";\n\n\t\t(cd ${LOCAL_LIB}-$$ && git checkout --quiet tags/${LATEST_TAG});\n\telse\n\t\techo \"Synchronizing: ${LOCAL_LIB} from ${GIT_URL} HEAD\";\n\tfi\n\n\trm -rf ${LOCAL_LIB};\n\tmkdir ${LOCAL_LIB};\n\n\tif ! test -d ${LOCAL_LIB};\n\tthen\n\t\techo \"Missing directory: ${LOCAL_LIB}\";\n\n\t\tIFS=$OLDIFS;\n\n\t\texit ${EXIT_FAILURE};\n\tfi\n\n\tLOCAL_LIB_UPPER=`echo \"${LOCAL_LIB}\" | tr \"[a-z]\" \"[A-Z]\"`;\n\t# Note that sed on FreeBSD does not support \\s hence that we use [[:space:]] instead.\n\tLOCAL_LIB_VERSION=`grep -A 2 AC_INIT ${LOCAL_LIB}-$$/configure.ac | tail -n 1 | sed 's/^[[:space:]]*\\[\\([0-9]*\\)\\],[[:space:]]*$/\\1/'`;\n\tLOCAL_LIB_MAKEFILE_AM=\"${LOCAL_LIB}/Makefile.am\";\n\n\tcp ${LOCAL_LIB}-$$/${LOCAL_LIB}/*.[chly] ${LOCAL_LIB};\n\tcp ${LOCAL_LIB}-$$/${LOCAL_LIB_MAKEFILE_AM} ${LOCAL_LIB_MAKEFILE_AM};\n\n\t# Make the necessary changes to libyal/Makefile.am\n\nSED_SCRIPT=\"/AM_CPPFLAGS = / {\n\ti\\\\\nif HAVE_LOCAL_${LOCAL_LIB_UPPER}\n}\n\n/lib_LTLIBRARIES = / {\n\ts/lib_LTLIBRARIES/noinst_LTLIBRARIES/\n}\n\n/${LOCAL_LIB}\\.c/ {\n\td\n}\n\n/${LOCAL_LIB}_la_LIBADD/ {\n:loop1\n\t/${LOCAL_LIB}_la_LDFLAGS/ {\n\t\tN\n\t\ti\\\\\nendif\n\t\td\n\t}\n\t/${LOCAL_LIB}_la_LDFLAGS/ !{\n\t\tN\n\t\tb loop1\n\t}\n}\n\n/${LOCAL_LIB}_la_LDFLAGS/ {\n\tN\n\ti\\\\\nendif\n\td\n}\n\n/DISTCLEANFILES = / {\n\tn\n\t/${LOCAL_LIB}_definitions.h/ {\n\t\td\n\t}\n}\";\n\techo \"${SED_SCRIPT}\" >> ${LOCAL_LIB}-$$.sed;\n\tsed -i'~' -f ${LOCAL_LIB}-$$.sed ${LOCAL_LIB_MAKEFILE_AM};\n\trm -f ${LOCAL_LIB}-$$.sed;\n\n\tsed -i'~' \"/AM_CPPFLAGS = /,/noinst_LTLIBRARIES = / { N; s/\\\\\\\\\\\\n.@${LOCAL_LIB_UPPER}_DLL_EXPORT@//; P; D; }\" ${LOCAL_LIB_MAKEFILE_AM};\n\tsed -i'~' \"/${LOCAL_LIB}_definitions.h.in/d\" ${LOCAL_LIB_MAKEFILE_AM};\n\tsed -i'~' \"/${LOCAL_LIB}\\\\.rc/d\" ${LOCAL_LIB_MAKEFILE_AM};\n\n\tif test ${LOCAL_LIB} = \"libfplist\";\n\tthen\n\t\t# TODO: make this more generic to strip the last \\\\\n\t\tsed -i'~' '/EXTRA_DIST = /,/^$/s/libfplist_xml_scanner.c \\\\/libfplist_xml_scanner.c/' ${LOCAL_LIB_MAKEFILE_AM};\n\n\telif test ${LOCAL_LIB} = \"libodraw\";\n\tthen\n\t\t# TODO: make this more generic to strip the last \\\\\n\t\tsed -i'~' '/EXTRA_DIST = /,/^$/s/libodraw_cue_scanner.c \\\\/libodraw_cue_scanner.c/' ${LOCAL_LIB_MAKEFILE_AM};\n\n\telse\n\t\tsed -i'~' '/EXTRA_DIST = /,/^$/d' ${LOCAL_LIB_MAKEFILE_AM};\n\tfi\n\nSED_SCRIPT=\"/^$/ {\n\tx\n\tN\n\t/endif$/ {\n\t\ta\\\\\n\n\t\tD\n\t}\n}\";\n\techo \"${SED_SCRIPT}\" >> ${LOCAL_LIB}-$$.sed;\n\tsed -i'~' -f ${LOCAL_LIB}-$$.sed ${LOCAL_LIB_MAKEFILE_AM};\n\trm -f ${LOCAL_LIB}-$$.sed;\n\n\t# Make the necessary changes to libcfile/Makefile.am\n\tif test ${LOCAL_LIB} = \"libcfile\";\n\tthen\n\t\tif ! test -f \"m4/libuna.m4\";\n\t\tthen\n\t\t\tsed -i'~' 's?@LIBUNA_CPPFLAGS@?-I../libuna -I$(top_srcdir)/libuna?' ${LOCAL_LIB_MAKEFILE_AM};\n\t\tfi\n\tfi\n\n\t# Make the necessary changes to libfplist/Makefile.am\n\tif test ${LOCAL_LIB} = \"libfplist\";\n\tthen\n\t\tif test -f \"m4/libfdatetime.m4\";\n\t\tthen\n\t\t\tsed -i'~' '/@LIBFGUID_CPPFLAGS@/{h; s/FGUID/FDATETIME/; p; g;}' ${LOCAL_LIB_MAKEFILE_AM};\n\t\tfi\n\tfi\n\n\t# Make the necessary changes to libfvalue/Makefile.am\n\tif test ${LOCAL_LIB} = \"libfvalue\";\n\tthen\n\t\tif ! test -f \"m4/libfdatetime.m4\";\n\t\tthen\n\t\t\tsed -i'~' '/@LIBFDATETIME_CPPFLAGS@/d' ${LOCAL_LIB_MAKEFILE_AM};\n\t\tfi\n\t\tif ! test -f \"m4/libfguid.m4\";\n\t\tthen\n\t\t\tsed -i'~' '/@LIBFGUID_CPPFLAGS@/d' ${LOCAL_LIB_MAKEFILE_AM};\n\t\tfi\n\t\tif ! test -f \"m4/libfwnt.m4\";\n\t\tthen\n\t\t\tsed -i'~' '/@LIBFWNT_CPPFLAGS@/d' ${LOCAL_LIB_MAKEFILE_AM};\n\t\tfi\n\t\tif ! test -f \"m4/libuna.m4\";\n\t\tthen\n\t\t\tsed -i'~' '/@LIBUNA_CPPFLAGS@/d' ${LOCAL_LIB_MAKEFILE_AM};\n\t\tfi\n\tfi\n\n\t# Make the necessary changes to libsmraw/Makefile.am\n\tif test ${LOCAL_LIB} = \"libsmraw\";\n\tthen\n\t\tif test -f \"m4/libfdatetime.m4\";\n\t\tthen\n\t\t\tsed -i'~' '/@LIBFVALUE_CPPFLAGS@/{h; s/FVALUE/FDATETIME/; p; g;}' ${LOCAL_LIB_MAKEFILE_AM};\n\t\tfi\n\t\tif test -f \"m4/libfguid.m4\";\n\t\tthen\n\t\t\tsed -i'~' '/@LIBFVALUE_CPPFLAGS@/{h; s/FVALUE/FGUID/; p; g;}' ${LOCAL_LIB_MAKEFILE_AM};\n\t\tfi\n\tfi\n\n\t# Remove libyal/libyal.c\n\trm -f ${LOCAL_LIB}/${LOCAL_LIB}.c;\n\n\t# Make the necessary changes to libyal/libyal_defitions.h\n\tcp ${LOCAL_LIB}-$$/${LOCAL_LIB}/${LOCAL_LIB}_definitions.h.in ${LOCAL_LIB}/${LOCAL_LIB}_definitions.h;\n\tsed -i'~' \"s/@VERSION@/${LOCAL_LIB_VERSION}/\" ${LOCAL_LIB}/${LOCAL_LIB}_definitions.h;\n\n\trm -rf ${LOCAL_LIB}-$$;\ndone\n\nIFS=$OLDIFS;\n\nexit ${EXIT_SUCCESS};\n\n"
  },
  {
    "path": "tests/Makefile.am",
    "content": "AUTOMAKE_OPTIONS = subdir-objects\n\nAM_CPPFLAGS = \\\n\t-I../include -I$(top_srcdir)/include \\\n\t-I../common -I$(top_srcdir)/common \\\n\t@LIBCERROR_CPPFLAGS@ \\\n\t@LIBCTHREADS_CPPFLAGS@ \\\n\t@LIBCDATA_CPPFLAGS@ \\\n\t@LIBCLOCALE_CPPFLAGS@ \\\n\t@LIBCNOTIFY_CPPFLAGS@ \\\n\t@LIBCSPLIT_CPPFLAGS@ \\\n\t@LIBUNA_CPPFLAGS@ \\\n\t@LIBCFILE_CPPFLAGS@ \\\n\t@LIBCPATH_CPPFLAGS@ \\\n\t@LIBBFIO_CPPFLAGS@ \\\n\t@LIBFCACHE_CPPFLAGS@ \\\n\t@LIBFDATA_CPPFLAGS@ \\\n\t@LIBFDATETIME_CPPFLAGS@ \\\n\t@LIBFGUID_CPPFLAGS@ \\\n\t@LIBFWNT_CPPFLAGS@ \\\n\t@LIBFSREFS_DLL_IMPORT@\n\nTESTS = \\\n\ttest_library.sh \\\n\ttest_tools.sh \\\n\ttest_fsrefsinfo.sh\n\ncheck_SCRIPTS = \\\n\ttest_fsrefsinfo.sh \\\n\ttest_library.sh \\\n\ttest_runner.sh \\\n\ttest_tools.sh\n\nEXTRA_DIST = \\\n\t$(check_SCRIPTS)\n\ncheck_PROGRAMS = \\\n\tfsrefs_test_attribute_values \\\n\tfsrefs_test_block_descriptor \\\n\tfsrefs_test_block_reference \\\n\tfsrefs_test_block_tree \\\n\tfsrefs_test_block_tree_node \\\n\tfsrefs_test_checkpoint \\\n\tfsrefs_test_data_run \\\n\tfsrefs_test_directory_entry \\\n\tfsrefs_test_directory_object \\\n\tfsrefs_test_error \\\n\tfsrefs_test_file_entry \\\n\tfsrefs_test_file_system \\\n\tfsrefs_test_io_handle \\\n\tfsrefs_test_metadata_block_header \\\n\tfsrefs_test_ministore_node \\\n\tfsrefs_test_node_header \\\n\tfsrefs_test_node_record \\\n\tfsrefs_test_notify \\\n\tfsrefs_test_objects_tree \\\n\tfsrefs_test_superblock \\\n\tfsrefs_test_support \\\n\tfsrefs_test_tools_info_handle \\\n\tfsrefs_test_tools_output \\\n\tfsrefs_test_tools_signal \\\n\tfsrefs_test_tree_header \\\n\tfsrefs_test_volume \\\n\tfsrefs_test_volume_header\n\nfsrefs_test_attribute_values_SOURCES = \\\n\tfsrefs_test_attribute_values.c \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_attribute_values_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_block_descriptor_SOURCES = \\\n\tfsrefs_test_block_descriptor.c \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_block_descriptor_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_block_reference_SOURCES = \\\n\tfsrefs_test_block_reference.c \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_block_reference_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_block_tree_SOURCES = \\\n\tfsrefs_test_block_tree.c \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_block_tree_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_block_tree_node_SOURCES = \\\n\tfsrefs_test_block_tree_node.c \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_block_tree_node_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_checkpoint_SOURCES = \\\n\tfsrefs_test_checkpoint.c \\\n\tfsrefs_test_functions.c fsrefs_test_functions.h \\\n\tfsrefs_test_libbfio.h \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_checkpoint_LDADD = \\\n\t@LIBBFIO_LIBADD@ \\\n\t@LIBCPATH_LIBADD@ \\\n\t@LIBCFILE_LIBADD@ \\\n\t@LIBUNA_LIBADD@ \\\n\t@LIBCSPLIT_LIBADD@ \\\n\t@LIBCNOTIFY_LIBADD@ \\\n\t@LIBCLOCALE_LIBADD@ \\\n\t@LIBCDATA_LIBADD@ \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_data_run_SOURCES = \\\n\tfsrefs_test_data_run.c \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_data_run_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_directory_entry_SOURCES = \\\n\tfsrefs_test_directory_entry.c \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_directory_entry_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_directory_object_SOURCES = \\\n\tfsrefs_test_directory_object.c \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_directory_object_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_error_SOURCES = \\\n\tfsrefs_test_error.c \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_error_LDADD = \\\n\t../libfsrefs/libfsrefs.la\n\nfsrefs_test_file_entry_SOURCES = \\\n\tfsrefs_test_file_entry.c \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_file_entry_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@ \\\n\t@PTHREAD_LIBADD@\n\nfsrefs_test_file_system_SOURCES = \\\n\tfsrefs_test_file_system.c \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_file_system_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_io_handle_SOURCES = \\\n\tfsrefs_test_io_handle.c \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_io_handle_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_metadata_block_header_SOURCES = \\\n\tfsrefs_test_functions.c fsrefs_test_functions.h \\\n\tfsrefs_test_libbfio.h \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_metadata_block_header.c \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_metadata_block_header_LDADD = \\\n\t@LIBBFIO_LIBADD@ \\\n\t@LIBCPATH_LIBADD@ \\\n\t@LIBCFILE_LIBADD@ \\\n\t@LIBUNA_LIBADD@ \\\n\t@LIBCSPLIT_LIBADD@ \\\n\t@LIBCNOTIFY_LIBADD@ \\\n\t@LIBCLOCALE_LIBADD@ \\\n\t@LIBCDATA_LIBADD@ \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_ministore_node_SOURCES = \\\n\tfsrefs_test_functions.c fsrefs_test_functions.h \\\n\tfsrefs_test_libbfio.h \\\n\tfsrefs_test_ministore_node.c \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_ministore_node_LDADD = \\\n\t@LIBBFIO_LIBADD@ \\\n\t@LIBCPATH_LIBADD@ \\\n\t@LIBCFILE_LIBADD@ \\\n\t@LIBUNA_LIBADD@ \\\n\t@LIBCSPLIT_LIBADD@ \\\n\t@LIBCNOTIFY_LIBADD@ \\\n\t@LIBCLOCALE_LIBADD@ \\\n\t@LIBCDATA_LIBADD@ \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_node_header_SOURCES = \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_node_header.c \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_node_header_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_node_record_SOURCES = \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_node_record.c \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_node_record_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_notify_SOURCES = \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_notify.c \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_notify_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_objects_tree_SOURCES = \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_objects_tree.c \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_objects_tree_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_superblock_SOURCES = \\\n\tfsrefs_test_functions.c fsrefs_test_functions.h \\\n\tfsrefs_test_libbfio.h \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_superblock.c \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_superblock_LDADD = \\\n\t@LIBBFIO_LIBADD@ \\\n\t@LIBCPATH_LIBADD@ \\\n\t@LIBCFILE_LIBADD@ \\\n\t@LIBUNA_LIBADD@ \\\n\t@LIBCSPLIT_LIBADD@ \\\n\t@LIBCNOTIFY_LIBADD@ \\\n\t@LIBCLOCALE_LIBADD@ \\\n\t@LIBCDATA_LIBADD@ \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_support_SOURCES = \\\n\tfsrefs_test_functions.c fsrefs_test_functions.h \\\n\tfsrefs_test_getopt.c fsrefs_test_getopt.h \\\n\tfsrefs_test_libbfio.h \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libclocale.h \\\n\tfsrefs_test_libcnotify.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_libuna.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_support.c \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_support_LDADD = \\\n\t@LIBBFIO_LIBADD@ \\\n\t@LIBCPATH_LIBADD@ \\\n\t@LIBCFILE_LIBADD@ \\\n\t@LIBUNA_LIBADD@ \\\n\t@LIBCSPLIT_LIBADD@ \\\n\t@LIBCNOTIFY_LIBADD@ \\\n\t@LIBCLOCALE_LIBADD@ \\\n\t@LIBCDATA_LIBADD@ \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_tools_info_handle_SOURCES = \\\n\t../fsrefstools/info_handle.c ../fsrefstools/info_handle.h \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_tools_info_handle.c \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_tools_info_handle_LDADD = \\\n\t@LIBBFIO_LIBADD@ \\\n\t@LIBCPATH_LIBADD@ \\\n\t@LIBCFILE_LIBADD@ \\\n\t@LIBUNA_LIBADD@ \\\n\t@LIBCSPLIT_LIBADD@ \\\n\t@LIBCNOTIFY_LIBADD@ \\\n\t@LIBCLOCALE_LIBADD@ \\\n\t@LIBCDATA_LIBADD@ \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_tools_output_SOURCES = \\\n\t../fsrefstools/fsrefstools_output.c ../fsrefstools/fsrefstools_output.h \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_tools_output.c \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_tools_output_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_tools_signal_SOURCES = \\\n\t../fsrefstools/fsrefstools_signal.c ../fsrefstools/fsrefstools_signal.h \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_tools_signal.c \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_tools_signal_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_tree_header_SOURCES = \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_tree_header.c \\\n\tfsrefs_test_unused.h\n\nfsrefs_test_tree_header_LDADD = \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nfsrefs_test_volume_SOURCES = \\\n\tfsrefs_test_functions.c fsrefs_test_functions.h \\\n\tfsrefs_test_getopt.c fsrefs_test_getopt.h \\\n\tfsrefs_test_libbfio.h \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libclocale.h \\\n\tfsrefs_test_libcnotify.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_libuna.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_unused.h \\\n\tfsrefs_test_volume.c\n\nfsrefs_test_volume_LDADD = \\\n\t@LIBBFIO_LIBADD@ \\\n\t@LIBCPATH_LIBADD@ \\\n\t@LIBCFILE_LIBADD@ \\\n\t@LIBUNA_LIBADD@ \\\n\t@LIBCSPLIT_LIBADD@ \\\n\t@LIBCNOTIFY_LIBADD@ \\\n\t@LIBCLOCALE_LIBADD@ \\\n\t@LIBCDATA_LIBADD@ \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCTHREADS_LIBADD@ \\\n\t@LIBCERROR_LIBADD@ \\\n\t@PTHREAD_LIBADD@\n\nfsrefs_test_volume_header_SOURCES = \\\n\tfsrefs_test_functions.c fsrefs_test_functions.h \\\n\tfsrefs_test_libbfio.h \\\n\tfsrefs_test_libcerror.h \\\n\tfsrefs_test_libfsrefs.h \\\n\tfsrefs_test_macros.h \\\n\tfsrefs_test_memory.c fsrefs_test_memory.h \\\n\tfsrefs_test_unused.h \\\n\tfsrefs_test_volume_header.c\n\nfsrefs_test_volume_header_LDADD = \\\n\t@LIBBFIO_LIBADD@ \\\n\t@LIBCPATH_LIBADD@ \\\n\t@LIBCFILE_LIBADD@ \\\n\t@LIBUNA_LIBADD@ \\\n\t@LIBCSPLIT_LIBADD@ \\\n\t@LIBCNOTIFY_LIBADD@ \\\n\t@LIBCLOCALE_LIBADD@ \\\n\t@LIBCDATA_LIBADD@ \\\n\t../libfsrefs/libfsrefs.la \\\n\t@LIBCERROR_LIBADD@\n\nDISTCLEANFILES = \\\n\tMakefile \\\n\tMakefile.in \\\n\tnotify_stream.log\n\n"
  },
  {
    "path": "tests/build.sh",
    "content": "#!/bin/sh\n# Script to build from source\n#\n# Version: 20201121\n\nset -e\n\n./synclibs.sh --use-head\n./autogen.sh\n./configure \"$@\"\nmake > /dev/null\n\n"
  },
  {
    "path": "tests/fsrefs_test_attribute_values.c",
    "content": "/*\n * Library attribute_values type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_attribute_values.h\"\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_attribute_values_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_attribute_values_initialize(\n     void )\n{\n\tlibcerror_error_t *error                       = NULL;\n\tlibfsrefs_attribute_values_t *attribute_values = NULL;\n\tint result                                     = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests                = 2;\n\tint number_of_memset_fail_tests                = 1;\n\tint test_number                                = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_attribute_values_initialize(\n\t          &attribute_values,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"attribute_values\",\n\t attribute_values );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_attribute_values_free(\n\t          &attribute_values,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"attribute_values\",\n\t attribute_values );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_attribute_values_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tattribute_values = (libfsrefs_attribute_values_t *) 0x12345678UL;\n\n\tresult = libfsrefs_attribute_values_initialize(\n\t          &attribute_values,\n\t          &error );\n\n\tattribute_values = NULL;\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_attribute_values_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_attribute_values_initialize(\n\t\t          &attribute_values,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( attribute_values != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_attribute_values_free(\n\t\t\t\t &attribute_values,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"attribute_values\",\n\t\t\t attribute_values );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_attribute_values_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_attribute_values_initialize(\n\t\t          &attribute_values,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( attribute_values != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_attribute_values_free(\n\t\t\t\t &attribute_values,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"attribute_values\",\n\t\t\t attribute_values );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( attribute_values != NULL )\n\t{\n\t\tlibfsrefs_attribute_values_free(\n\t\t &attribute_values,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_attribute_values_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_attribute_values_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_attribute_values_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_attribute_values_initialize\",\n\t fsrefs_test_attribute_values_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_attribute_values_free\",\n\t fsrefs_test_attribute_values_free );\n\n\t/* TODO add tests for libfsrefs_attribute_values_read_non_resident */\n\t/* TODO add tests for libfsrefs_attribute_values_read_resident */\n\t/* TODO add tests for libfsrefs_attribute_values_read_node_record */\n\n\t/* TODO add tests for libfsrefs_attribute_values_get_utf8_name_size */\n\t/* TODO add tests for libfsrefs_attribute_values_get_utf8_name */\n\t/* TODO add tests for libfsrefs_attribute_values_get_utf16_name_size */\n\t/* TODO add tests for libfsrefs_attribute_values_get_utf16_name */\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_block_descriptor.c",
    "content": "/*\n * Library block_descriptor type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_block_descriptor.h\"\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_block_descriptor_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_block_descriptor_initialize(\n     void )\n{\n\tlibcerror_error_t *error                       = NULL;\n\tlibfsrefs_block_descriptor_t *block_descriptor = NULL;\n\tint result                                     = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests                = 1;\n\tint number_of_memset_fail_tests                = 1;\n\tint test_number                                = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_block_descriptor_initialize(\n\t          &block_descriptor,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"block_descriptor\",\n\t block_descriptor );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_block_descriptor_free(\n\t          &block_descriptor,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"block_descriptor\",\n\t block_descriptor );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_block_descriptor_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tblock_descriptor = (libfsrefs_block_descriptor_t *) 0x12345678UL;\n\n\tresult = libfsrefs_block_descriptor_initialize(\n\t          &block_descriptor,\n\t          &error );\n\n\tblock_descriptor = NULL;\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_block_descriptor_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_block_descriptor_initialize(\n\t\t          &block_descriptor,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( block_descriptor != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_block_descriptor_free(\n\t\t\t\t &block_descriptor,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"block_descriptor\",\n\t\t\t block_descriptor );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_block_descriptor_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_block_descriptor_initialize(\n\t\t          &block_descriptor,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( block_descriptor != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_block_descriptor_free(\n\t\t\t\t &block_descriptor,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"block_descriptor\",\n\t\t\t block_descriptor );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( block_descriptor != NULL )\n\t{\n\t\tlibfsrefs_block_descriptor_free(\n\t\t &block_descriptor,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_block_descriptor_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_block_descriptor_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_block_descriptor_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_block_descriptor_initialize\",\n\t fsrefs_test_block_descriptor_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_block_descriptor_free\",\n\t fsrefs_test_block_descriptor_free );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_block_reference.c",
    "content": "/*\n * Library block_reference type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_block_reference.h\"\n#include \"../libfsrefs/libfsrefs_io_handle.h\"\n\nuint8_t fsrefs_test_block_reference_data1[ 24 ] = {\n\t0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00,\n\t0x5d, 0x5f, 0xe6, 0x46, 0x0a, 0xde, 0xe1, 0xc4 };\n\nuint8_t fsrefs_test_block_reference_data2[ 44 ] = {\n\t0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x01, 0x08, 0x04, 0x00, 0x00, 0x00, 0xe2, 0xfb, 0xbe, 0x68 };\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_block_reference_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_block_reference_initialize(\n     void )\n{\n\tlibcerror_error_t *error                       = NULL;\n\tlibfsrefs_block_reference_t *block_reference = NULL;\n\tint result                                     = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests                = 1;\n\tint number_of_memset_fail_tests                = 1;\n\tint test_number                                = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_block_reference_initialize(\n\t          &block_reference,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"block_reference\",\n\t block_reference );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_block_reference_free(\n\t          &block_reference,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"block_reference\",\n\t block_reference );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_block_reference_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tblock_reference = (libfsrefs_block_reference_t *) 0x12345678UL;\n\n\tresult = libfsrefs_block_reference_initialize(\n\t          &block_reference,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tblock_reference = NULL;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_block_reference_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_block_reference_initialize(\n\t\t          &block_reference,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( block_reference != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_block_reference_free(\n\t\t\t\t &block_reference,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"block_reference\",\n\t\t\t block_reference );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_block_reference_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_block_reference_initialize(\n\t\t          &block_reference,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( block_reference != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_block_reference_free(\n\t\t\t\t &block_reference,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"block_reference\",\n\t\t\t block_reference );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( block_reference != NULL )\n\t{\n\t\tlibfsrefs_block_reference_free(\n\t\t &block_reference,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_block_reference_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_block_reference_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_block_reference_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_block_reference_read_data function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_block_reference_read_data(\n     void )\n{\n\tlibcerror_error_t *error                       = NULL;\n\tlibfsrefs_block_reference_t *block_reference = NULL;\n\tlibfsrefs_io_handle_t *io_handle               = NULL;\n\tint result                                     = 0;\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tio_handle->metadata_block_size  = 16384;\n\tio_handle->major_format_version = 1;\n\n\tresult = libfsrefs_block_reference_initialize(\n\t          &block_reference,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"block_reference\",\n\t block_reference );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_block_reference_read_data(\n\t          block_reference,\n\t          io_handle,\n\t          fsrefs_test_block_reference_data1,\n\t          24,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_block_reference_read_data(\n\t          NULL,\n\t          io_handle,\n\t          fsrefs_test_block_reference_data1,\n\t          24,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_block_reference_read_data(\n\t          block_reference,\n\t          NULL,\n\t          fsrefs_test_block_reference_data1,\n\t          24,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_block_reference_read_data(\n\t          block_reference,\n\t          io_handle,\n\t          NULL,\n\t          24,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_block_reference_read_data(\n\t          block_reference,\n\t          io_handle,\n\t          fsrefs_test_block_reference_data1,\n\t          (size_t) SSIZE_MAX + 1,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_block_reference_read_data(\n\t          block_reference,\n\t          io_handle,\n\t          fsrefs_test_block_reference_data1,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n/* TODO: Test error case where data is invalid\n */\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_block_reference_free(\n\t          &block_reference,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"block_reference\",\n\t block_reference );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_io_handle_free(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tio_handle->metadata_block_size  = 4096;\n\tio_handle->major_format_version = 3;\n\n\tresult = libfsrefs_block_reference_initialize(\n\t          &block_reference,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"block_reference\",\n\t block_reference );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_block_reference_read_data(\n\t          block_reference,\n\t          io_handle,\n\t          fsrefs_test_block_reference_data2,\n\t          44,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_block_reference_free(\n\t          &block_reference,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"block_reference\",\n\t block_reference );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_io_handle_free(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( block_reference != NULL )\n\t{\n\t\tlibfsrefs_block_reference_free(\n\t\t &block_reference,\n\t\t NULL );\n\t}\n\tif( io_handle != NULL )\n\t{\n\t\tlibfsrefs_io_handle_free(\n\t\t &io_handle,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_block_reference_initialize\",\n\t fsrefs_test_block_reference_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_block_reference_free\",\n\t fsrefs_test_block_reference_free );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_block_reference_read_data\",\n\t fsrefs_test_block_reference_read_data );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_block_tree.c",
    "content": "/*\n * Library block_tree functions testing program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_block_descriptor.h\"\n#include \"../libfsrefs/libfsrefs_block_tree.h\"\n#include \"../libfsrefs/libfsrefs_block_tree_node.h\"\n#include \"../libfsrefs/libfsrefs_definitions.h\"\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_block_tree_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_block_tree_initialize(\n     void )\n{\n\tlibcerror_error_t *error           = NULL;\n\tlibfsrefs_block_tree_t *block_tree = NULL;\n\tint result                         = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests    = 2;\n\tint number_of_memset_fail_tests    = 1;\n\tint test_number                    = 0;\n#endif\n\n\t/* Test block_tree initialization\n\t */\n\tresult = libfsrefs_block_tree_initialize(\n\t          &block_tree,\n\t          0x800000000UL,\n\t          0x4000,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"block_tree\",\n\t block_tree );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_block_tree_free(\n\t          &block_tree,\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"block_tree\",\n\t block_tree );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_block_tree_initialize(\n\t          NULL,\n\t          0x800000000UL,\n\t          0x4000,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tblock_tree = (libfsrefs_block_tree_t *) 0x12345678UL;\n\n\tresult = libfsrefs_block_tree_initialize(\n\t          &block_tree,\n\t          0x800000000UL,\n\t          0x4000,\n\t          &error );\n\n\tblock_tree = NULL;\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_block_tree_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_block_tree_initialize(\n\t\t          &block_tree,\n\t\t          0x800000000UL,\n\t\t          0x4000,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( block_tree != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_block_tree_free(\n\t\t\t\t &block_tree,\n\t\t\t\t NULL,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"block_tree\",\n\t\t\t block_tree );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_block_tree_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_block_tree_initialize(\n\t\t          &block_tree,\n\t\t          0x800000000UL,\n\t\t          0x4000,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( block_tree != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_block_tree_free(\n\t\t\t\t &block_tree,\n\t\t\t\t NULL,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"block_tree\",\n\t\t\t block_tree );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( block_tree != NULL )\n\t{\n\t\tlibfsrefs_block_tree_free(\n\t\t &block_tree,\n\t\t NULL,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_block_tree_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_block_tree_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_block_tree_free(\n\t          NULL,\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_block_tree_get_block_descriptor_by_offset function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_block_tree_get_block_descriptor_by_offset(\n     void )\n{\n\tlibcerror_error_t *error                      = NULL;\n\tlibfsrefs_block_descriptor_t *block_descriptor = NULL;\n\tlibfsrefs_block_tree_t *block_tree             = NULL;\n\toff64_t block_offset                          = 0;\n\tint result                                    = 0;\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_block_tree_initialize(\n\t          &block_tree,\n\t          0x800000000UL,\n\t          0x4000,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"block_tree\",\n\t block_tree );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_block_tree_get_block_descriptor_by_offset(\n\t          block_tree,\n\t          0,\n\t          &block_descriptor,\n\t          &block_offset,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"block_descriptor\",\n\t block_descriptor );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_block_tree_get_block_descriptor_by_offset(\n\t          NULL,\n\t          0,\n\t          &block_descriptor,\n\t          &block_offset,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_block_tree_get_block_descriptor_by_offset(\n\t          block_tree,\n\t          0,\n\t          NULL,\n\t          &block_offset,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_block_tree_get_block_descriptor_by_offset(\n\t          block_tree,\n\t          0,\n\t          &block_descriptor,\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_block_tree_free(\n\t          &block_tree,\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"block_tree\",\n\t block_tree );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( block_tree != NULL )\n\t{\n\t\tlibfsrefs_block_tree_free(\n\t\t &block_tree,\n\t\t NULL,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_block_tree_insert_block_descriptor_by_offset function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_block_tree_insert_block_descriptor_by_offset(\n     void )\n{\n\tlibcerror_error_t *error                               = NULL;\n\tlibfsrefs_block_descriptor_t *block_descriptor          = NULL;\n\tlibfsrefs_block_descriptor_t *existing_block_descriptor = NULL;\n\tlibfsrefs_block_tree_t *block_tree                      = NULL;\n\tlibfsrefs_block_tree_node_t *leaf_block_tree_node       = NULL;\n\tint leaf_value_index                                   = 0;\n\tint result                                             = 0;\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_block_tree_initialize(\n\t          &block_tree,\n\t          0x800000000UL,\n\t          0x4000,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"block_tree\",\n\t block_tree );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_block_descriptor_initialize(\n\t          &block_descriptor,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"block_descriptor\",\n\t block_descriptor );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_block_tree_insert_block_descriptor_by_offset(\n\t          block_tree,\n\t          0,\n\t          block_descriptor,\n\t          &leaf_value_index,\n\t          &leaf_block_tree_node,\n\t          &existing_block_descriptor,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"leaf_value_index\",\n\t leaf_value_index,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"leaf_block_tree_node\",\n\t leaf_block_tree_node );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"existing_block_descriptor\",\n\t existing_block_descriptor );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_block_tree_insert_block_descriptor_by_offset(\n\t          block_tree,\n\t          0,\n\t          NULL,\n\t          &leaf_value_index,\n\t          &leaf_block_tree_node,\n\t          &existing_block_descriptor,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"leaf_value_index\",\n\t leaf_value_index,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"leaf_block_tree_node\",\n\t leaf_block_tree_node );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"existing_block_descriptor\",\n\t existing_block_descriptor );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_block_tree_insert_block_descriptor_by_offset(\n\t          NULL,\n\t          0,\n\t          block_descriptor,\n\t          &leaf_value_index,\n\t          &leaf_block_tree_node,\n\t          &existing_block_descriptor,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_block_tree_insert_block_descriptor_by_offset(\n\t          block_tree,\n\t          0,\n\t          block_descriptor,\n\t          NULL,\n\t          &leaf_block_tree_node,\n\t          &existing_block_descriptor,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_block_tree_insert_block_descriptor_by_offset(\n\t          block_tree,\n\t          0,\n\t          block_descriptor,\n\t          &leaf_value_index,\n\t          NULL,\n\t          &existing_block_descriptor,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_block_tree_insert_block_descriptor_by_offset(\n\t          block_tree,\n\t          0,\n\t          block_descriptor,\n\t          &leaf_value_index,\n\t          &leaf_block_tree_node,\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_block_descriptor_free(\n\t          &block_descriptor,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"block_descriptor\",\n\t block_descriptor );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_block_tree_free(\n\t          &block_tree,\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"block_tree\",\n\t block_tree );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( block_descriptor != NULL )\n\t{\n\t\tlibfsrefs_block_descriptor_free(\n\t\t &block_descriptor,\n\t\t NULL );\n\t}\n\tif( block_tree != NULL )\n\t{\n\t\tlibfsrefs_block_tree_free(\n\t\t &block_tree,\n\t\t NULL,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_block_tree_initialize\",\n\t fsrefs_test_block_tree_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_block_tree_free\",\n\t fsrefs_test_block_tree_free );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_block_tree_get_block_descriptor_by_offset\",\n\t fsrefs_test_block_tree_get_block_descriptor_by_offset );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_block_tree_insert_block_descriptor_by_offset\",\n\t fsrefs_test_block_tree_insert_block_descriptor_by_offset );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_block_tree_node.c",
    "content": "/*\n * Library block_tree_node type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_block_tree_node.h\"\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_block_tree_node_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_block_tree_node_initialize(\n     void )\n{\n\tlibcerror_error_t *error                     = NULL;\n\tlibfsrefs_block_tree_node_t *block_tree_node = NULL;\n\tint result                                   = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests              = 1;\n\tint number_of_memset_fail_tests              = 1;\n\tint test_number                              = 0;\n#endif\n\n\t/* Test block_tree_node initialization\n\t */\n\tresult = libfsrefs_block_tree_node_initialize(\n\t          &block_tree_node,\n\t          0,\n\t          1024,\n\t          256,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"block_tree_node\",\n\t block_tree_node );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_block_tree_node_free(\n\t          &block_tree_node,\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"block_tree_node\",\n\t block_tree_node );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_block_tree_node_initialize(\n\t          NULL,\n\t          0,\n\t          1024,\n\t          256,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tblock_tree_node = (libfsrefs_block_tree_node_t *) 0x12345678UL;\n\n\tresult = libfsrefs_block_tree_node_initialize(\n\t          &block_tree_node,\n\t          0,\n\t          1024,\n\t          256,\n\t          &error );\n\n\tblock_tree_node = NULL;\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_block_tree_node_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_block_tree_node_initialize(\n\t\t          &block_tree_node,\n\t\t          0,\n\t\t          1024,\n\t\t          256,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( block_tree_node != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_block_tree_node_free(\n\t\t\t\t &block_tree_node,\n\t\t\t\t NULL,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"block_tree_node\",\n\t\t\t block_tree_node );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_block_tree_node_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_block_tree_node_initialize(\n\t\t          &block_tree_node,\n\t\t          0,\n\t\t          1024,\n\t\t          256,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( block_tree_node != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_block_tree_node_free(\n\t\t\t\t &block_tree_node,\n\t\t\t\t NULL,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"block_tree_node\",\n\t\t\t block_tree_node );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( block_tree_node != NULL )\n\t{\n\t\tlibfsrefs_block_tree_node_free(\n\t\t &block_tree_node,\n\t\t NULL,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_block_tree_node_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_block_tree_node_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_block_tree_node_free(\n\t          NULL,\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_block_tree_node_initialize\",\n\t fsrefs_test_block_tree_node_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_block_tree_node_free\",\n\t fsrefs_test_block_tree_node_free );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_checkpoint.c",
    "content": "/*\n * Library checkpoint type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_functions.h\"\n#include \"fsrefs_test_libbfio.h\"\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_checkpoint.h\"\n#include \"../libfsrefs/libfsrefs_io_handle.h\"\n\nuint8_t fsrefs_test_checkpoint_data1[ 16384 ] = {\n\t0x86, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x00, 0x80, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00,\n\t0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x01, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x98, 0x00, 0x00, 0x00,\n\t0xb0, 0x00, 0x00, 0x00, 0xc8, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0xf8, 0x00, 0x00, 0x00,\n\t0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x86, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00,\n\t0x21, 0xb4, 0x9b, 0xf3, 0x0e, 0x30, 0x1b, 0x04, 0x77, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00, 0x08, 0x82, 0x59, 0x6f, 0xe8, 0x40, 0x91, 0x5c,\n\t0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00,\n\t0x04, 0x58, 0xd4, 0x81, 0xfc, 0x0a, 0x62, 0x63, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00, 0xd4, 0x30, 0x83, 0x51, 0x87, 0xc2, 0xa6, 0x0a,\n\t0x2b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00,\n\t0xe0, 0x23, 0x95, 0xa9, 0xb7, 0x25, 0x6b, 0x91, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00, 0xf8, 0xa6, 0x9f, 0x06, 0xcc, 0xe8, 0xb8, 0x9e,\n\t0x7a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00,\n\t0x8e, 0x12, 0xdc, 0x1a, 0x4c, 0x39, 0x1a, 0xbb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };\n\nuint8_t fsrefs_test_checkpoint_data2[ 4096 ] = {\n\t0x43, 0x48, 0x4b, 0x50, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbb, 0xa7, 0xe0, 0x68,\n\t0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0xf8, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x01, 0x00, 0xd0, 0x00, 0x00, 0x00, 0x68, 0x00, 0x00, 0x00,\n\t0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x24, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x06, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,\n\t0x0d, 0x00, 0x00, 0x00, 0x38, 0x01, 0x00, 0x00, 0xa0, 0x01, 0x00, 0x00, 0x08, 0x02, 0x00, 0x00,\n\t0x70, 0x02, 0x00, 0x00, 0xd8, 0x02, 0x00, 0x00, 0x40, 0x03, 0x00, 0x00, 0xa8, 0x03, 0x00, 0x00,\n\t0x10, 0x04, 0x00, 0x00, 0x78, 0x04, 0x00, 0x00, 0xe0, 0x04, 0x00, 0x00, 0x48, 0x05, 0x00, 0x00,\n\t0xb0, 0x05, 0x00, 0x00, 0x18, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0xf8, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x01, 0x08, 0x04, 0x00, 0x00, 0x00, 0x90, 0xd2, 0xb8, 0x30, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb2, 0x33, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0xb3, 0x33, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb4, 0x33, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0xb5, 0x33, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00,\n\t0x39, 0xd3, 0x02, 0xec, 0xb0, 0x7f, 0x11, 0x95, 0x50, 0xb7, 0x6f, 0x52, 0x84, 0xe5, 0xff, 0xff,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x70, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x71, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x72, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x73, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00, 0x5b, 0xea, 0xb6, 0x64, 0xc8, 0xf1, 0x1f, 0x32,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x7d, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x7f, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00,\n\t0x07, 0x84, 0x26, 0xf2, 0x04, 0x48, 0x97, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0xa6, 0x32, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa7, 0x32, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0xa8, 0x32, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa9, 0x32, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00, 0x5d, 0xd1, 0xc6, 0xb2, 0x3d, 0x32, 0x04, 0xe0,\n\t0x19, 0x00, 0x0c, 0x04, 0x46, 0x4d, 0x73, 0x6c, 0x14, 0x19, 0x58, 0x16, 0xae, 0x11, 0xc2, 0x0c,\n\t0x10, 0xf0, 0x38, 0x52, 0x84, 0xe5, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x90, 0x75, 0x50, 0x84, 0xe5, 0xff, 0xff,\n\t0x50, 0x31, 0x99, 0x1c, 0x82, 0xce, 0xff, 0xff, 0x22, 0x33, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x23, 0x33, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x33, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x25, 0x33, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00,\n\t0x76, 0xaa, 0xec, 0x05, 0xaa, 0xfb, 0x89, 0xfb, 0x19, 0x00, 0x0c, 0x04, 0x46, 0x4d, 0x73, 0x6c,\n\t0x14, 0x39, 0x50, 0x16, 0xae, 0x11, 0xc2, 0x0c, 0xd0, 0x2c, 0x70, 0x52, 0x84, 0xe5, 0xff, 0xff,\n\t0x22, 0x79, 0x65, 0x73, 0x22, 0x3f, 0x3e, 0x0d, 0x0a, 0x3c, 0x61, 0x73, 0x73, 0x65, 0x6d, 0x62,\n\t0x10, 0x90, 0x75, 0x50, 0x84, 0xe5, 0xff, 0xff, 0x70, 0x0b, 0x8f, 0x1a, 0x82, 0xce, 0xff, 0xff,\n\t0x62, 0x33, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x63, 0x33, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x64, 0x33, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x65, 0x33, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00, 0x74, 0x6a, 0x7e, 0x96, 0x91, 0xd1, 0x55, 0xc4,\n\t0x19, 0x00, 0x3c, 0x04, 0x46, 0x4d, 0x73, 0x6c, 0xc4, 0x74, 0x5e, 0x16, 0xae, 0x11, 0xc2, 0x0c,\n\t0x90, 0x34, 0x71, 0x52, 0x84, 0xe5, 0xff, 0xff, 0x30, 0xe6, 0x73, 0x86, 0x01, 0xf8, 0xff, 0xff,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x90, 0x75, 0x50, 0x84, 0xe5, 0xff, 0xff,\n\t0x10, 0x19, 0x9f, 0x1c, 0x82, 0xce, 0xff, 0xff, 0x74, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x75, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x77, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00,\n\t0x95, 0xda, 0xc1, 0x30, 0xc1, 0x7f, 0x86, 0xbd, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00, 0x9d, 0x3c, 0x04, 0x72, 0x60, 0x56, 0xba, 0xc9,\n\t0x20, 0xbd, 0x31, 0x66, 0x63, 0xd1, 0xb1, 0xf6, 0x39, 0x23, 0x78, 0xa0, 0xf4, 0x6f, 0x1a, 0xb2,\n\t0xef, 0x6e, 0x22, 0x5f, 0x6c, 0x71, 0xd2, 0xe5, 0x1e, 0xfb, 0x61, 0xb8, 0x1c, 0x0b, 0xc6, 0xe0,\n\t0xb2, 0x56, 0x59, 0x63, 0xad, 0x4f, 0x41, 0x79, 0x07, 0x91, 0x12, 0xe3, 0x85, 0xb6, 0xb3, 0x04,\n\t0x90, 0x75, 0x84, 0xcf, 0xd7, 0x3c, 0x96, 0xe4, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x5d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00,\n\t0xc3, 0x0b, 0x89, 0x73, 0x97, 0x1a, 0x2d, 0x67, 0x67, 0xec, 0xcc, 0x95, 0x42, 0xe3, 0x21, 0xc2,\n\t0x75, 0xb7, 0x45, 0xac, 0x4b, 0xa7, 0xab, 0xf4, 0xc2, 0x4c, 0x04, 0x71, 0x8e, 0x83, 0x22, 0xcb,\n\t0x93, 0xa1, 0x98, 0x83, 0x85, 0xb4, 0x9b, 0xe2, 0x1b, 0x0a, 0xb1, 0x35, 0x57, 0x0a, 0x90, 0x32,\n\t0xc6, 0xd4, 0xd4, 0x97, 0x75, 0x14, 0xca, 0xde, 0xa5, 0x00, 0x11, 0x0b, 0x54, 0xf2, 0xe7, 0x2c,\n\t0xaa, 0x32, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xab, 0x32, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0xac, 0x32, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xad, 0x32, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00, 0x8c, 0xb2, 0x03, 0x5f, 0x4b, 0xef, 0x0d, 0x35,\n\t0x48, 0xe6, 0x65, 0x52, 0x84, 0xe5, 0xff, 0xff, 0x58, 0xe6, 0x65, 0x52, 0x84, 0xe5, 0xff, 0xff,\n\t0x58, 0xe6, 0x65, 0x52, 0x84, 0xe5, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x96, 0x32, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x97, 0x32, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x98, 0x32, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x99, 0x32, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00,\n\t0x3d, 0x20, 0x34, 0x8f, 0x14, 0xa3, 0xbd, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x78, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x79, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x7a, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7b, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00, 0x7c, 0x28, 0x2d, 0x3c, 0xd7, 0x27, 0xc1, 0x1a,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x59, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x5b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00,\n\t0x33, 0x78, 0x43, 0x14, 0x81, 0xcd, 0x30, 0x36, 0xa9, 0xb5, 0x06, 0x87, 0xfc, 0xde, 0x92, 0x57,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x61, 0x00, 0x73, 0x00, 0x69, 0x00,\n\t0x63, 0x00, 0x20, 0x00, 0x64, 0x00, 0x61, 0x00, 0x74, 0x00, 0x61, 0x00, 0x20, 0x00, 0x70, 0x00,\n\t0x61, 0x00, 0x72, 0x00, 0x74, 0x00, 0x69, 0x00, 0x74, 0x00, 0x69, 0x00, 0x6f, 0x00, 0x6e, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_checkpoint_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_checkpoint_initialize(\n     void )\n{\n\tlibcerror_error_t *error           = NULL;\n\tlibfsrefs_checkpoint_t *checkpoint = NULL;\n\tint result                         = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests    = 1;\n\tint number_of_memset_fail_tests    = 1;\n\tint test_number                    = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_checkpoint_initialize(\n\t          &checkpoint,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"checkpoint\",\n\t checkpoint );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_checkpoint_free(\n\t          &checkpoint,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"checkpoint\",\n\t checkpoint );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_checkpoint_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tcheckpoint = (libfsrefs_checkpoint_t *) 0x12345678UL;\n\n\tresult = libfsrefs_checkpoint_initialize(\n\t          &checkpoint,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tcheckpoint = NULL;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_checkpoint_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_checkpoint_initialize(\n\t\t          &checkpoint,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( checkpoint != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_checkpoint_free(\n\t\t\t\t &checkpoint,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"checkpoint\",\n\t\t\t checkpoint );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_checkpoint_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_checkpoint_initialize(\n\t\t          &checkpoint,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( checkpoint != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_checkpoint_free(\n\t\t\t\t &checkpoint,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"checkpoint\",\n\t\t\t checkpoint );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( checkpoint != NULL )\n\t{\n\t\tlibfsrefs_checkpoint_free(\n\t\t &checkpoint,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_checkpoint_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_checkpoint_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_checkpoint_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_checkpoint_read_data function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_checkpoint_read_data(\n     void )\n{\n\tlibcerror_error_t *error           = NULL;\n\tlibfsrefs_checkpoint_t *checkpoint = NULL;\n\tlibfsrefs_io_handle_t *io_handle   = NULL;\n\tint result                         = 0;\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tio_handle->metadata_block_size  = 16384;\n\tio_handle->major_format_version = 1;\n\n\tresult = libfsrefs_checkpoint_initialize(\n\t          &checkpoint,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"checkpoint\",\n\t checkpoint );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_checkpoint_read_data(\n\t          checkpoint,\n\t          io_handle,\n\t          &( fsrefs_test_checkpoint_data1[ 48 ] ),\n\t          16384 - 48,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_checkpoint_read_data(\n\t          NULL,\n\t          io_handle,\n\t          &( fsrefs_test_checkpoint_data1[ 48 ] ),\n\t          16384 - 48,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_checkpoint_read_data(\n\t          checkpoint,\n\t          NULL,\n\t          &( fsrefs_test_checkpoint_data1[ 48 ] ),\n\t          16384 - 48,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_checkpoint_read_data(\n\t          checkpoint,\n\t          io_handle,\n\t          NULL,\n\t          16384 - 48,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_checkpoint_read_data(\n\t          checkpoint,\n\t          io_handle,\n\t          &( fsrefs_test_checkpoint_data1[ 48 ] ),\n\t          (size_t) SSIZE_MAX + 1,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_checkpoint_read_data(\n\t          checkpoint,\n\t          io_handle,\n\t          &( fsrefs_test_checkpoint_data1[ 48 ] ),\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n/* TODO: Test error case where data is invalid\n */\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_checkpoint_free(\n\t          &checkpoint,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"checkpoint\",\n\t checkpoint );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_io_handle_free(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tio_handle->metadata_block_size  = 4096;\n\tio_handle->major_format_version = 3;\n\n\tresult = libfsrefs_checkpoint_initialize(\n\t          &checkpoint,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"checkpoint\",\n\t checkpoint );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_checkpoint_read_data(\n\t          checkpoint,\n\t          io_handle,\n\t          &( fsrefs_test_checkpoint_data2[ 80 ] ),\n\t          4096 - 80,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_checkpoint_free(\n\t          &checkpoint,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"checkpoint\",\n\t checkpoint );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_io_handle_free(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( checkpoint != NULL )\n\t{\n\t\tlibfsrefs_checkpoint_free(\n\t\t &checkpoint,\n\t\t NULL );\n\t}\n\tif( io_handle != NULL )\n\t{\n\t\tlibfsrefs_io_handle_free(\n\t\t &io_handle,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_checkpoint_read_file_io_handle function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_checkpoint_read_file_io_handle(\n     void )\n{\n\tlibbfio_handle_t *file_io_handle   = NULL;\n\tlibcerror_error_t *error           = NULL;\n\tlibfsrefs_checkpoint_t *checkpoint = NULL;\n\tlibfsrefs_io_handle_t *io_handle   = NULL;\n\tint result                         = 0;\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tio_handle->metadata_block_size  = 16384;\n\tio_handle->major_format_version = 1;\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_checkpoint_initialize(\n\t          &checkpoint,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"checkpoint\",\n\t checkpoint );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Initialize file IO handle\n\t */\n\tresult = fsrefs_test_open_file_io_handle(\n\t          &file_io_handle,\n\t          fsrefs_test_checkpoint_data1,\n\t          16384,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_io_handle\",\n\t file_io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_checkpoint_read_file_io_handle(\n\t          checkpoint,\n\t          io_handle,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_checkpoint_read_file_io_handle(\n\t          NULL,\n\t          io_handle,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_checkpoint_read_file_io_handle(\n\t          checkpoint,\n\t          NULL,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_checkpoint_read_file_io_handle(\n\t          checkpoint,\n\t          io_handle,\n\t          NULL,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_checkpoint_read_file_io_handle(\n\t          checkpoint,\n\t          io_handle,\n\t          file_io_handle,\n\t          -1,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\t/* Clean up file IO handle\n\t */\n\tresult = fsrefs_test_close_file_io_handle(\n\t          &file_io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test data too small\n\t */\n\tresult = fsrefs_test_open_file_io_handle(\n\t          &file_io_handle,\n\t          fsrefs_test_checkpoint_data1,\n\t          8,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_io_handle\",\n\t file_io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_checkpoint_read_file_io_handle(\n\t          checkpoint,\n\t          io_handle,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = fsrefs_test_close_file_io_handle(\n\t          &file_io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test data invalid\n\t */\n/* TODO */\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_checkpoint_free(\n\t          &checkpoint,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"checkpoint\",\n\t checkpoint );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_io_handle_free(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tio_handle->metadata_block_size  = 4096;\n\tio_handle->major_format_version = 3;\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_checkpoint_initialize(\n\t          &checkpoint,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"checkpoint\",\n\t checkpoint );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Initialize file IO handle\n\t */\n\tresult = fsrefs_test_open_file_io_handle(\n\t          &file_io_handle,\n\t          fsrefs_test_checkpoint_data2,\n\t          4096,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_io_handle\",\n\t file_io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_checkpoint_read_file_io_handle(\n\t          checkpoint,\n\t          io_handle,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Clean up file IO handle\n\t */\n\tresult = fsrefs_test_close_file_io_handle(\n\t          &file_io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_checkpoint_free(\n\t          &checkpoint,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"checkpoint\",\n\t checkpoint );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_io_handle_free(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( file_io_handle != NULL )\n\t{\n\t\tlibbfio_handle_free(\n\t\t &file_io_handle,\n\t\t NULL );\n\t}\n\tif( checkpoint != NULL )\n\t{\n\t\tlibfsrefs_checkpoint_free(\n\t\t &checkpoint,\n\t\t NULL );\n\t}\n\tif( io_handle != NULL )\n\t{\n\t\tlibfsrefs_io_handle_free(\n\t\t &io_handle,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_checkpoint_get_number_of_ministore_tree_block_references function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_checkpoint_get_number_of_ministore_tree_block_references(\n     libfsrefs_checkpoint_t *checkpoint )\n{\n\tlibcerror_error_t *error                      = NULL;\n\tint number_of_ministore_tree_block_references = 0;\n\tint result                                    = 0;\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_checkpoint_get_number_of_ministore_tree_block_references(\n\t          checkpoint,\n\t          &number_of_ministore_tree_block_references,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_NOT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_checkpoint_get_number_of_ministore_tree_block_references(\n\t          NULL,\n\t          &number_of_ministore_tree_block_references,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_checkpoint_get_number_of_ministore_tree_block_references(\n\t          checkpoint,\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tlibcerror_error_t *error           = NULL;\n\tlibfsrefs_checkpoint_t *checkpoint = NULL;\n\tlibfsrefs_io_handle_t *io_handle   = NULL;\n\tint result                         = 0;\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_checkpoint_initialize\",\n\t fsrefs_test_checkpoint_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_checkpoint_free\",\n\t fsrefs_test_checkpoint_free );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_checkpoint_read_data\",\n\t fsrefs_test_checkpoint_read_data );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_checkpoint_read_file_io_handle\",\n\t fsrefs_test_checkpoint_read_file_io_handle );\n\n#if !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 )\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tio_handle->metadata_block_size  = 16384;\n\tio_handle->major_format_version = 1;\n\n\tresult = libfsrefs_checkpoint_initialize(\n\t          &checkpoint,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"checkpoint\",\n\t checkpoint );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_checkpoint_read_data(\n\t          checkpoint,\n\t          io_handle,\n\t          &( fsrefs_test_checkpoint_data1[ 48 ] ),\n\t          16384 - 48,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Run tests\n\t */\n\tFSREFS_TEST_RUN_WITH_ARGS(\n\t \"libfsrefs_checkpoint_get_number_of_ministore_tree_block_references\",\n\t fsrefs_test_checkpoint_get_number_of_ministore_tree_block_references,\n\t checkpoint );\n\n\t/* TODO: add tests for libfsrefs_checkpoint_get_ministore_tree_block_referenceby_index */\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_checkpoint_free(\n\t          &checkpoint,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"checkpoint\",\n\t checkpoint );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_io_handle_free(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n#endif /* !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 ) */\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\non_error:\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( checkpoint != NULL )\n\t{\n\t\tlibfsrefs_checkpoint_free(\n\t\t &checkpoint,\n\t\t NULL );\n\t}\n\tif( io_handle != NULL )\n\t{\n\t\tlibfsrefs_io_handle_free(\n\t\t &io_handle,\n\t\t NULL );\n\t}\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_FAILURE );\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_data_run.c",
    "content": "/*\n * Library data_run type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_data_run.h\"\n#include \"../libfsrefs/libfsrefs_io_handle.h\"\n\nuint8_t fsrefs_test_data_run_data1[ 32 ] = {\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00 };\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_data_run_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_data_run_initialize(\n     void )\n{\n\tlibcerror_error_t *error        = NULL;\n\tlibfsrefs_data_run_t *data_run  = NULL;\n\tint result                      = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests = 1;\n\tint number_of_memset_fail_tests = 1;\n\tint test_number                 = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_data_run_initialize(\n\t          &data_run,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"data_run\",\n\t data_run );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_data_run_free(\n\t          &data_run,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"data_run\",\n\t data_run );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_data_run_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tdata_run = (libfsrefs_data_run_t *) 0x12345678UL;\n\n\tresult = libfsrefs_data_run_initialize(\n\t          &data_run,\n\t          &error );\n\n\tdata_run = NULL;\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_data_run_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_data_run_initialize(\n\t\t          &data_run,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( data_run != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_data_run_free(\n\t\t\t\t &data_run,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"data_run\",\n\t\t\t data_run );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_data_run_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_data_run_initialize(\n\t\t          &data_run,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( data_run != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_data_run_free(\n\t\t\t\t &data_run,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"data_run\",\n\t\t\t data_run );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( data_run != NULL )\n\t{\n\t\tlibfsrefs_data_run_free(\n\t\t &data_run,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_data_run_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_data_run_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_data_run_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_data_run_read_data function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_data_run_read_data(\n     void )\n{\n\tlibcerror_error_t *error         = NULL;\n\tlibfsrefs_data_run_t *data_run   = NULL;\n\tlibfsrefs_io_handle_t *io_handle = NULL;\n\tint result                       = 0;\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tio_handle->metadata_block_size  = 16384;\n\tio_handle->major_format_version = 1;\n\n\tresult = libfsrefs_data_run_initialize(\n\t          &data_run,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"data_run\",\n\t data_run );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_data_run_read_data(\n\t          data_run,\n\t          io_handle,\n\t          fsrefs_test_data_run_data1,\n\t          32,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_data_run_read_data(\n\t          NULL,\n\t          io_handle,\n\t          fsrefs_test_data_run_data1,\n\t          32,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_data_run_read_data(\n\t          data_run,\n\t          NULL,\n\t          fsrefs_test_data_run_data1,\n\t          32,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_data_run_read_data(\n\t          data_run,\n\t          io_handle,\n\t          NULL,\n\t          32,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_data_run_read_data(\n\t          data_run,\n\t          io_handle,\n\t          fsrefs_test_data_run_data1,\n\t          (size_t) SSIZE_MAX + 1,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_data_run_read_data(\n\t          data_run,\n\t          io_handle,\n\t          fsrefs_test_data_run_data1,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n/* TODO: Test error case where data is invalid\n */\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_data_run_free(\n\t          &data_run,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"data_run\",\n\t data_run );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_io_handle_free(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( data_run != NULL )\n\t{\n\t\tlibfsrefs_data_run_free(\n\t\t &data_run,\n\t\t NULL );\n\t}\n\tif( io_handle != NULL )\n\t{\n\t\tlibfsrefs_io_handle_free(\n\t\t &io_handle,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_data_run_initialize\",\n\t fsrefs_test_data_run_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_data_run_free\",\n\t fsrefs_test_data_run_free );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_data_run_read_data\",\n\t fsrefs_test_data_run_read_data );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_directory_entry.c",
    "content": "/*\n * Library directory_entry type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_directory_entry.h\"\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_directory_entry_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_directory_entry_initialize(\n     void )\n{\n\tlibcerror_error_t *error                     = NULL;\n\tlibfsrefs_directory_entry_t *directory_entry = NULL;\n\tint result                                   = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests              = 1;\n\tint number_of_memset_fail_tests              = 1;\n\tint test_number                              = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_directory_entry_initialize(\n\t          &directory_entry,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"directory_entry\",\n\t directory_entry );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_directory_entry_free(\n\t          &directory_entry,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"directory_entry\",\n\t directory_entry );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_directory_entry_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tdirectory_entry = (libfsrefs_directory_entry_t *) 0x12345678UL;\n\n\tresult = libfsrefs_directory_entry_initialize(\n\t          &directory_entry,\n\t          &error );\n\n\tdirectory_entry = NULL;\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_directory_entry_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_directory_entry_initialize(\n\t\t          &directory_entry,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( directory_entry != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_directory_entry_free(\n\t\t\t\t &directory_entry,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"directory_entry\",\n\t\t\t directory_entry );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_directory_entry_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_directory_entry_initialize(\n\t\t          &directory_entry,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( directory_entry != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_directory_entry_free(\n\t\t\t\t &directory_entry,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"directory_entry\",\n\t\t\t directory_entry );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( directory_entry != NULL )\n\t{\n\t\tlibfsrefs_directory_entry_free(\n\t\t &directory_entry,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_directory_entry_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_directory_entry_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_directory_entry_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_directory_entry_initialize\",\n\t fsrefs_test_directory_entry_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_directory_entry_free\",\n\t fsrefs_test_directory_entry_free );\n\n\t/* TODO add tests for libfsrefs_directory_entry_read_directory_values */\n\t/* TODO add tests for libfsrefs_directory_entry_read_file_values */\n\t/* TODO add tests for libfsrefs_directory_entry_read_node_record */\n\n\t/* TODO add tests for libfsrefs_directory_entry_get_object_identifier */\n\t/* TODO add tests for libfsrefs_directory_entry_get_utf8_name_size */\n\t/* TODO add tests for libfsrefs_directory_entry_get_utf8_name */\n\t/* TODO add tests for libfsrefs_directory_entry_get_utf16_name_size */\n\t/* TODO add tests for libfsrefs_directory_entry_get_utf16_name */\n\t/* TODO add tests for libfsrefs_directory_entry_get_creation_time */\n\t/* TODO add tests for libfsrefs_directory_entry_get_modification_time */\n\t/* TODO add tests for libfsrefs_directory_entry_get_access_time */\n\t/* TODO add tests for libfsrefs_directory_entry_get_entry_modification_time */\n\t/* TODO add tests for libfsrefs_directory_entry_get_file_attribute_flags */\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_directory_object.c",
    "content": "/*\n * Library directory_object type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_directory_object.h\"\n#include \"../libfsrefs/libfsrefs_file_system.h\"\n#include \"../libfsrefs/libfsrefs_io_handle.h\"\n#include \"../libfsrefs/libfsrefs_objects_tree.h\"\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_directory_object_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_directory_object_initialize(\n     void )\n{\n\tlibcerror_error_t *error                       = NULL;\n\tlibfsrefs_directory_object_t *directory_object = NULL;\n\tlibfsrefs_file_system_t *file_system           = NULL;\n\tlibfsrefs_io_handle_t *io_handle               = NULL;\n\tlibfsrefs_objects_tree_t *objects_tree         = NULL;\n\tint result                                     = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests                = 1;\n\tint number_of_memset_fail_tests                = 1;\n\tint test_number                                = 0;\n#endif\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tio_handle->metadata_block_size  = 16384;\n\tio_handle->major_format_version = 1;\n\tio_handle->volume_size          = 2080374784;\n\n\tresult = libfsrefs_file_system_initialize(\n\t          &file_system,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_system\",\n\t file_system );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_objects_tree_initialize(\n\t          &objects_tree,\n\t          file_system,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"objects_tree\",\n\t objects_tree );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_directory_object_initialize(\n\t          &directory_object,\n\t          io_handle,\n\t          objects_tree,\n\t          (uint64_t) 0x00000701UL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"directory_object\",\n\t directory_object );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_directory_object_free(\n\t          &directory_object,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"directory_object\",\n\t directory_object );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_directory_object_initialize(\n\t          NULL,\n\t          io_handle,\n\t          objects_tree,\n\t          (uint64_t) 0x00000701UL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tdirectory_object = (libfsrefs_directory_object_t *) 0x12345678UL;\n\n\tresult = libfsrefs_directory_object_initialize(\n\t          &directory_object,\n\t          io_handle,\n\t          objects_tree,\n\t          (uint64_t) 0x00000701UL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tdirectory_object = NULL;\n\n\tresult = libfsrefs_directory_object_initialize(\n\t          &directory_object,\n\t          NULL,\n\t          objects_tree,\n\t          (uint64_t) 0x00000701UL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_directory_object_initialize(\n\t          &directory_object,\n\t          io_handle,\n\t          NULL,\n\t          (uint64_t) 0x00000701UL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_directory_object_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_directory_object_initialize(\n\t\t          &directory_object,\n\t\t          io_handle,\n\t\t          objects_tree,\n\t\t          (uint64_t) 0x00000701UL,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( directory_object != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_directory_object_free(\n\t\t\t\t &directory_object,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"directory_object\",\n\t\t\t directory_object );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_directory_object_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_directory_object_initialize(\n\t\t          &directory_object,\n\t\t          io_handle,\n\t\t          objects_tree,\n\t\t          (uint64_t) 0x00000701UL,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( directory_object != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_directory_object_free(\n\t\t\t\t &directory_object,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"directory_object\",\n\t\t\t directory_object );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_objects_tree_free(\n\t          &objects_tree,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"objects_tree\",\n\t objects_tree );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_file_system_free(\n\t          &file_system,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"file_system\",\n\t file_system );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_io_handle_free(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( directory_object != NULL )\n\t{\n\t\tlibfsrefs_directory_object_free(\n\t\t &directory_object,\n\t\t NULL );\n\t}\n\tif( objects_tree != NULL )\n\t{\n\t\tlibfsrefs_objects_tree_free(\n\t\t &objects_tree,\n\t\t NULL );\n\t}\n\tif( file_system != NULL )\n\t{\n\t\tlibfsrefs_file_system_free(\n\t\t &file_system,\n\t\t NULL );\n\t}\n\tif( io_handle != NULL )\n\t{\n\t\tlibfsrefs_io_handle_free(\n\t\t &io_handle,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_directory_object_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_directory_object_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_directory_object_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_directory_object_initialize\",\n\t fsrefs_test_directory_object_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_directory_object_free\",\n\t fsrefs_test_directory_object_free );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_error.c",
    "content": "/*\n * Library error functions test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_unused.h\"\n\n/* Tests the libfsrefs_error_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_error_free(\n     void )\n{\n\t/* Test invocation of function only\n\t */\n\tlibfsrefs_error_free(\n\t NULL );\n\n\treturn( 1 );\n}\n\n/* Tests the libfsrefs_error_fprint function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_error_fprint(\n     void )\n{\n\t/* Test invocation of function only\n\t */\n\tlibfsrefs_error_fprint(\n\t NULL,\n\t NULL );\n\n\treturn( 1 );\n}\n\n/* Tests the libfsrefs_error_sprint function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_error_sprint(\n     void )\n{\n\t/* Test invocation of function only\n\t */\n\tlibfsrefs_error_sprint(\n\t NULL,\n\t NULL,\n\t 0 );\n\n\treturn( 1 );\n}\n\n/* Tests the libfsrefs_error_backtrace_fprint function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_error_backtrace_fprint(\n     void )\n{\n\t/* Test invocation of function only\n\t */\n\tlibfsrefs_error_backtrace_fprint(\n\t NULL,\n\t NULL );\n\n\treturn( 1 );\n}\n\n/* Tests the libfsrefs_error_backtrace_sprint function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_error_backtrace_sprint(\n     void )\n{\n\t/* Test invocation of function only\n\t */\n\tlibfsrefs_error_backtrace_sprint(\n\t NULL,\n\t NULL,\n\t 0 );\n\n\treturn( 1 );\n}\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_error_free\",\n\t fsrefs_test_error_free );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_error_fprint\",\n\t fsrefs_test_error_fprint );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_error_sprint\",\n\t fsrefs_test_error_sprint );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_error_backtrace_fprint\",\n\t fsrefs_test_error_backtrace_fprint );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_error_backtrace_sprint\",\n\t fsrefs_test_error_backtrace_sprint );\n\n\treturn( EXIT_SUCCESS );\n\non_error:\n\treturn( EXIT_FAILURE );\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_file_entry.c",
    "content": "/*\n * Library file_entry type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_file_entry.h\"\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_file_entry_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_file_entry_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_file_entry_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\t/* TODO add test for libfsrefs_file_entry_initialize */\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_file_entry_free\",\n\t fsrefs_test_file_entry_free );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_file_system.c",
    "content": "/*\n * Library file_system type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_file_system.h\"\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_file_system_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_file_system_initialize(\n     void )\n{\n\tlibcerror_error_t *error             = NULL;\n\tlibfsrefs_file_system_t *file_system = NULL;\n\tint result                           = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests      = 1;\n\tint number_of_memset_fail_tests      = 1;\n\tint test_number                      = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_file_system_initialize(\n\t          &file_system,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_system\",\n\t file_system );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_file_system_free(\n\t          &file_system,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"file_system\",\n\t file_system );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_file_system_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tfile_system = (libfsrefs_file_system_t *) 0x12345678UL;\n\n\tresult = libfsrefs_file_system_initialize(\n\t          &file_system,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tfile_system = NULL;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_file_system_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_file_system_initialize(\n\t\t          &file_system,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( file_system != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_file_system_free(\n\t\t\t\t &file_system,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"file_system\",\n\t\t\t file_system );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_file_system_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_file_system_initialize(\n\t\t          &file_system,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( file_system != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_file_system_free(\n\t\t\t\t &file_system,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"file_system\",\n\t\t\t file_system );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( file_system != NULL )\n\t{\n\t\tlibfsrefs_file_system_free(\n\t\t &file_system,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_file_system_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_file_system_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_file_system_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_file_system_initialize\",\n\t fsrefs_test_file_system_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_file_system_free\",\n\t fsrefs_test_file_system_free );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_functions.c",
    "content": "/*\n * Functions for testing\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <narrow_string.h>\n#include <system_string.h>\n#include <types.h>\n#include <wide_string.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libbfio.h\"\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libclocale.h\"\n#include \"fsrefs_test_libuna.h\"\n\n/* Retrieves source as a narrow string\n * Returns 1 if successful or -1 on error\n */\nint fsrefs_test_get_narrow_source(\n     const system_character_t *source,\n     char *narrow_string,\n     size_t narrow_string_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function     = \"fsrefs_test_get_narrow_source\";\n\tsize_t narrow_source_size = 0;\n\tsize_t source_length      = 0;\n\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tint result                = 0;\n#endif\n\n\tif( source == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid source.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( narrow_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid narrow string.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( narrow_string_size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid narrow string size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsource_length = system_string_length(\n\t                 source );\n\n\tif( source_length > (size_t) ( SSIZE_MAX - 1 ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid source length value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tif( libclocale_codepage == 0 )\n\t{\n#if SIZEOF_WCHAR_T == 4\n\t\tresult = libuna_utf8_string_size_from_utf32(\n\t\t          (libuna_utf32_character_t *) source,\n\t\t          source_length + 1,\n\t\t          &narrow_source_size,\n\t\t          error );\n#elif SIZEOF_WCHAR_T == 2\n\t\tresult = libuna_utf8_string_size_from_utf16(\n\t\t          (libuna_utf16_character_t *) source,\n\t\t          source_length + 1,\n\t\t          &narrow_source_size,\n\t\t          error );\n#endif\n\t}\n\telse\n\t{\n#if SIZEOF_WCHAR_T == 4\n\t\tresult = libuna_byte_stream_size_from_utf32(\n\t\t          (libuna_utf32_character_t *) source,\n\t\t          source_length + 1,\n\t\t          libclocale_codepage,\n\t\t          &narrow_source_size,\n\t\t          error );\n#elif SIZEOF_WCHAR_T == 2\n\t\tresult = libuna_byte_stream_size_from_utf16(\n\t\t          (libuna_utf16_character_t *) source,\n\t\t          source_length + 1,\n\t\t          libclocale_codepage,\n\t\t          &narrow_source_size,\n\t\t          error );\n#endif\n\t}\n\tif( result != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t LIBCERROR_CONVERSION_ERROR_GENERIC,\n\t\t \"%s: unable to determine narrow string size.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#else\n\tnarrow_source_size = source_length + 1;\n\n#endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */\n\n\tif( narrow_string_size < narrow_source_size )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL,\n\t\t \"%s: narrow string too small.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tif( libclocale_codepage == 0 )\n\t{\n#if SIZEOF_WCHAR_T == 4\n\t\tresult = libuna_utf8_string_copy_from_utf32(\n\t\t          (libuna_utf8_character_t *) narrow_string,\n\t\t          narrow_string_size,\n\t\t          (libuna_utf32_character_t *) source,\n\t\t          source_length + 1,\n\t\t          error );\n#elif SIZEOF_WCHAR_T == 2\n\t\tresult = libuna_utf8_string_copy_from_utf16(\n\t\t          (libuna_utf8_character_t *) narrow_string,\n\t\t          narrow_string_size,\n\t\t          (libuna_utf16_character_t *) source,\n\t\t          source_length + 1,\n\t\t          error );\n#endif\n\t}\n\telse\n\t{\n#if SIZEOF_WCHAR_T == 4\n\t\tresult = libuna_byte_stream_copy_from_utf32(\n\t\t          (uint8_t *) narrow_string,\n\t\t          narrow_string_size,\n\t\t          libclocale_codepage,\n\t\t          (libuna_utf32_character_t *) source,\n\t\t          source_length + 1,\n\t\t          error );\n#elif SIZEOF_WCHAR_T == 2\n\t\tresult = libuna_byte_stream_copy_from_utf16(\n\t\t          (uint8_t *) narrow_string,\n\t\t          narrow_string_size,\n\t\t          libclocale_codepage,\n\t\t          (libuna_utf16_character_t *) source,\n\t\t          source_length + 1,\n\t\t          error );\n#endif\n\t}\n\tif( result != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t LIBCERROR_CONVERSION_ERROR_GENERIC,\n\t\t \"%s: unable to set narrow string.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#else\n\tif( system_string_copy(\n\t     narrow_string,\n\t     source,\n\t     source_length ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_COPY_FAILED,\n\t\t \"%s: unable to set narrow string.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tnarrow_string[ source_length ] = 0;\n\n#endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */\n\n\treturn( 1 );\n}\n\n#if defined( HAVE_WIDE_CHARACTER_TYPE )\n\n/* Retrieves source as a wide string\n * Returns 1 if successful or -1 on error\n */\nint fsrefs_test_get_wide_source(\n     const system_character_t *source,\n     wchar_t *wide_string,\n     size_t wide_string_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function   = \"fsrefs_test_get_wide_source\";\n\tsize_t wide_source_size = 0;\n\tsize_t source_length    = 0;\n\n#if !defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tint result              = 0;\n#endif\n\n\tif( source == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid source.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( wide_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid wide string.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( wide_string_size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid wide string size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsource_length = system_string_length(\n\t                 source );\n\n\tif( source_length > (size_t) ( SSIZE_MAX - 1 ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid source length value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\twide_source_size = source_length + 1;\n#else\n\tif( libclocale_codepage == 0 )\n\t{\n#if SIZEOF_WCHAR_T == 4\n\t\tresult = libuna_utf32_string_size_from_utf8(\n\t\t          (libuna_utf8_character_t *) source,\n\t\t          source_length + 1,\n\t\t          &wide_source_size,\n\t\t          error );\n#elif SIZEOF_WCHAR_T == 2\n\t\tresult = libuna_utf16_string_size_from_utf8(\n\t\t          (libuna_utf8_character_t *) source,\n\t\t          source_length + 1,\n\t\t          &wide_source_size,\n\t\t          error );\n#endif\n\t}\n\telse\n\t{\n#if SIZEOF_WCHAR_T == 4\n\t\tresult = libuna_utf32_string_size_from_byte_stream(\n\t\t          (uint8_t *) source,\n\t\t          source_length + 1,\n\t\t          libclocale_codepage,\n\t\t          &wide_source_size,\n\t\t          error );\n#elif SIZEOF_WCHAR_T == 2\n\t\tresult = libuna_utf16_string_size_from_byte_stream(\n\t\t          (uint8_t *) source,\n\t\t          source_length + 1,\n\t\t          libclocale_codepage,\n\t\t          &wide_source_size,\n\t\t          error );\n#endif\n\t}\n\tif( result != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t LIBCERROR_CONVERSION_ERROR_GENERIC,\n\t\t \"%s: unable to determine wide string size.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */\n\n\tif( wide_string_size < wide_source_size )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL,\n\t\t \"%s: wide string too small.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tif( system_string_copy(\n\t     wide_string,\n\t     source,\n\t     source_length ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_COPY_FAILED,\n\t\t \"%s: unable to set wide string.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\twide_string[ source_length ] = 0;\n#else\n\tif( libclocale_codepage == 0 )\n\t{\n#if SIZEOF_WCHAR_T == 4\n\t\tresult = libuna_utf32_string_copy_from_utf8(\n\t\t          (libuna_utf32_character_t *) wide_string,\n\t\t          wide_string_size,\n\t\t          (uint8_t *) source,\n\t\t          source_length + 1,\n\t\t          error );\n#elif SIZEOF_WCHAR_T == 2\n\t\tresult = libuna_utf16_string_copy_from_utf8(\n\t\t          (libuna_utf16_character_t *) wide_string,\n\t\t          wide_string_size,\n\t\t          (uint8_t *) source,\n\t\t          source_length + 1,\n\t\t          error );\n#endif\n\t}\n\telse\n\t{\n#if SIZEOF_WCHAR_T == 4\n\t\tresult = libuna_utf32_string_copy_from_byte_stream(\n\t\t          (libuna_utf32_character_t *) wide_string,\n\t\t          wide_string_size,\n\t\t          (uint8_t *) source,\n\t\t          source_length + 1,\n\t\t          libclocale_codepage,\n\t\t          error );\n#elif SIZEOF_WCHAR_T == 2\n\t\tresult = libuna_utf16_string_copy_from_byte_stream(\n\t\t          (libuna_utf16_character_t *) wide_string,\n\t\t          wide_string_size,\n\t\t          (uint8_t *) source,\n\t\t          source_length + 1,\n\t\t          libclocale_codepage,\n\t\t          error );\n#endif\n\t}\n\tif( result != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t LIBCERROR_CONVERSION_ERROR_GENERIC,\n\t\t \"%s: unable to set wide string.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\n#endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */\n\n\treturn( 1 );\n}\n\n#endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */\n\n/* Copies a string of a decimal value to a 64-bit value\n * Returns 1 if successful or -1 on error\n */\nint fsrefs_test_system_string_copy_from_64_bit_in_decimal(\n     const system_character_t *string,\n     size_t string_size,\n     uint64_t *value_64bit,\n     libcerror_error_t **error )\n{\n\tstatic char *function              = \"fsrefs_test_system_string_copy_from_64_bit_in_decimal\";\n\tsize_t string_index                = 0;\n\tsystem_character_t character_value = 0;\n\tuint8_t maximum_string_index       = 20;\n\tint8_t sign                        = 1;\n\n\tif( string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid string.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( string_size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid string size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( value_64bit == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid value 64-bit.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\t*value_64bit = 0;\n\n\tif( string[ string_index ] == (system_character_t) '-' )\n\t{\n\t\tstring_index++;\n\t\tmaximum_string_index++;\n\n\t\tsign = -1;\n\t}\n\telse if( string[ string_index ] == (system_character_t) '+' )\n\t{\n\t\tstring_index++;\n\t\tmaximum_string_index++;\n\t}\n\twhile( string_index < string_size )\n\t{\n\t\tif( string[ string_index ] == 0 )\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t\tif( string_index > (size_t) maximum_string_index )\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_LARGE,\n\t\t\t \"%s: string too large.\",\n\t\t\t function );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\t*value_64bit *= 10;\n\n\t\tif( ( string[ string_index ] >= (system_character_t) '0' )\n\t\t && ( string[ string_index ] <= (system_character_t) '9' ) )\n\t\t{\n\t\t\tcharacter_value = (system_character_t) ( string[ string_index ] - (system_character_t) '0' );\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlibcerror_error_set(\n\t\t\t error,\n\t\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t\t LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE,\n\t\t\t \"%s: unsupported character value: %\" PRIc_SYSTEM \" at index: %d.\",\n\t\t\t function,\n\t\t\t string[ string_index ],\n\t\t\t string_index );\n\n\t\t\treturn( -1 );\n\t\t}\n\t\t*value_64bit += character_value;\n\n\t\tstring_index++;\n\t}\n\tif( sign == -1 )\n\t{\n\t\t*value_64bit *= (uint64_t) -1;\n\t}\n\treturn( 1 );\n}\n\n/* Creates a file IO handle for test data\n * Returns 1 if successful or -1 on error\n */\nint fsrefs_test_open_file_io_handle(\n     libbfio_handle_t **file_io_handle,\n     uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"fsrefs_test_open_file_io_handle\";\n\n\tif( file_io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libbfio_memory_range_initialize(\n\t     file_io_handle,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to create file IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libbfio_memory_range_set(\n\t     *file_io_handle,\n\t     data,\n\t     data_size,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_SET_FAILED,\n\t\t \"%s: unable to set memory range of file IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\tif( libbfio_handle_open(\n\t     *file_io_handle,\n\t     LIBBFIO_OPEN_READ,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_OPEN_FAILED,\n\t\t \"%s: unable to open file IO handle.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *file_io_handle != NULL )\n\t{\n\t\tlibbfio_handle_free(\n\t\t file_io_handle,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}\n\n/* Closes a file IO handle for test data\n * Returns 0 if successful or -1 on error\n */\nint fsrefs_test_close_file_io_handle(\n     libbfio_handle_t **file_io_handle,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"fsrefs_test_close_file_io_handle\";\n\tint result            = 0;\n\n\tif( file_io_handle == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid file IO handle.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libbfio_handle_close(\n\t     *file_io_handle,\n\t     error ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_CLOSE_FAILED,\n\t\t \"%s: unable to close file IO handle.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n\tif( libbfio_handle_free(\n\t     file_io_handle,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t \"%s: unable to free file IO handle.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n\treturn( result );\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_functions.h",
    "content": "/*\n * Functions for testing\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_TEST_FUNCTIONS_H )\n#define _FSREFS_TEST_FUNCTIONS_H\n\n#include <common.h>\n#include <types.h>\n\n#include \"fsrefs_test_libbfio.h\"\n#include \"fsrefs_test_libcerror.h\"\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\nint fsrefs_test_get_narrow_source(\n     const system_character_t *source,\n     char *narrow_string,\n     size_t narrow_string_size,\n     libcerror_error_t **error );\n\n#if defined( HAVE_WIDE_CHARACTER_TYPE )\n\nint fsrefs_test_get_wide_source(\n     const system_character_t *source,\n     wchar_t *wide_string,\n     size_t wide_string_size,\n     libcerror_error_t **error );\n\n#endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */\n\nint fsrefs_test_system_string_copy_from_64_bit_in_decimal(\n     const system_character_t *string,\n     size_t string_size,\n     uint64_t *value_64bit,\n     libcerror_error_t **error );\n\nint fsrefs_test_open_file_io_handle(\n     libbfio_handle_t **file_io_handle,\n     uint8_t *data,\n     size_t data_size,\n     libcerror_error_t **error );\n\nint fsrefs_test_close_file_io_handle(\n     libbfio_handle_t **file_io_handle,\n     libcerror_error_t **error );\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _FSREFS_TEST_FUNCTIONS_H ) */\n\n"
  },
  {
    "path": "tests/fsrefs_test_getopt.c",
    "content": "/*\n * GetOpt functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <narrow_string.h>\n#include <system_string.h>\n#include <types.h>\n#include <wide_string.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_getopt.h\"\n#include \"fsrefs_test_libcnotify.h\"\n\n#if !defined( HAVE_GETOPT )\n\n/* The option index\n * Start with argument 1 (argument 0 is the program name)\n */\nint optind = 1;\n\n/* The current option argument\n */\nsystem_character_t *optarg = NULL;\n\n/* Value to indicate the current option\n */\nsystem_integer_t optopt = 0;\n\n/* The next option in a group\n */\nsystem_character_t *next_option = NULL;\n\n/* Get the program options\n * Function for platforms that do not have the getopt function\n * Returns the option character processed, or -1 on error,\n * ? if the option was not in the options string, : if the option argument was missing\n */\nsystem_integer_t fsrefs_test_getopt(\n                  int argument_count,\n                  system_character_t * const argument_values[],\n                  const system_character_t *options_string )\n{\n\tsystem_character_t *argument_value = NULL;\n\tsystem_character_t *option_value   = NULL;\n\tstatic char *function              = \"fsrefs_test_getopt\";\n\tsize_t options_string_length       = 0;\n\n\tif( next_option != NULL )\n\t{\n\t\targument_value = next_option;\n\t\tnext_option    = NULL;\n\t}\n\telse if( optind >= argument_count )\n\t{\n\t\treturn( (system_integer_t) -1 );\n\t}\n\telse\n\t{\n\t\targument_value = argument_values[ optind ];\n\n\t\t/* Check if the argument value is not an empty string\n\t\t */\n\t\tif( *argument_value == (system_character_t) '\\0' )\n\t\t{\n\t\t\treturn( (system_integer_t) -1 );\n\t\t}\n\t\t/* Check if the first character is a option marker '-'\n\t\t */\n\t\tif( *argument_value != (system_character_t) '-' )\n\t\t{\n\t\t\treturn( (system_integer_t) -1 );\n\t\t}\n\t\targument_value++;\n\n\t\t/* Check if long options are provided '--'\n\t\t */\n\t\tif( *argument_value == (system_character_t) '-' )\n\t\t{\n\t\t\toptind++;\n\n\t\t\treturn( (system_integer_t) -1 );\n\t\t}\n\t}\n\toptions_string_length = system_string_length(\n\t                         options_string );\n\n\toptopt       = *argument_value;\n\toption_value = system_string_search_character(\n\t                options_string,\n\t                optopt,\n\t                options_string_length );\n\n\targument_value++;\n\n\t/* Check if an argument was specified or that the option was not found\n\t * in the option string\n\t */\n\tif( ( optopt == (system_integer_t) ':' )\n\t || ( option_value == NULL ) )\n\t{\n\t\tif( *argument_value == (system_character_t) '\\0' )\n\t\t{\n\t\t\toptind++;\n\t\t}\n\t\tif( ( *options_string != (system_character_t) ':' )\n\t\t && ( optopt != (system_integer_t) '?' ) )\n\t\t{\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: no such option: %\" PRIc_SYSTEM \".\\n\",\n\t\t\t function,\n\t\t\t optopt );\n\t\t}\n\t\treturn( (system_integer_t) '?' );\n\t}\n\toption_value++;\n\n\t/* Check if no option argument is required\n\t */\n\tif( *option_value != (system_character_t) ':' )\n\t{\n\t\toptarg = NULL;\n\n\t\tif( *argument_value == (system_character_t) '\\0' )\n\t\t{\n\t\t\toptind++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/* Multiple options are grouped\n\t\t\t */\n\t\t\tnext_option = argument_value;\n\t\t}\n\t}\n\t/* Check if the argument is right after the option flag with no space in between\n\t */\n\telse if( *argument_value != (system_character_t) '\\0' )\n\t{\n\t\toptarg = argument_value;\n\n\t\toptind++;\n\t}\n\telse\n\t{\n\t\toptind++;\n\n\t\t/* Check if the argument was provided as the next argument value\n\t\t */\n\t\tif( argument_count <= optind )\n\t\t{\n\t\t\tif( *option_value == ':' )\n\t\t\t{\n\t\t\t\treturn( (system_integer_t) ':' );\n\t\t\t}\n\t\t\tlibcnotify_printf(\n\t\t\t \"%s: option: %\" PRIc_SYSTEM \" requires an argument.\\n\",\n\t\t\t function,\n\t\t\t optopt );\n\n\t\t\treturn( (system_integer_t) '?' );\n\t\t}\n\t\toptarg = argument_values[ optind ];\n\n\t\toptind++;\n\t}\n\treturn( optopt );\n}\n\n#endif /* !defined( HAVE_GETOPT ) */\n\n"
  },
  {
    "path": "tests/fsrefs_test_getopt.h",
    "content": "/*\n * GetOpt functions\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_TEST_GETOPT_H )\n#define _FSREFS_TEST_GETOPT_H\n\n#include <common.h>\n#include <types.h>\n\n/* unistd.h is included here to export getopt, optarg, optind and optopt\n */\n#if defined( HAVE_UNISTD_H )\n#include <unistd.h>\n#endif\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\n#if defined( HAVE_GETOPT )\n#define fsrefs_test_getopt( argument_count, argument_values, options_string ) \\\n\tgetopt( argument_count, argument_values, options_string )\n\n#else\n\n#if !defined( __CYGWIN__ )\nextern int optind;\nextern system_character_t *optarg;\nextern system_integer_t optopt;\n\n#else\nint optind;\nsystem_character_t *optarg;\nsystem_integer_t optopt;\n\n#endif /* !defined( __CYGWIN__ ) */\n\nsystem_integer_t fsrefs_test_getopt(\n                  int argument_count,\n                  system_character_t * const argument_values[],\n                  const system_character_t *options_string );\n\n#endif /* defined( HAVE_GETOPT ) */\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _FSREFS_TEST_GETOPT_H ) */\n\n"
  },
  {
    "path": "tests/fsrefs_test_io_handle.c",
    "content": "/*\n * Library io_handle type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_io_handle.h\"\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_io_handle_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_io_handle_initialize(\n     void )\n{\n\tlibcerror_error_t *error         = NULL;\n\tlibfsrefs_io_handle_t *io_handle = NULL;\n\tint result                       = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests  = 1;\n\tint number_of_memset_fail_tests  = 1;\n\tint test_number                  = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_io_handle_free(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tio_handle = (libfsrefs_io_handle_t *) 0x12345678UL;\n\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tio_handle = NULL;\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_io_handle_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_io_handle_initialize(\n\t\t          &io_handle,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( io_handle != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_io_handle_free(\n\t\t\t\t &io_handle,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"io_handle\",\n\t\t\t io_handle );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_io_handle_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_io_handle_initialize(\n\t\t          &io_handle,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( io_handle != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_io_handle_free(\n\t\t\t\t &io_handle,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"io_handle\",\n\t\t\t io_handle );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( io_handle != NULL )\n\t{\n\t\tlibfsrefs_io_handle_free(\n\t\t &io_handle,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_io_handle_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_io_handle_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_io_handle_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_io_handle_clear function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_io_handle_clear(\n     void )\n{\n\tlibcerror_error_t *error         = NULL;\n\tlibfsrefs_io_handle_t *io_handle = NULL;\n\tint result                       = 0;\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_io_handle_clear(\n\t          io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_io_handle_clear(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\t/* Test libfsrefs_io_handle_clear with memset failing\n\t */\n\tfsrefs_test_memset_attempts_before_fail = 0;\n\n\tresult = libfsrefs_io_handle_clear(\n\t          io_handle,\n\t          &error );\n\n\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t{\n\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\t}\n\telse\n\t{\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t -1 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t \"error\",\n\t\t error );\n\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_io_handle_free(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( io_handle != NULL )\n\t{\n\t\tlibfsrefs_io_handle_free(\n\t\t &io_handle,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_io_handle_initialize\",\n\t fsrefs_test_io_handle_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_io_handle_free\",\n\t fsrefs_test_io_handle_free );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_io_handle_clear\",\n\t fsrefs_test_io_handle_clear );\n\n\t/* TODO: add tests for libfsrefs_io_handle_read_volume_header */\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\non_error:\n\treturn( EXIT_FAILURE );\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_libbfio.h",
    "content": "/*\n * The libbfio header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_TEST_LIBBFIO_H )\n#define _FSREFS_TEST_LIBBFIO_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBBFIO for local use of libbfio\n */\n#if defined( HAVE_LOCAL_LIBBFIO )\n\n#include <libbfio_definitions.h>\n#include <libbfio_file.h>\n#include <libbfio_file_pool.h>\n#include <libbfio_file_range.h>\n#include <libbfio_handle.h>\n#include <libbfio_memory_range.h>\n#include <libbfio_pool.h>\n#include <libbfio_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBBFIO_DLL_IMPORT\n * before including libbfio.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBBFIO_DLL_IMPORT\n#endif\n\n#include <libbfio.h>\n\n#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( LIBBFIO_HAVE_MULTI_THREAD_SUPPORT )\n#error Multi-threading support requires libbfio with multi-threading support\n#endif\n\n#endif /* defined( HAVE_LOCAL_LIBBFIO ) */\n\n#endif /* !defined( _FSREFS_TEST_LIBBFIO_H ) */\n\n"
  },
  {
    "path": "tests/fsrefs_test_libcerror.h",
    "content": "/*\n * The libcerror header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_TEST_LIBCERROR_H )\n#define _FSREFS_TEST_LIBCERROR_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBCERROR for local use of libcerror\n */\n#if defined( HAVE_LOCAL_LIBCERROR )\n\n#include <libcerror_definitions.h>\n#include <libcerror_error.h>\n#include <libcerror_system.h>\n#include <libcerror_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT\n * before including libcerror.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBCERROR_DLL_IMPORT\n#endif\n\n#include <libcerror.h>\n\n#endif /* defined( HAVE_LOCAL_LIBCERROR ) */\n\n#endif /* !defined( _FSREFS_TEST_LIBCERROR_H ) */\n\n"
  },
  {
    "path": "tests/fsrefs_test_libclocale.h",
    "content": "/*\n * The libclocale header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_TEST_LIBCLOCALE_H )\n#define _FSREFS_TEST_LIBCLOCALE_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBCLOCALE for local use of libclocale\n */\n#if defined( HAVE_LOCAL_LIBCLOCALE )\n\n#include <libclocale_codepage.h>\n#include <libclocale_definitions.h>\n#include <libclocale_locale.h>\n#include <libclocale_support.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBCLOCALE_DLL_IMPORT\n * before including libclocale.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBCLOCALE_DLL_IMPORT\n#endif\n\n#include <libclocale.h>\n\n#endif /* defined( HAVE_LOCAL_LIBCLOCALE ) */\n\n#endif /* !defined( _FSREFS_TEST_LIBCLOCALE_H ) */\n\n"
  },
  {
    "path": "tests/fsrefs_test_libcnotify.h",
    "content": "/*\n * The libcnotify header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_TEST_LIBCNOTIFY_H )\n#define _FSREFS_TEST_LIBCNOTIFY_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBCNOTIFY for local use of libcnotify\n */\n#if defined( HAVE_LOCAL_LIBCNOTIFY )\n\n#include <libcnotify_definitions.h>\n#include <libcnotify_print.h>\n#include <libcnotify_stream.h>\n#include <libcnotify_verbose.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBCNOTIFY_DLL_IMPORT\n * before including libcnotify.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBCNOTIFY_DLL_IMPORT\n#endif\n\n#include <libcnotify.h>\n\n#endif /* defined( HAVE_LOCAL_LIBCNOTIFY ) */\n\n#endif /* !defined( _FSREFS_TEST_LIBCNOTIFY_H ) */\n\n"
  },
  {
    "path": "tests/fsrefs_test_libfsrefs.h",
    "content": "/*\n * The libfsrefs header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_TEST_LIBFSREFS_H )\n#define _FSREFS_TEST_LIBFSREFS_H\n\n#include <common.h>\n\n#include <libfsrefs.h>\n\n#endif /* !defined( _FSREFS_TEST_LIBFSREFS_H ) */\n\n"
  },
  {
    "path": "tests/fsrefs_test_libuna.h",
    "content": "/*\n * The libuna header wrapper\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_TEST_LIBUNA_H )\n#define _FSREFS_TEST_LIBUNA_H\n\n#include <common.h>\n\n/* Define HAVE_LOCAL_LIBUNA for local use of libuna\n */\n#if defined( HAVE_LOCAL_LIBUNA )\n\n#include <libuna_base16_stream.h>\n#include <libuna_base32_stream.h>\n#include <libuna_base64_stream.h>\n#include <libuna_byte_stream.h>\n#include <libuna_unicode_character.h>\n#include <libuna_url_stream.h>\n#include <libuna_utf16_stream.h>\n#include <libuna_utf16_string.h>\n#include <libuna_utf32_stream.h>\n#include <libuna_utf32_string.h>\n#include <libuna_utf7_stream.h>\n#include <libuna_utf8_stream.h>\n#include <libuna_utf8_string.h>\n#include <libuna_types.h>\n\n#else\n\n/* If libtool DLL support is enabled set LIBUNA_DLL_IMPORT\n * before including libuna.h\n */\n#if defined( _WIN32 ) && defined( DLL_IMPORT )\n#define LIBUNA_DLL_IMPORT\n#endif\n\n#include <libuna.h>\n\n#endif /* defined( HAVE_LOCAL_LIBUNA ) */\n\n#endif /* !defined( _FSREFS_TEST_LIBUNA_H ) */\n\n"
  },
  {
    "path": "tests/fsrefs_test_macros.h",
    "content": "/*\n * Macros for testing\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_TEST_MACROS_H )\n#define _FSREFS_TEST_MACROS_H\n\n#include <common.h>\n#include <file_stream.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#define FSREFS_TEST_ASSERT_EQUAL_INT( name, value, expected_value ) \\\n\tif( value != expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%d) != %d\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_NOT_EQUAL_INT( name, value, expected_value ) \\\n\tif( value == expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%d) == %d\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_GREATER_THAN_INT( name, value, expected_value ) \\\n\tif( value <= expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%d) <= %d\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_LESS_THAN_INT( name, value, expected_value ) \\\n\tif( value >= expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%d) >= %d\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_EQUAL_INTPTR( name, value, expected_value ) \\\n\tif( value != expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (0x%08x\" PRIjx \") != 0x%08x\" PRIjx \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_NOT_EQUAL_INTPTR( name, value, expected_value ) \\\n\tif( value == expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (0x%08x\" PRIjx \") == 0x%08x\" PRIjx \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_EQUAL_FLOAT( name, value, expected_value ) \\\n\tif( value != expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%f) != %f\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_NOT_EQUAL_FLOAT( name, value, expected_value ) \\\n\tif( value == expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%f) == %f\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_EQUAL_SIZE( name, value, expected_value ) \\\n\tif( value != expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIzd \") != %\" PRIzd \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_EQUAL_SSIZE( name, value, expected_value ) \\\n\tif( value != expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIzd \") != %\" PRIzd \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_NOT_EQUAL_SSIZE( name, value, expected_value ) \\\n\tif( value == expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIzd \") == %\" PRIzd \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_EQUAL_INT8( name, value, expected_value ) \\\n\tif( value != expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIi8 \") != %\" PRIi8 \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_NOT_EQUAL_INT8( name, value, expected_value ) \\\n\tif( value == expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIi8 \") == %\" PRIi8 \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_EQUAL_UINT8( name, value, expected_value ) \\\n\tif( value != expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIi8 \") != %\" PRIu8 \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_LESS_THAN_UINT8( name, value, expected_value ) \\\n\tif( value >= expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIi8 \") >= %\" PRIu8 \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_EQUAL_INT16( name, value, expected_value ) \\\n\tif( value != expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIi16 \") != %\" PRIi16 \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_NOT_EQUAL_INT16( name, value, expected_value ) \\\n\tif( value == expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIi16 \") == %\" PRIi16 \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_EQUAL_UINT16( name, value, expected_value ) \\\n\tif( value != expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIi16 \") != %\" PRIu16 \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_LESS_THAN_UINT16( name, value, expected_value ) \\\n\tif( value >= expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIi16 \") >= %\" PRIu16 \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_EQUAL_INT32( name, value, expected_value ) \\\n\tif( value != expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIi32 \") != %\" PRIi32 \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_NOT_EQUAL_INT32( name, value, expected_value ) \\\n\tif( value == expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIi32 \") == %\" PRIi32 \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_EQUAL_UINT32( name, value, expected_value ) \\\n\tif( value != expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIu32 \") != %\" PRIu32 \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_LESS_THAN_UINT32( name, value, expected_value ) \\\n\tif( value >= expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIu32 \") >= %\" PRIu32 \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_EQUAL_INT64( name, value, expected_value ) \\\n\tif( value != expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIi64 \") != %\" PRIi64 \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_NOT_EQUAL_INT64( name, value, expected_value ) \\\n\tif( value == expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIi64 \") == %\" PRIi64 \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_EQUAL_UINT64( name, value, expected_value ) \\\n\tif( value != expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIu64 \") != %\" PRIu64 \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_LESS_THAN_UINT64( name, value, expected_value ) \\\n\tif( value >= expected_value ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s (%\" PRIu64 \") >= %\" PRIu64 \"\\n\", __FILE__, __LINE__, name, value, expected_value ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_IS_NOT_NULL( name, value ) \\\n\tif( value == NULL ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s == NULL\\n\", __FILE__, __LINE__, name ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_ASSERT_IS_NULL( name, value ) \\\n\tif( value != NULL ) \\\n\t{ \\\n\t\tfprintf( stdout, \"%s:%d %s != NULL\\n\", __FILE__, __LINE__, name ); \\\n\t\tgoto on_error; \\\n\t}\n\n#define FSREFS_TEST_RUN( name, function ) \\\n\tif( function() != 1 ) \\\n\t{ \\\n\t\tfprintf( stdout, \"Unable to run test: %s\\n\", name ); \\\n\t\tgoto on_error; \\\n\t}\n\n#if !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 )\n\n#define FSREFS_TEST_RUN_WITH_ARGS( name, function, ... ) \\\n\tif( function( __VA_ARGS__ ) != 1 ) \\\n\t{ \\\n\t\tfprintf( stdout, \"Unable to run test: %s\\n\", name ); \\\n\t\tgoto on_error; \\\n\t}\n\n#endif /* !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 ) */\n\n#define FSREFS_TEST_FPRINT_ERROR( error ) \\\n\tlibcerror_error_backtrace_fprint( error, stdout );\n\n#endif /* !defined( _FSREFS_TEST_MACROS_H ) */\n\n"
  },
  {
    "path": "tests/fsrefs_test_memory.c",
    "content": "/*\n * Memory allocation functions for testing\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#if defined( HAVE_GNU_DL_DLSYM ) && defined( __GNUC__ )\n#define __USE_GNU\n#include <dlfcn.h>\n#undef __USE_GNU\n#endif\n\n#include \"fsrefs_test_memory.h\"\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\nstatic void *(*fsrefs_test_real_malloc)(size_t)                       = NULL;\nstatic void *(*fsrefs_test_real_memcpy)(void *, const void *, size_t) = NULL;\nstatic void *(*fsrefs_test_real_memset)(void *, int, size_t)          = NULL;\nstatic void *(*fsrefs_test_real_realloc)(void *, size_t)              = NULL;\n\nint fsrefs_test_malloc_attempts_before_fail                           = -1;\nint fsrefs_test_memcpy_attempts_before_fail                           = -1;\nint fsrefs_test_memset_attempts_before_fail                           = -1;\nint fsrefs_test_realloc_attempts_before_fail                          = -1;\n\n/* Custom malloc for testing memory error cases\n * Note this function might fail if compiled with optimation\n * Returns a pointer to newly allocated data or NULL\n */\nvoid *malloc(\n       size_t size )\n{\n\tvoid *ptr = NULL;\n\n\tif( fsrefs_test_real_malloc == NULL )\n\t{\n\t\tfsrefs_test_real_malloc = dlsym(\n\t\t                           RTLD_NEXT,\n\t\t                           \"malloc\" );\n\t}\n\tif( fsrefs_test_malloc_attempts_before_fail == 0 )\n\t{\n\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\treturn( NULL );\n\t}\n\telse if( fsrefs_test_malloc_attempts_before_fail > 0 )\n\t{\n\t\tfsrefs_test_malloc_attempts_before_fail--;\n\t}\n\tptr = fsrefs_test_real_malloc(\n\t       size );\n\n\treturn( ptr );\n}\n\n/* Custom memcpy for testing memory error cases\n * Note this function might fail if compiled with optimation and as a shared libary\n * Returns a pointer to newly allocated data or NULL\n */\nvoid *memcpy(\n       void *destination,\n       const void *source,\n       size_t size )\n{\n\tif( fsrefs_test_real_memcpy == NULL )\n\t{\n\t\tfsrefs_test_real_memcpy = dlsym(\n\t\t                           RTLD_NEXT,\n\t\t                           \"memcpy\" );\n\t}\n\tif( fsrefs_test_memcpy_attempts_before_fail == 0 )\n\t{\n\t\tfsrefs_test_memcpy_attempts_before_fail = -1;\n\n\t\treturn( NULL );\n\t}\n\telse if( fsrefs_test_memcpy_attempts_before_fail > 0 )\n\t{\n\t\tfsrefs_test_memcpy_attempts_before_fail--;\n\t}\n\tdestination = fsrefs_test_real_memcpy(\n\t               destination,\n\t               source,\n\t               size );\n\n\treturn( destination );\n}\n\n/* Custom memset for testing memory error cases\n * Note this function might fail if compiled with optimation and as a shared libary\n * Returns a pointer to newly allocated data or NULL\n */\nvoid *memset(\n       void *ptr,\n       int constant,\n       size_t size )\n{\n\tif( fsrefs_test_real_memset == NULL )\n\t{\n\t\tfsrefs_test_real_memset = dlsym(\n\t\t                           RTLD_NEXT,\n\t\t                           \"memset\" );\n\t}\n\tif( fsrefs_test_memset_attempts_before_fail == 0 )\n\t{\n\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\treturn( NULL );\n\t}\n\telse if( fsrefs_test_memset_attempts_before_fail > 0 )\n\t{\n\t\tfsrefs_test_memset_attempts_before_fail--;\n\t}\n\tptr = fsrefs_test_real_memset(\n\t       ptr,\n\t       constant,\n\t       size );\n\n\treturn( ptr );\n}\n\n/* Custom realloc for testing memory error cases\n * Note this function might fail if compiled with optimation\n * Returns a pointer to reallocated data or NULL\n */\nvoid *realloc(\n       void *ptr,\n       size_t size )\n{\n\tif( fsrefs_test_real_realloc == NULL )\n\t{\n\t\tfsrefs_test_real_realloc = dlsym(\n\t\t                            RTLD_NEXT,\n\t\t                            \"realloc\" );\n\t}\n\tif( fsrefs_test_realloc_attempts_before_fail == 0 )\n\t{\n\t\tfsrefs_test_realloc_attempts_before_fail = -1;\n\n\t\treturn( NULL );\n\t}\n\telse if( fsrefs_test_realloc_attempts_before_fail > 0 )\n\t{\n\t\tfsrefs_test_realloc_attempts_before_fail--;\n\t}\n\tptr = fsrefs_test_real_realloc(\n\t       ptr,\n\t       size );\n\n\treturn( ptr );\n}\n\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n"
  },
  {
    "path": "tests/fsrefs_test_memory.h",
    "content": "/*\n * Memory allocation functions for testing\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_TEST_MEMORY_H )\n#define _FSREFS_TEST_MEMORY_H\n\n#include <common.h>\n\n#if defined( __cplusplus )\nextern \"C\" {\n#endif\n\n#if defined( HAVE_GNU_DL_DLSYM ) && defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) && !defined( __arm__ ) && !defined( __clang__ ) && !defined( __CYGWIN__ ) && !defined( __hppa__ ) && !defined( __loongarch__ ) && !defined( __mips__ ) && !defined( __riscv ) && !defined( __sparc__ ) && !defined( HAVE_ASAN )\n#define HAVE_FSREFS_TEST_MEMORY\t\t1\n#endif\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\nextern int fsrefs_test_malloc_attempts_before_fail;\n\nextern int fsrefs_test_memcpy_attempts_before_fail;\n\nextern int fsrefs_test_memset_attempts_before_fail;\n\nextern int fsrefs_test_realloc_attempts_before_fail;\n\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n#if defined( __cplusplus )\n}\n#endif\n\n#endif /* !defined( _FSREFS_TEST_MEMORY_H ) */\n\n"
  },
  {
    "path": "tests/fsrefs_test_metadata_block_header.c",
    "content": "/*\n * Library metadata_block_header type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_functions.h\"\n#include \"fsrefs_test_libbfio.h\"\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_io_handle.h\"\n#include \"../libfsrefs/libfsrefs_metadata_block_header.h\"\n\nuint8_t fsrefs_test_metadata_block_header_data1[ 48 ] = {\n\t0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };\n\nuint8_t fsrefs_test_metadata_block_header_data2[ 80 ] = {\n\t0x53, 0x55, 0x50, 0x42, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbb, 0xa7, 0xe0, 0x68,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_metadata_block_header_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_metadata_block_header_initialize(\n     void )\n{\n\tlibcerror_error_t *error                                 = NULL;\n\tlibfsrefs_metadata_block_header_t *metadata_block_header = NULL;\n\tint result                                               = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests                          = 1;\n\tint number_of_memset_fail_tests                          = 1;\n\tint test_number                                          = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_metadata_block_header_initialize(\n\t          &metadata_block_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"metadata_block_header\",\n\t metadata_block_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_metadata_block_header_free(\n\t          &metadata_block_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"metadata_block_header\",\n\t metadata_block_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_metadata_block_header_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tmetadata_block_header = (libfsrefs_metadata_block_header_t *) 0x12345678UL;\n\n\tresult = libfsrefs_metadata_block_header_initialize(\n\t          &metadata_block_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tmetadata_block_header = NULL;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_metadata_block_header_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_metadata_block_header_initialize(\n\t\t          &metadata_block_header,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( metadata_block_header != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_metadata_block_header_free(\n\t\t\t\t &metadata_block_header,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"metadata_block_header\",\n\t\t\t metadata_block_header );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_metadata_block_header_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_metadata_block_header_initialize(\n\t\t          &metadata_block_header,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( metadata_block_header != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_metadata_block_header_free(\n\t\t\t\t &metadata_block_header,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"metadata_block_header\",\n\t\t\t metadata_block_header );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( metadata_block_header != NULL )\n\t{\n\t\tlibfsrefs_metadata_block_header_free(\n\t\t &metadata_block_header,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_metadata_block_header_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_metadata_block_header_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_metadata_block_header_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_metadata_block_header_read_file_io_handle function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_metadata_block_header_read_file_io_handle(\n     void )\n{\n\tlibbfio_handle_t *file_io_handle                         = NULL;\n\tlibcerror_error_t *error                                 = NULL;\n\tlibfsrefs_io_handle_t *io_handle                         = NULL;\n\tlibfsrefs_metadata_block_header_t *metadata_block_header = NULL;\n\tint result                                               = 0;\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tio_handle->metadata_block_size  = 16384;\n\tio_handle->major_format_version = 1;\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_metadata_block_header_initialize(\n\t          &metadata_block_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"metadata_block_header\",\n\t metadata_block_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Initialize file IO handle\n\t */\n\tresult = fsrefs_test_open_file_io_handle(\n\t          &file_io_handle,\n\t          fsrefs_test_metadata_block_header_data1,\n\t          48,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_io_handle\",\n\t file_io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_metadata_block_header_read_file_io_handle(\n\t          metadata_block_header,\n\t          io_handle,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_metadata_block_header_read_file_io_handle(\n\t          NULL,\n\t          io_handle,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_metadata_block_header_read_file_io_handle(\n\t          metadata_block_header,\n\t          NULL,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_metadata_block_header_read_file_io_handle(\n\t          metadata_block_header,\n\t          io_handle,\n\t          NULL,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_metadata_block_header_read_file_io_handle(\n\t          metadata_block_header,\n\t          io_handle,\n\t          file_io_handle,\n\t          -1,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\t/* Clean up file IO handle\n\t */\n\tresult = fsrefs_test_close_file_io_handle(\n\t          &file_io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test data too small\n\t */\n\tresult = fsrefs_test_open_file_io_handle(\n\t          &file_io_handle,\n\t          fsrefs_test_metadata_block_header_data1,\n\t          8,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_io_handle\",\n\t file_io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_metadata_block_header_read_file_io_handle(\n\t          metadata_block_header,\n\t          io_handle,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = fsrefs_test_close_file_io_handle(\n\t          &file_io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test data invalid\n\t */\n/* TODO\n\tresult = fsrefs_test_open_file_io_handle(\n\t          &file_io_handle,\n\t          fsrefs_test_metadata_block_header_data1,\n\t          48,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_io_handle\",\n\t file_io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tbyte_stream_copy_from_uint64_little_endian(\n\t &( fsrefs_test_metadata_block_header_data1[ 3 ] ),\n\t 0xffffffffffffffffUL );\n\n\tresult = libfsrefs_metadata_block_header_read_file_io_handle(\n\t          metadata_block_header,\n\t          io_handle,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tbyte_stream_copy_from_uint64_little_endian(\n\t &( fsrefs_test_metadata_block_header_data1[ 3 ] ),\n\t 0x0000000053466552UL );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = fsrefs_test_close_file_io_handle(\n\t          &file_io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n*/\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_metadata_block_header_free(\n\t          &metadata_block_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"metadata_block_header\",\n\t metadata_block_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_io_handle_free(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( file_io_handle != NULL )\n\t{\n\t\tlibbfio_handle_free(\n\t\t &file_io_handle,\n\t\t NULL );\n\t}\n\tif( metadata_block_header != NULL )\n\t{\n\t\tlibfsrefs_metadata_block_header_free(\n\t\t &metadata_block_header,\n\t\t NULL );\n\t}\n\tif( io_handle != NULL )\n\t{\n\t\tlibfsrefs_io_handle_free(\n\t\t &io_handle,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_metadata_block_header_initialize\",\n\t fsrefs_test_metadata_block_header_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_metadata_block_header_free\",\n\t fsrefs_test_metadata_block_header_free );\n\n\t/* TODO: add tests for libfsrefs_metadata_block_header_read_data */\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_metadata_block_header_read_file_io_handle\",\n\t fsrefs_test_metadata_block_header_read_file_io_handle );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_ministore_node.c",
    "content": "/*\n * Library ministore_node type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_ministore_node.h\"\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_ministore_node_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_ministore_node_initialize(\n     void )\n{\n\tlibcerror_error_t *error                   = NULL;\n\tlibfsrefs_ministore_node_t *ministore_node = NULL;\n\tint result                                 = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests            = 1;\n\tint number_of_memset_fail_tests            = 1;\n\tint test_number                            = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_ministore_node_initialize(\n\t          &ministore_node,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"ministore_node\",\n\t ministore_node );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_ministore_node_free(\n\t          &ministore_node,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"ministore_node\",\n\t ministore_node );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_ministore_node_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tministore_node = (libfsrefs_ministore_node_t *) 0x12345678UL;\n\n\tresult = libfsrefs_ministore_node_initialize(\n\t          &ministore_node,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tministore_node = NULL;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_ministore_node_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_ministore_node_initialize(\n\t\t          &ministore_node,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( ministore_node != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_ministore_node_free(\n\t\t\t\t &ministore_node,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"ministore_node\",\n\t\t\t ministore_node );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_ministore_node_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_ministore_node_initialize(\n\t\t          &ministore_node,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( ministore_node != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_ministore_node_free(\n\t\t\t\t &ministore_node,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"ministore_node\",\n\t\t\t ministore_node );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( ministore_node != NULL )\n\t{\n\t\tlibfsrefs_ministore_node_free(\n\t\t &ministore_node,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_ministore_node_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_ministore_node_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_ministore_node_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_ministore_node_initialize\",\n\t fsrefs_test_ministore_node_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_ministore_node_free\",\n\t fsrefs_test_ministore_node_free );\n\n\t/* TODO: add tests for libfsrefs_ministore_node_read_data */\n\n\t/* TODO: add tests for libfsrefs_ministore_node_read_file_io_handle */\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_ministore_tree.c",
    "content": "/*\n * Library ministore_tree type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_ministore_tree.h\"\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_ministore_tree_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_ministore_tree_initialize(\n     void )\n{\n\tlibcerror_error_t *error                   = NULL;\n\tlibfsrefs_ministore_tree_t *ministore_tree = NULL;\n\tint result                                 = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests            = 1;\n\tint number_of_memset_fail_tests            = 1;\n\tint test_number                            = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_ministore_tree_initialize(\n\t          &ministore_tree,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"ministore_tree\",\n\t ministore_tree );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_ministore_tree_free(\n\t          &ministore_tree,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"ministore_tree\",\n\t ministore_tree );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_ministore_tree_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tministore_tree = (libfsrefs_ministore_tree_t *) 0x12345678UL;\n\n\tresult = libfsrefs_ministore_tree_initialize(\n\t          &ministore_tree,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tministore_tree = NULL;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_ministore_tree_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_ministore_tree_initialize(\n\t\t          &ministore_tree,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( ministore_tree != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_ministore_tree_free(\n\t\t\t\t &ministore_tree,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"ministore_tree\",\n\t\t\t ministore_tree );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_ministore_tree_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_ministore_tree_initialize(\n\t\t          &ministore_tree,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( ministore_tree != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_ministore_tree_free(\n\t\t\t\t &ministore_tree,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"ministore_tree\",\n\t\t\t ministore_tree );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( ministore_tree != NULL )\n\t{\n\t\tlibfsrefs_ministore_tree_free(\n\t\t &ministore_tree,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_ministore_tree_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_ministore_tree_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_ministore_tree_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_ministore_tree_initialize\",\n\t fsrefs_test_ministore_tree_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_ministore_tree_free\",\n\t fsrefs_test_ministore_tree_free );\n\n\t/* TODO: add tests for libfsrefs_ministore_tree_read_data */\n\n\t/* TODO: add tests for libfsrefs_ministore_tree_read_file_io_handle */\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_node_header.c",
    "content": "/*\n * Library node_header type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_node_header.h\"\n\nuint8_t fsrefs_test_node_header_data1[ 32 ] = {\n\t0x20, 0x00, 0x00, 0x00, 0xa0, 0x02, 0x00, 0x00, 0xb0, 0x32, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00,\n\t0x50, 0x35, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x70, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_node_header_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_node_header_initialize(\n     void )\n{\n\tlibcerror_error_t *error             = NULL;\n\tlibfsrefs_node_header_t *node_header = NULL;\n\tint result                           = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests      = 1;\n\tint number_of_memset_fail_tests      = 1;\n\tint test_number                      = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_node_header_initialize(\n\t          &node_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"node_header\",\n\t node_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_node_header_free(\n\t          &node_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"node_header\",\n\t node_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_node_header_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tnode_header = (libfsrefs_node_header_t *) 0x12345678UL;\n\n\tresult = libfsrefs_node_header_initialize(\n\t          &node_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tnode_header = NULL;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_node_header_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_node_header_initialize(\n\t\t          &node_header,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( node_header != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_node_header_free(\n\t\t\t\t &node_header,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"node_header\",\n\t\t\t node_header );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_node_header_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_node_header_initialize(\n\t\t          &node_header,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( node_header != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_node_header_free(\n\t\t\t\t &node_header,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"node_header\",\n\t\t\t node_header );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( node_header != NULL )\n\t{\n\t\tlibfsrefs_node_header_free(\n\t\t &node_header,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_node_header_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_node_header_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_node_header_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_node_header_read_data function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_node_header_read_data(\n     void )\n{\n\tlibcerror_error_t *error             = NULL;\n\tlibfsrefs_node_header_t *node_header = NULL;\n\tint result                           = 0;\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_node_header_initialize(\n\t          &node_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"node_header\",\n\t node_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_node_header_read_data(\n\t          node_header,\n\t          fsrefs_test_node_header_data1,\n\t          32,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_node_header_read_data(\n\t          NULL,\n\t          fsrefs_test_node_header_data1,\n\t          32,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_node_header_read_data(\n\t          node_header,\n\t          NULL,\n\t          32,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_node_header_read_data(\n\t          node_header,\n\t          fsrefs_test_node_header_data1,\n\t          (size_t) SSIZE_MAX + 1,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_node_header_read_data(\n\t          node_header,\n\t          fsrefs_test_node_header_data1,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n/* TODO: Test error case where data is invalid\n */\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_node_header_free(\n\t          &node_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"node_header\",\n\t node_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( node_header != NULL )\n\t{\n\t\tlibfsrefs_node_header_free(\n\t\t &node_header,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_node_header_initialize\",\n\t fsrefs_test_node_header_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_node_header_free\",\n\t fsrefs_test_node_header_free );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_node_header_read_data\",\n\t fsrefs_test_node_header_read_data );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_node_record.c",
    "content": "/*\n * Library node_record type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_node_record.h\"\n\nuint8_t fsrefs_test_node_record_data1[ 176 ] = {\n\t0xb0, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0xa0, 0x00, 0x00, 0x00,\n\t0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,\n\t0x01, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0xa2, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_node_record_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_node_record_initialize(\n     void )\n{\n\tlibcerror_error_t *error             = NULL;\n\tlibfsrefs_node_record_t *node_record = NULL;\n\tint result                           = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests      = 1;\n\tint number_of_memset_fail_tests      = 1;\n\tint test_number                      = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_node_record_initialize(\n\t          &node_record,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"node_record\",\n\t node_record );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_node_record_free(\n\t          &node_record,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"node_record\",\n\t node_record );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_node_record_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tnode_record = (libfsrefs_node_record_t *) 0x12345678UL;\n\n\tresult = libfsrefs_node_record_initialize(\n\t          &node_record,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tnode_record = NULL;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_node_record_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_node_record_initialize(\n\t\t          &node_record,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( node_record != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_node_record_free(\n\t\t\t\t &node_record,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"node_record\",\n\t\t\t node_record );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_node_record_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_node_record_initialize(\n\t\t          &node_record,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( node_record != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_node_record_free(\n\t\t\t\t &node_record,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"node_record\",\n\t\t\t node_record );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( node_record != NULL )\n\t{\n\t\tlibfsrefs_node_record_free(\n\t\t &node_record,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_node_record_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_node_record_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_node_record_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_node_record_read_data function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_node_record_read_data(\n     void )\n{\n\tlibcerror_error_t *error             = NULL;\n\tlibfsrefs_node_record_t *node_record = NULL;\n\tint result                           = 0;\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_node_record_initialize(\n\t          &node_record,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"node_record\",\n\t node_record );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_node_record_read_data(\n\t          node_record,\n\t          fsrefs_test_node_record_data1,\n\t          176,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_node_record_read_data(\n\t          NULL,\n\t          fsrefs_test_node_record_data1,\n\t          176,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_node_record_read_data(\n\t          node_record,\n\t          NULL,\n\t          176,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_node_record_read_data(\n\t          node_record,\n\t          fsrefs_test_node_record_data1,\n\t          (size_t) SSIZE_MAX + 1,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_node_record_read_data(\n\t          node_record,\n\t          fsrefs_test_node_record_data1,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n/* TODO: Test error case where data is invalid\n */\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_node_record_free(\n\t          &node_record,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"node_record\",\n\t node_record );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( node_record != NULL )\n\t{\n\t\tlibfsrefs_node_record_free(\n\t\t &node_record,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_node_record_initialize\",\n\t fsrefs_test_node_record_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_node_record_free\",\n\t fsrefs_test_node_record_free );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_node_record_read_data\",\n\t fsrefs_test_node_record_read_data );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_notify.c",
    "content": "/*\n * Library notification functions test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_unused.h\"\n\n/* Tests the libfsrefs_notify_set_verbose function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_notify_set_verbose(\n     void )\n{\n\t/* Test invocation of function only\n\t */\n\tlibfsrefs_notify_set_verbose(\n\t 0 );\n\n\treturn( 1 );\n}\n\n/* Tests the libfsrefs_notify_set_stream function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_notify_set_stream(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_notify_set_stream(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n/* TODO test libcnotify_stream_set failure */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_notify_stream_open function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_notify_stream_open(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_notify_stream_open(\n\t          \"notify_stream.log\",\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_notify_stream_open(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_notify_stream_close(\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_notify_stream_close function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_notify_stream_close(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_notify_stream_close(\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n/* TODO test libcnotify_stream_close failure */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_notify_set_verbose\",\n\t fsrefs_test_notify_set_verbose )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_notify_set_stream\",\n\t fsrefs_test_notify_set_stream )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_notify_stream_open\",\n\t fsrefs_test_notify_stream_open )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_notify_stream_close\",\n\t fsrefs_test_notify_stream_close )\n\n\treturn( EXIT_SUCCESS );\n\non_error:\n\treturn( EXIT_FAILURE );\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_objects_tree.c",
    "content": "/*\n * Library objects_tree type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_file_system.h\"\n#include \"../libfsrefs/libfsrefs_objects_tree.h\"\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_objects_tree_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_objects_tree_initialize(\n     void )\n{\n\tlibcerror_error_t *error               = NULL;\n\tlibfsrefs_file_system_t *file_system   = NULL;\n\tlibfsrefs_objects_tree_t *objects_tree = NULL;\n\tint result                             = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests        = 1;\n\tint number_of_memset_fail_tests        = 1;\n\tint test_number                        = 0;\n#endif\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_file_system_initialize(\n\t          &file_system,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_system\",\n\t file_system );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_objects_tree_initialize(\n\t          &objects_tree,\n\t          file_system,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"objects_tree\",\n\t objects_tree );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_objects_tree_free(\n\t          &objects_tree,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"objects_tree\",\n\t objects_tree );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_objects_tree_initialize(\n\t          NULL,\n\t          file_system,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tobjects_tree = (libfsrefs_objects_tree_t *) 0x12345678UL;\n\n\tresult = libfsrefs_objects_tree_initialize(\n\t          &objects_tree,\n\t          file_system,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tobjects_tree = NULL;\n\n\tresult = libfsrefs_objects_tree_initialize(\n\t          &objects_tree,\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_objects_tree_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_objects_tree_initialize(\n\t\t          &objects_tree,\n\t\t          file_system,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( objects_tree != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_objects_tree_free(\n\t\t\t\t &objects_tree,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"objects_tree\",\n\t\t\t objects_tree );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_objects_tree_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_objects_tree_initialize(\n\t\t          &objects_tree,\n\t\t          file_system,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( objects_tree != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_objects_tree_free(\n\t\t\t\t &objects_tree,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"objects_tree\",\n\t\t\t objects_tree );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_file_system_free(\n\t          &file_system,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"file_system\",\n\t file_system );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( objects_tree != NULL )\n\t{\n\t\tlibfsrefs_objects_tree_free(\n\t\t &objects_tree,\n\t\t NULL );\n\t}\n\tif( file_system != NULL )\n\t{\n\t\tlibfsrefs_file_system_free(\n\t\t &file_system,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_objects_tree_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_objects_tree_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_objects_tree_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_objects_tree_initialize\",\n\t fsrefs_test_objects_tree_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_objects_tree_free\",\n\t fsrefs_test_objects_tree_free );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_superblock.c",
    "content": "/*\n * Library superblock type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_functions.h\"\n#include \"fsrefs_test_libbfio.h\"\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_io_handle.h\"\n#include \"../libfsrefs/libfsrefs_superblock.h\"\n\nuint8_t fsrefs_test_superblock_data1[ 16384 ] = {\n\t0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x46, 0xfe, 0x6e, 0x60, 0xd5, 0x34, 0xb0, 0x49, 0x80, 0xef, 0x0b, 0x57, 0x5e, 0xcf, 0x09, 0x8d,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0xa0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x86, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xec, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x08, 0x00, 0x00, 0x00,\n\t0x5d, 0x5f, 0xe6, 0x46, 0x0a, 0xde, 0xe1, 0xc4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };\n\nuint8_t fsrefs_test_superblock_data2[ 4096 ] = {\n\t0x53, 0x55, 0x50, 0x42, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbb, 0xa7, 0xe0, 0x68,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0xae, 0xa0, 0xd1, 0x1d, 0x1d, 0xe0, 0x0d, 0x49, 0x89, 0x0b, 0x09, 0xa5, 0x81, 0xec, 0x35, 0x99,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0xc0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0xd0, 0x00, 0x00, 0x00, 0x68, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0xf8, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0xee, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x01, 0x08, 0x04, 0x00, 0x00, 0x00, 0xe2, 0xfb, 0xbe, 0x68, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_superblock_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_superblock_initialize(\n     void )\n{\n\tlibcerror_error_t *error           = NULL;\n\tlibfsrefs_superblock_t *superblock = NULL;\n\tint result                         = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests    = 1;\n\tint number_of_memset_fail_tests    = 1;\n\tint test_number                    = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_superblock_initialize(\n\t          &superblock,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"superblock\",\n\t superblock );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_superblock_free(\n\t          &superblock,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"superblock\",\n\t superblock );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_superblock_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tsuperblock = (libfsrefs_superblock_t *) 0x12345678UL;\n\n\tresult = libfsrefs_superblock_initialize(\n\t          &superblock,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tsuperblock = NULL;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_superblock_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_superblock_initialize(\n\t\t          &superblock,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( superblock != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_superblock_free(\n\t\t\t\t &superblock,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"superblock\",\n\t\t\t superblock );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_superblock_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_superblock_initialize(\n\t\t          &superblock,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( superblock != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_superblock_free(\n\t\t\t\t &superblock,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"superblock\",\n\t\t\t superblock );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( superblock != NULL )\n\t{\n\t\tlibfsrefs_superblock_free(\n\t\t &superblock,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_superblock_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_superblock_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_superblock_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_superblock_read_data function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_superblock_read_data(\n     void )\n{\n\tlibcerror_error_t *error           = NULL;\n\tlibfsrefs_io_handle_t *io_handle   = NULL;\n\tlibfsrefs_superblock_t *superblock = NULL;\n\tint result                         = 0;\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tio_handle->metadata_block_size  = 16384;\n\tio_handle->major_format_version = 1;\n\n\tresult = libfsrefs_superblock_initialize(\n\t          &superblock,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"superblock\",\n\t superblock );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_superblock_read_data(\n\t          superblock,\n\t          io_handle,\n\t          &( fsrefs_test_superblock_data1[ 48 ] ),\n\t          16384 - 48,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_superblock_read_data(\n\t          NULL,\n\t          io_handle,\n\t          &( fsrefs_test_superblock_data1[ 48 ] ),\n\t          16384 - 48,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_superblock_read_data(\n\t          superblock,\n\t          NULL,\n\t          &( fsrefs_test_superblock_data1[ 48 ] ),\n\t          16384 - 48,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_superblock_read_data(\n\t          superblock,\n\t          io_handle,\n\t          NULL,\n\t          16384 - 48,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_superblock_read_data(\n\t          superblock,\n\t          io_handle,\n\t          &( fsrefs_test_superblock_data1[ 48 ] ),\n\t          (size_t) SSIZE_MAX + 1,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_superblock_read_data(\n\t          superblock,\n\t          io_handle,\n\t          &( fsrefs_test_superblock_data1[ 48 ] ),\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n/* TODO: Test error case where data is invalid\n */\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_superblock_free(\n\t          &superblock,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"superblock\",\n\t superblock );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_io_handle_free(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tio_handle->metadata_block_size  = 4096;\n\tio_handle->major_format_version = 3;\n\n\tresult = libfsrefs_superblock_initialize(\n\t          &superblock,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"superblock\",\n\t superblock );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_superblock_read_data(\n\t          superblock,\n\t          io_handle,\n\t          &( fsrefs_test_superblock_data2[ 80 ] ),\n\t          4096 - 80,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_superblock_free(\n\t          &superblock,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"superblock\",\n\t superblock );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_io_handle_free(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( superblock != NULL )\n\t{\n\t\tlibfsrefs_superblock_free(\n\t\t &superblock,\n\t\t NULL );\n\t}\n\tif( io_handle != NULL )\n\t{\n\t\tlibfsrefs_io_handle_free(\n\t\t &io_handle,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_superblock_read_file_io_handle function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_superblock_read_file_io_handle(\n     void )\n{\n\tlibbfio_handle_t *file_io_handle   = NULL;\n\tlibcerror_error_t *error           = NULL;\n\tlibfsrefs_io_handle_t *io_handle   = NULL;\n\tlibfsrefs_superblock_t *superblock = NULL;\n\tint result                         = 0;\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tio_handle->metadata_block_size  = 16384;\n\tio_handle->major_format_version = 1;\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_superblock_initialize(\n\t          &superblock,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"superblock\",\n\t superblock );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Initialize file IO handle\n\t */\n\tresult = fsrefs_test_open_file_io_handle(\n\t          &file_io_handle,\n\t          fsrefs_test_superblock_data1,\n\t          16384,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_io_handle\",\n\t file_io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_superblock_read_file_io_handle(\n\t          superblock,\n\t          io_handle,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_superblock_read_file_io_handle(\n\t          NULL,\n\t          io_handle,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_superblock_read_file_io_handle(\n\t          superblock,\n\t          NULL,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_superblock_read_file_io_handle(\n\t          superblock,\n\t          io_handle,\n\t          NULL,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_superblock_read_file_io_handle(\n\t          superblock,\n\t          io_handle,\n\t          file_io_handle,\n\t          -1,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\t/* Clean up file IO handle\n\t */\n\tresult = fsrefs_test_close_file_io_handle(\n\t          &file_io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test data too small\n\t */\n\tresult = fsrefs_test_open_file_io_handle(\n\t          &file_io_handle,\n\t          fsrefs_test_superblock_data1,\n\t          8,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_io_handle\",\n\t file_io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_superblock_read_file_io_handle(\n\t          superblock,\n\t          io_handle,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = fsrefs_test_close_file_io_handle(\n\t          &file_io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test data invalid\n\t */\n/* TODO */\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_superblock_free(\n\t          &superblock,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"superblock\",\n\t superblock );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_io_handle_free(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_io_handle_initialize(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tio_handle->metadata_block_size  = 4096;\n\tio_handle->major_format_version = 3;\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_superblock_initialize(\n\t          &superblock,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"superblock\",\n\t superblock );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Initialize file IO handle\n\t */\n\tresult = fsrefs_test_open_file_io_handle(\n\t          &file_io_handle,\n\t          fsrefs_test_superblock_data2,\n\t          4096,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_io_handle\",\n\t file_io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_superblock_read_file_io_handle(\n\t          superblock,\n\t          io_handle,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Clean up file IO handle\n\t */\n\tresult = fsrefs_test_close_file_io_handle(\n\t          &file_io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_superblock_free(\n\t          &superblock,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"superblock\",\n\t superblock );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_io_handle_free(\n\t          &io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"io_handle\",\n\t io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( file_io_handle != NULL )\n\t{\n\t\tlibbfio_handle_free(\n\t\t &file_io_handle,\n\t\t NULL );\n\t}\n\tif( superblock != NULL )\n\t{\n\t\tlibfsrefs_superblock_free(\n\t\t &superblock,\n\t\t NULL );\n\t}\n\tif( io_handle != NULL )\n\t{\n\t\tlibfsrefs_io_handle_free(\n\t\t &io_handle,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_superblock_initialize\",\n\t fsrefs_test_superblock_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_superblock_free\",\n\t fsrefs_test_superblock_free );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_superblock_read_data\",\n\t fsrefs_test_superblock_read_data );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_superblock_read_file_io_handle\",\n\t fsrefs_test_superblock_read_file_io_handle );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_support.c",
    "content": "/*\n * Library support functions test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <narrow_string.h>\n#include <system_string.h>\n#include <types.h>\n#include <wide_string.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_functions.h\"\n#include \"fsrefs_test_getopt.h\"\n#include \"fsrefs_test_libbfio.h\"\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#if !defined( LIBFSREFS_HAVE_BFIO )\n\nLIBFSREFS_EXTERN \\\nint libfsrefs_check_volume_signature_file_io_handle(\n     libbfio_handle_t *file_io_handle,\n     libcerror_error_t **error );\n\n#endif /* !defined( LIBFSREFS_HAVE_BFIO ) */\n\n/* Tests the libfsrefs_get_version function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_get_version(\n     void )\n{\n\tconst char *version_string = NULL;\n\tint result                 = 0;\n\n\tversion_string = libfsrefs_get_version();\n\n\tresult = narrow_string_compare(\n\t          version_string,\n\t          LIBFSREFS_VERSION_STRING,\n\t          9 );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\treturn( 1 );\n\non_error:\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_get_access_flags_read function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_get_access_flags_read(\n     void )\n{\n\tint access_flags = 0;\n\n\taccess_flags = libfsrefs_get_access_flags_read();\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"access_flags\",\n\t access_flags,\n\t LIBFSREFS_ACCESS_FLAG_READ );\n\n\treturn( 1 );\n\non_error:\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_get_codepage function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_get_codepage(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint codepage             = 0;\n\tint result               = 0;\n\n\tresult = libfsrefs_get_codepage(\n\t          &codepage,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_get_codepage(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_set_codepage function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_set_codepage(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\tresult = libfsrefs_set_codepage(\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_set_codepage(\n\t          -1,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_check_volume_signature function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_check_volume_signature(\n     const system_character_t *source )\n{\n\tchar narrow_source[ 256 ];\n\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\tif( source != NULL )\n\t{\n\t\t/* Initialize test\n\t\t */\n\t\tresult = fsrefs_test_get_narrow_source(\n\t\t          source,\n\t\t          narrow_source,\n\t\t          256,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t 1 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t \"error\",\n\t\t error );\n\n\t\t/* Test check volume signature\n\t\t */\n\t\tresult = libfsrefs_check_volume_signature(\n\t\t          narrow_source,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t 1 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t \"error\",\n\t\t error );\n\t}\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_check_volume_signature(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_check_volume_signature(\n\t          \"\",\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tif( source != NULL )\n\t{\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\t\t/* Test libfsrefs_check_volume_signature with malloc failing in libbfio_file_initialize\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = 0;\n\n\t\tresult = libfsrefs_check_volume_signature(\n\t\t          narrow_source,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\t}\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n#if defined( HAVE_WIDE_CHARACTER_TYPE )\n\n/* Tests the libfsrefs_check_volume_signature_wide function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_check_volume_signature_wide(\n     const system_character_t *source )\n{\n\twchar_t wide_source[ 256 ];\n\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\tif( source != NULL )\n\t{\n\t\t/* Initialize test\n\t\t */\n\t\tresult = fsrefs_test_get_wide_source(\n\t\t          source,\n\t\t          wide_source,\n\t\t          256,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t 1 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t \"error\",\n\t\t error );\n\n\t\t/* Test check volume signature\n\t\t */\n\t\tresult = libfsrefs_check_volume_signature_wide(\n\t\t          wide_source,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t 1 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t \"error\",\n\t\t error );\n\t}\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_check_volume_signature_wide(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_check_volume_signature_wide(\n\t          L\"\",\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tif( source != NULL )\n\t{\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\t\t/* Test libfsrefs_check_volume_signature_wide with malloc failing in libbfio_file_initialize\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = 0;\n\n\t\tresult = libfsrefs_check_volume_signature_wide(\n\t\t          wide_source,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\t}\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */\n\n/* Tests the libfsrefs_check_volume_signature_file_io_handle function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_check_volume_signature_file_io_handle(\n     const system_character_t *source )\n{\n\tuint8_t empty_block[ 8192 ];\n\n\tlibbfio_handle_t *file_io_handle = NULL;\n\tlibcerror_error_t *error         = NULL;\n\tvoid *memset_result              = NULL;\n\tsize_t source_length             = 0;\n\tint result                       = 0;\n\n\t/* Initialize test\n\t */\n\tmemset_result = memory_set(\n\t                 empty_block,\n\t                 0,\n\t                 sizeof( uint8_t ) * 8192 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"memset_result\",\n\t memset_result );\n\n\tif( source != NULL )\n\t{\n\t\t/* Initialize test\n\t\t */\n\t\tresult = libbfio_file_initialize(\n\t\t          &file_io_handle,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t 1 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t \"file_io_handle\",\n\t\t file_io_handle );\n\n\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t \"error\",\n\t\t error );\n\n\t\tsource_length = system_string_length(\n\t\t                 source );\n\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\t\tresult = libbfio_file_set_name_wide(\n\t\t          file_io_handle,\n\t\t          source,\n\t\t          source_length,\n\t\t          &error );\n#else\n\t\tresult = libbfio_file_set_name(\n\t\t          file_io_handle,\n\t\t          source,\n\t\t          source_length,\n\t\t          &error );\n#endif\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t 1 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t \"error\",\n\t\t error );\n\n\t\tresult = libbfio_handle_open(\n\t\t          file_io_handle,\n\t\t          LIBBFIO_OPEN_READ,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t 1 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t \"error\",\n\t\t error );\n\n\t\t/* Test check volume signature\n\t\t */\n\t\tresult = libfsrefs_check_volume_signature_file_io_handle(\n\t\t          file_io_handle,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t 1 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t \"error\",\n\t\t error );\n\t}\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_check_volume_signature_file_io_handle(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\t/* Clean up\n\t */\n\tif( source != NULL )\n\t{\n\t\tresult = libbfio_handle_close(\n\t\t          file_io_handle,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t 0 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t \"error\",\n\t\t error );\n\n\t\tresult = libbfio_handle_free(\n\t\t          &file_io_handle,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t 1 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t \"file_io_handle\",\n\t\t file_io_handle );\n\n\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t \"error\",\n\t\t error );\n\t}\n\t/* Test check volume signature with data too small\n\t */\n\tresult = fsrefs_test_open_file_io_handle(\n\t          &file_io_handle,\n\t          empty_block,\n\t          sizeof( uint8_t ) * 1,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_io_handle\",\n\t file_io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_check_volume_signature_file_io_handle(\n\t          file_io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = fsrefs_test_close_file_io_handle(\n\t          &file_io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test check volume signature with empty block\n\t */\n\tresult = fsrefs_test_open_file_io_handle(\n\t          &file_io_handle,\n\t          empty_block,\n\t          sizeof( uint8_t ) * 8192,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_io_handle\",\n\t file_io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_check_volume_signature_file_io_handle(\n\t          file_io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = fsrefs_test_close_file_io_handle(\n\t          &file_io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( file_io_handle != NULL )\n\t{\n\t\tlibbfio_handle_free(\n\t\t &file_io_handle,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc,\n     wchar_t * const argv[] )\n#else\nint main(\n     int argc,\n     char * const argv[] )\n#endif\n{\n\tlibcerror_error_t *error          = NULL;\n\tsystem_character_t *option_offset = NULL;\n\tsystem_character_t *source        = NULL;\n\tsystem_integer_t option           = 0;\n\tsize_t string_length              = 0;\n\toff64_t volume_offset             = 0;\n\tint result                        = 0;\n\n\twhile( ( option = fsrefs_test_getopt(\n\t                   argc,\n\t                   argv,\n\t                   _SYSTEM_STRING( \"o:\" ) ) ) != (system_integer_t) -1 )\n\t{\n\t\tswitch( option )\n\t\t{\n\t\t\tcase (system_integer_t) '?':\n\t\t\tdefault:\n\t\t\t\tfprintf(\n\t\t\t\t stderr,\n\t\t\t\t \"Invalid argument: %\" PRIs_SYSTEM \".\\n\",\n\t\t\t\t argv[ optind - 1 ] );\n\n\t\t\t\treturn( EXIT_FAILURE );\n\n\t\t\tcase (system_integer_t) 'o':\n\t\t\t\toption_offset = optarg;\n\n\t\t\t\tbreak;\n\t\t}\n\t}\n\tif( optind < argc )\n\t{\n\t\tsource = argv[ optind ];\n\t}\n\tif( option_offset != NULL )\n\t{\n\t\tstring_length = system_string_length(\n\t\t                 option_offset );\n\n\t\tresult = fsrefs_test_system_string_copy_from_64_bit_in_decimal(\n\t\t          option_offset,\n\t\t          string_length + 1,\n\t\t          (uint64_t *) &volume_offset,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t 1 );\n\n\t        FSREFS_TEST_ASSERT_IS_NULL(\n\t         \"error\",\n\t         error );\n\t}\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_get_version\",\n\t fsrefs_test_get_version );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_get_access_flags_read\",\n\t fsrefs_test_get_access_flags_read );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_get_codepage\",\n\t fsrefs_test_get_codepage );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_set_codepage\",\n\t fsrefs_test_set_codepage );\n\n#if !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 )\n\tif( ( source != NULL )\n\t && ( volume_offset == 0 ) )\n\t{\n\t\tFSREFS_TEST_RUN_WITH_ARGS(\n\t\t \"libfsrefs_check_volume_signature\",\n\t\t fsrefs_test_check_volume_signature,\n\t\t source );\n\n#if defined( HAVE_WIDE_CHARACTER_TYPE )\n\n\t\tFSREFS_TEST_RUN_WITH_ARGS(\n\t\t \"libfsrefs_check_volume_signature_wide\",\n\t\t fsrefs_test_check_volume_signature_wide,\n\t\t source );\n\n#endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */\n\n\t\tFSREFS_TEST_RUN_WITH_ARGS(\n\t\t \"libfsrefs_check_volume_signature_file_io_handle\",\n\t\t fsrefs_test_check_volume_signature_file_io_handle,\n\t\t source );\n\t}\n#endif /* !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 ) */\n\n\treturn( EXIT_SUCCESS );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( EXIT_FAILURE );\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_tools_info_handle.c",
    "content": "/*\n * Tools info_handle type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <memory.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../fsrefstools/info_handle.h\"\n\n/* Tests the info_handle_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_tools_info_handle_initialize(\n     void )\n{\n\tinfo_handle_t *info_handle      = NULL;\n\tlibcerror_error_t *error        = NULL;\n\tint result                      = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests = 1;\n\tint number_of_memset_fail_tests = 1;\n\tint test_number                 = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = info_handle_initialize(\n\t          &info_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"info_handle\",\n\t info_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = info_handle_free(\n\t          &info_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"info_handle\",\n\t info_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = info_handle_initialize(\n\t          NULL,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tinfo_handle = (info_handle_t *) 0x12345678UL;\n\n\tresult = info_handle_initialize(\n\t          &info_handle,\n\t          0,\n\t          &error );\n\n\tinfo_handle = NULL;\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test info_handle_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = info_handle_initialize(\n\t\t          &info_handle,\n\t\t          0,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( info_handle != NULL )\n\t\t\t{\n\t\t\t\tinfo_handle_free(\n\t\t\t\t &info_handle,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"info_handle\",\n\t\t\t info_handle );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test info_handle_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = info_handle_initialize(\n\t\t          &info_handle,\n\t\t          0,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( info_handle != NULL )\n\t\t\t{\n\t\t\t\tinfo_handle_free(\n\t\t\t\t &info_handle,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"info_handle\",\n\t\t\t info_handle );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( info_handle != NULL )\n\t{\n\t\tinfo_handle_free(\n\t\t &info_handle,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the info_handle_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_tools_info_handle_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = info_handle_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n\tFSREFS_TEST_RUN(\n\t \"info_handle_initialize\",\n\t fsrefs_test_tools_info_handle_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"info_handle_free\",\n\t fsrefs_test_tools_info_handle_free );\n\n\treturn( EXIT_SUCCESS );\n\non_error:\n\treturn( EXIT_FAILURE );\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_tools_output.c",
    "content": "/*\n * Tools output functions test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#include <stdio.h>\n\n#if defined( HAVE_IO_H ) || defined( WINAPI )\n#include <io.h>\n#endif\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../fsrefstools/fsrefstools_output.h\"\n\n/* Tests the fsrefstools_output_initialize and function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_tools_output_initialize(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\tresult = fsrefstools_output_initialize(\n\t          _IONBF,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n\tFSREFS_TEST_RUN(\n\t \"fsrefstools_output_initialize\",\n\t fsrefs_test_tools_output_initialize )\n\n\t/* TODO add tests for fsrefstools_output_copyright_fprint */\n\n\t/* TODO add tests for fsrefstools_output_version_fprint */\n\n\t/* TODO add tests for fsrefstools_output_version_detailed_fprint */\n\n\treturn( EXIT_SUCCESS );\n\non_error:\n\treturn( EXIT_FAILURE );\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_tools_signal.c",
    "content": "/*\n * Tools signal functions test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../fsrefstools/fsrefstools_signal.h\"\n\nvoid fsrefs_test_tools_signal_handler_function(\n      fsrefstools_signal_t signal FSREFS_TEST_ATTRIBUTE_UNUSED )\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( signal )\n}\n\n#if defined( WINAPI )\n\n/* Tests the fsrefstools_signal_handler function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_tools_signal_handler(\n     void )\n{\n\tBOOL result = 0;\n\n\t/* Test regular cases\n\t */\n\tresult = fsrefstools_signal_handler(\n\t          CTRL_C_EVENT );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t (int) TRUE );\n\n\tresult = fsrefstools_signal_handler(\n\t          CTRL_LOGOFF_EVENT );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t (int) FALSE );\n\n\treturn( 1 );\n\non_error:\n\treturn( 0 );\n}\n\n#if defined( _MSC_VER )\n\n\t/* TODO add tests for fsrefstools_signal_initialize_memory_debug */\n\n#endif /* defined( _MSC_VER ) */\n\n#endif /* defined( WINAPI ) */\n\n/* Tests the fsrefstools_signal_attach function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_tools_signal_attach(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test regular cases\n\t */\n\tresult = fsrefstools_signal_attach(\n\t          fsrefs_test_tools_signal_handler_function,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = fsrefstools_signal_attach(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the fsrefstools_signal_detach function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_tools_signal_detach(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test regular cases\n\t */\n\tresult = fsrefstools_signal_detach(\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( WINAPI )\n\n\tFSREFS_TEST_RUN(\n\t \"fsrefstools_signal_handler\",\n\t fsrefs_test_tools_signal_handler )\n\n#if defined( _MSC_VER )\n\n\t/* TODO add tests for fsrefstools_signal_initialize_memory_debug */\n\n#endif /* defined( _MSC_VER ) */\n\n#endif /* defined( WINAPI ) */\n\n\tFSREFS_TEST_RUN(\n\t \"fsrefstools_signal_attach\",\n\t fsrefs_test_tools_signal_attach )\n\n\tFSREFS_TEST_RUN(\n\t \"fsrefstools_signal_detach\",\n\t fsrefs_test_tools_signal_detach )\n\n\treturn( EXIT_SUCCESS );\n\non_error:\n\treturn( EXIT_FAILURE );\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_tree_header.c",
    "content": "/*\n * Library tree_header type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_tree_header.h\"\n\nuint8_t fsrefs_test_tree_header_data1[ 40 ] = {\n\t0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0xe0, 0x00, 0x00, 0x30, 0xe0, 0x00, 0x00,\n\t0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_tree_header_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_tree_header_initialize(\n     void )\n{\n\tlibcerror_error_t *error             = NULL;\n\tlibfsrefs_tree_header_t *tree_header = NULL;\n\tint result                           = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests      = 1;\n\tint number_of_memset_fail_tests      = 1;\n\tint test_number                      = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_tree_header_initialize(\n\t          &tree_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"tree_header\",\n\t tree_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_tree_header_free(\n\t          &tree_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"tree_header\",\n\t tree_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_tree_header_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\ttree_header = (libfsrefs_tree_header_t *) 0x12345678UL;\n\n\tresult = libfsrefs_tree_header_initialize(\n\t          &tree_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\ttree_header = NULL;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_tree_header_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_tree_header_initialize(\n\t\t          &tree_header,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( tree_header != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_tree_header_free(\n\t\t\t\t &tree_header,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"tree_header\",\n\t\t\t tree_header );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_tree_header_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_tree_header_initialize(\n\t\t          &tree_header,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( tree_header != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_tree_header_free(\n\t\t\t\t &tree_header,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"tree_header\",\n\t\t\t tree_header );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( tree_header != NULL )\n\t{\n\t\tlibfsrefs_tree_header_free(\n\t\t &tree_header,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_tree_header_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_tree_header_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_tree_header_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_tree_header_read_data function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_tree_header_read_data(\n     void )\n{\n\tlibcerror_error_t *error             = NULL;\n\tlibfsrefs_tree_header_t *tree_header = NULL;\n\tint result                           = 0;\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_tree_header_initialize(\n\t          &tree_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"tree_header\",\n\t tree_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_tree_header_read_data(\n\t          tree_header,\n\t          fsrefs_test_tree_header_data1,\n\t          40,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_tree_header_read_data(\n\t          NULL,\n\t          fsrefs_test_tree_header_data1,\n\t          40,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_tree_header_read_data(\n\t          tree_header,\n\t          NULL,\n\t          40,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_tree_header_read_data(\n\t          tree_header,\n\t          fsrefs_test_tree_header_data1,\n\t          (size_t) SSIZE_MAX + 1,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_tree_header_read_data(\n\t          tree_header,\n\t          fsrefs_test_tree_header_data1,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n/* TODO: Test error case where data is invalid\n */\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_tree_header_free(\n\t          &tree_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"tree_header\",\n\t tree_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( tree_header != NULL )\n\t{\n\t\tlibfsrefs_tree_header_free(\n\t\t &tree_header,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_tree_header_initialize\",\n\t fsrefs_test_tree_header_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_tree_header_free\",\n\t fsrefs_test_tree_header_free );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_tree_header_read_data\",\n\t fsrefs_test_tree_header_read_data );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\non_error:\n\treturn( EXIT_FAILURE );\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_unused.h",
    "content": "/*\n * Definitions to silence compiler warnings about unused function attributes/parameters.\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#if !defined( _FSREFS_TEST_UNUSED_H )\n#define _FSREFS_TEST_UNUSED_H\n\n#include <common.h>\n\n#if !defined( FSREFS_TEST_ATTRIBUTE_UNUSED )\n\n#if defined( __GNUC__ ) && __GNUC__ >= 3\n#define FSREFS_TEST_ATTRIBUTE_UNUSED\t__attribute__ ((__unused__))\n\n#else\n#define FSREFS_TEST_ATTRIBUTE_UNUSED\n\n#endif /* defined( __GNUC__ ) && __GNUC__ >= 3 */\n\n#endif /* !defined( FSREFS_TEST_ATTRIBUTE_UNUSED ) */\n\n#if defined( _MSC_VER )\n#define FSREFS_TEST_UNREFERENCED_PARAMETER( parameter ) \\\n\tUNREFERENCED_PARAMETER( parameter );\n\n#else\n#define FSREFS_TEST_UNREFERENCED_PARAMETER( parameter ) \\\n\t/* parameter */\n\n#endif /* defined( _MSC_VER ) */\n\n#endif /* !defined( _FSREFS_TEST_UNUSED_H ) */\n\n"
  },
  {
    "path": "tests/fsrefs_test_volume.c",
    "content": "/*\n * Library volume type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <file_stream.h>\n#include <narrow_string.h>\n#include <system_string.h>\n#include <types.h>\n#include <wide_string.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_getopt.h\"\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libclocale.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_libuna.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER ) && SIZEOF_WCHAR_T != 2 && SIZEOF_WCHAR_T != 4\n#error Unsupported size of wchar_t\n#endif\n\n/* Define to make fsrefs_test_volume generate verbose output\n#define FSREFS_TEST_VOLUME_VERBOSE\n */\n\n/* Retrieves source as a narrow string\n * Returns 1 if successful or -1 on error\n */\nint fsrefs_test_volume_get_narrow_source(\n     const system_character_t *source,\n     char *narrow_string,\n     size_t narrow_string_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function     = \"fsrefs_test_volume_get_narrow_source\";\n\tsize_t narrow_source_size = 0;\n\tsize_t source_length      = 0;\n\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tint result                = 0;\n#endif\n\n\tif( source == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid source.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( narrow_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid narrow string.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( narrow_string_size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid narrow string size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsource_length = system_string_length(\n\t                 source );\n\n\tif( source_length > (size_t) ( SSIZE_MAX - 1 ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid source length value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tif( libclocale_codepage == 0 )\n\t{\n#if SIZEOF_WCHAR_T == 4\n\t\tresult = libuna_utf8_string_size_from_utf32(\n\t\t          (libuna_utf32_character_t *) source,\n\t\t          source_length + 1,\n\t\t          &narrow_source_size,\n\t\t          error );\n#elif SIZEOF_WCHAR_T == 2\n\t\tresult = libuna_utf8_string_size_from_utf16(\n\t\t          (libuna_utf16_character_t *) source,\n\t\t          source_length + 1,\n\t\t          &narrow_source_size,\n\t\t          error );\n#endif\n\t}\n\telse\n\t{\n#if SIZEOF_WCHAR_T == 4\n\t\tresult = libuna_byte_stream_size_from_utf32(\n\t\t          (libuna_utf32_character_t *) source,\n\t\t          source_length + 1,\n\t\t          libclocale_codepage,\n\t\t          &narrow_source_size,\n\t\t          error );\n#elif SIZEOF_WCHAR_T == 2\n\t\tresult = libuna_byte_stream_size_from_utf16(\n\t\t          (libuna_utf16_character_t *) source,\n\t\t          source_length + 1,\n\t\t          libclocale_codepage,\n\t\t          &narrow_source_size,\n\t\t          error );\n#endif\n\t}\n\tif( result != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t LIBCERROR_CONVERSION_ERROR_GENERIC,\n\t\t \"%s: unable to determine narrow string size.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#else\n\tnarrow_source_size = source_length + 1;\n\n#endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */\n\n\tif( narrow_string_size < narrow_source_size )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL,\n\t\t \"%s: narrow string too small.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tif( libclocale_codepage == 0 )\n\t{\n#if SIZEOF_WCHAR_T == 4\n\t\tresult = libuna_utf8_string_copy_from_utf32(\n\t\t          (libuna_utf8_character_t *) narrow_string,\n\t\t          narrow_string_size,\n\t\t          (libuna_utf32_character_t *) source,\n\t\t          source_length + 1,\n\t\t          error );\n#elif SIZEOF_WCHAR_T == 2\n\t\tresult = libuna_utf8_string_copy_from_utf16(\n\t\t          (libuna_utf8_character_t *) narrow_string,\n\t\t          narrow_string_size,\n\t\t          (libuna_utf16_character_t *) source,\n\t\t          source_length + 1,\n\t\t          error );\n#endif\n\t}\n\telse\n\t{\n#if SIZEOF_WCHAR_T == 4\n\t\tresult = libuna_byte_stream_copy_from_utf32(\n\t\t          (uint8_t *) narrow_string,\n\t\t          narrow_string_size,\n\t\t          libclocale_codepage,\n\t\t          (libuna_utf32_character_t *) source,\n\t\t          source_length + 1,\n\t\t          error );\n#elif SIZEOF_WCHAR_T == 2\n\t\tresult = libuna_byte_stream_copy_from_utf16(\n\t\t          (uint8_t *) narrow_string,\n\t\t          narrow_string_size,\n\t\t          libclocale_codepage,\n\t\t          (libuna_utf16_character_t *) source,\n\t\t          source_length + 1,\n\t\t          error );\n#endif\n\t}\n\tif( result != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t LIBCERROR_CONVERSION_ERROR_GENERIC,\n\t\t \"%s: unable to set narrow string.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#else\n\tif( system_string_copy(\n\t     narrow_string,\n\t     source,\n\t     source_length ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_COPY_FAILED,\n\t\t \"%s: unable to set narrow string.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tnarrow_string[ source_length ] = 0;\n\n#endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */\n\n\treturn( 1 );\n}\n\n#if defined( HAVE_WIDE_CHARACTER_TYPE )\n\n/* Retrieves source as a wide string\n * Returns 1 if successful or -1 on error\n */\nint fsrefs_test_volume_get_wide_source(\n     const system_character_t *source,\n     wchar_t *wide_string,\n     size_t wide_string_size,\n     libcerror_error_t **error )\n{\n\tstatic char *function   = \"fsrefs_test_volume_get_wide_source\";\n\tsize_t source_length    = 0;\n\tsize_t wide_source_size = 0;\n\n#if !defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tint result              = 0;\n#endif\n\n\tif( source == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid source.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( wide_string == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid wide string.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( wide_string_size > (size_t) SSIZE_MAX )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM,\n\t\t \"%s: invalid wide string size value exceeds maximum.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tsource_length = system_string_length(\n\t                 source );\n\n\tif( source_length > (size_t) ( SSIZE_MAX - 1 ) )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS,\n\t\t \"%s: invalid source length value out of bounds.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\twide_source_size = source_length + 1;\n#else\n\tif( libclocale_codepage == 0 )\n\t{\n#if SIZEOF_WCHAR_T == 4\n\t\tresult = libuna_utf32_string_size_from_utf8(\n\t\t          (libuna_utf8_character_t *) source,\n\t\t          source_length + 1,\n\t\t          &wide_source_size,\n\t\t          error );\n#elif SIZEOF_WCHAR_T == 2\n\t\tresult = libuna_utf16_string_size_from_utf8(\n\t\t          (libuna_utf8_character_t *) source,\n\t\t          source_length + 1,\n\t\t          &wide_source_size,\n\t\t          error );\n#endif\n\t}\n\telse\n\t{\n#if SIZEOF_WCHAR_T == 4\n\t\tresult = libuna_utf32_string_size_from_byte_stream(\n\t\t          (uint8_t *) source,\n\t\t          source_length + 1,\n\t\t          libclocale_codepage,\n\t\t          &wide_source_size,\n\t\t          error );\n#elif SIZEOF_WCHAR_T == 2\n\t\tresult = libuna_utf16_string_size_from_byte_stream(\n\t\t          (uint8_t *) source,\n\t\t          source_length + 1,\n\t\t          libclocale_codepage,\n\t\t          &wide_source_size,\n\t\t          error );\n#endif\n\t}\n\tif( result != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t LIBCERROR_CONVERSION_ERROR_GENERIC,\n\t\t \"%s: unable to determine wide string size.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\n#endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */\n\n\tif( wide_string_size < wide_source_size )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL,\n\t\t \"%s: wide string too small.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tif( system_string_copy(\n\t     wide_string,\n\t     source,\n\t     source_length ) == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_MEMORY,\n\t\t LIBCERROR_MEMORY_ERROR_COPY_FAILED,\n\t\t \"%s: unable to set wide string.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\twide_string[ source_length ] = 0;\n#else\n\tif( libclocale_codepage == 0 )\n\t{\n#if SIZEOF_WCHAR_T == 4\n\t\tresult = libuna_utf32_string_copy_from_utf8(\n\t\t          (libuna_utf32_character_t *) wide_string,\n\t\t          wide_string_size,\n\t\t          (libuna_utf8_character_t *) source,\n\t\t          source_length + 1,\n\t\t          error );\n#elif SIZEOF_WCHAR_T == 2\n\t\tresult = libuna_utf16_string_copy_from_utf8(\n\t\t          (libuna_utf16_character_t *) wide_string,\n\t\t          wide_string_size,\n\t\t          (libuna_utf8_character_t *) source,\n\t\t          source_length + 1,\n\t\t          error );\n#endif\n\t}\n\telse\n\t{\n#if SIZEOF_WCHAR_T == 4\n\t\tresult = libuna_utf32_string_copy_from_byte_stream(\n\t\t          (libuna_utf32_character_t *) wide_string,\n\t\t          wide_string_size,\n\t\t          (uint8_t *) source,\n\t\t          source_length + 1,\n\t\t          libclocale_codepage,\n\t\t          error );\n#elif SIZEOF_WCHAR_T == 2\n\t\tresult = libuna_utf16_string_copy_from_byte_stream(\n\t\t          (libuna_utf16_character_t *) wide_string,\n\t\t          wide_string_size,\n\t\t          (uint8_t *) source,\n\t\t          source_length + 1,\n\t\t          libclocale_codepage,\n\t\t          error );\n#endif\n\t}\n\tif( result != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_CONVERSION,\n\t\t LIBCERROR_CONVERSION_ERROR_GENERIC,\n\t\t \"%s: unable to set wide string.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\n#endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */\n\n\treturn( 1 );\n}\n\n#endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */\n\n/* Creates and opens a source volume\n * Returns 1 if successful or -1 on error\n */\nint fsrefs_test_volume_open_source(\n     libfsrefs_volume_t **volume,\n     const system_character_t *source,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"fsrefs_test_volume_open_source\";\n\tint result            = 0;\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( source == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid source.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_volume_initialize(\n\t     volume,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED,\n\t\t \"%s: unable to initialize volume.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tresult = libfsrefs_volume_open_wide(\n\t          *volume,\n\t          source,\n\t          LIBFSREFS_OPEN_READ,\n\t          error );\n#else\n\tresult = libfsrefs_volume_open(\n\t          *volume,\n\t          source,\n\t          LIBFSREFS_OPEN_READ,\n\t          error );\n#endif\n\tif( result != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_OPEN_FAILED,\n\t\t \"%s: unable to open volume.\",\n\t\t function );\n\n\t\tgoto on_error;\n\t}\n\treturn( 1 );\n\non_error:\n\tif( *volume != NULL )\n\t{\n\t\tlibfsrefs_volume_free(\n\t\t volume,\n\t\t NULL );\n\t}\n\treturn( -1 );\n}\n\n/* Closes and frees a source volume\n * Returns 1 if successful or -1 on error\n */\nint fsrefs_test_volume_close_source(\n     libfsrefs_volume_t **volume,\n     libcerror_error_t **error )\n{\n\tstatic char *function = \"fsrefs_test_volume_close_source\";\n\tint result            = 0;\n\n\tif( volume == NULL )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_ARGUMENTS,\n\t\t LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE,\n\t\t \"%s: invalid volume.\",\n\t\t function );\n\n\t\treturn( -1 );\n\t}\n\tif( libfsrefs_volume_close(\n\t     *volume,\n\t     error ) != 0 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_IO,\n\t\t LIBCERROR_IO_ERROR_CLOSE_FAILED,\n\t\t \"%s: unable to close volume.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n\tif( libfsrefs_volume_free(\n\t     volume,\n\t     error ) != 1 )\n\t{\n\t\tlibcerror_error_set(\n\t\t error,\n\t\t LIBCERROR_ERROR_DOMAIN_RUNTIME,\n\t\t LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED,\n\t\t \"%s: unable to free volume.\",\n\t\t function );\n\n\t\tresult = -1;\n\t}\n\treturn( result );\n}\n\n/* Tests the libfsrefs_volume_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_volume_initialize(\n     void )\n{\n\tlibcerror_error_t *error        = NULL;\n\tlibfsrefs_volume_t *volume      = NULL;\n\tint result                      = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests = 1;\n\tint number_of_memset_fail_tests = 1;\n\tint test_number                 = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_volume_initialize(\n\t          &volume,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"volume\",\n\t volume );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_volume_free(\n\t          &volume,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"volume\",\n\t volume );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_volume_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tvolume = (libfsrefs_volume_t *) 0x12345678UL;\n\n\tresult = libfsrefs_volume_initialize(\n\t          &volume,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tvolume = NULL;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_volume_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_volume_initialize(\n\t\t          &volume,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( volume != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_volume_free(\n\t\t\t\t &volume,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"volume\",\n\t\t\t volume );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_volume_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_volume_initialize(\n\t\t          &volume,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( volume != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_volume_free(\n\t\t\t\t &volume,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"volume\",\n\t\t\t volume );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( volume != NULL )\n\t{\n\t\tlibfsrefs_volume_free(\n\t\t &volume,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_volume_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_volume_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_volume_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_volume_open function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_volume_open(\n     const system_character_t *source )\n{\n\tchar narrow_source[ 256 ];\n\n\tlibcerror_error_t *error   = NULL;\n\tlibfsrefs_volume_t *volume = NULL;\n\tint result                 = 0;\n\n\t/* Initialize test\n\t */\n\tresult = fsrefs_test_volume_get_narrow_source(\n\t          source,\n\t          narrow_source,\n\t          256,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_volume_initialize(\n\t          &volume,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"volume\",\n\t volume );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test open\n\t */\n\tresult = libfsrefs_volume_open(\n\t          volume,\n\t          narrow_source,\n\t          LIBFSREFS_OPEN_READ,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_volume_open(\n\t          volume,\n\t          narrow_source,\n\t          LIBFSREFS_OPEN_READ,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_volume_free(\n\t          &volume,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"volume\",\n\t volume );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( volume != NULL )\n\t{\n\t\tlibfsrefs_volume_free(\n\t\t &volume,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n#if defined( HAVE_WIDE_CHARACTER_TYPE )\n\n/* Tests the libfsrefs_volume_open_wide function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_volume_open_wide(\n     const system_character_t *source )\n{\n\twchar_t wide_source[ 256 ];\n\n\tlibcerror_error_t *error   = NULL;\n\tlibfsrefs_volume_t *volume = NULL;\n\tint result                 = 0;\n\n\t/* Initialize test\n\t */\n\tresult = fsrefs_test_volume_get_wide_source(\n\t          source,\n\t          wide_source,\n\t          256,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_volume_initialize(\n\t          &volume,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"volume\",\n\t volume );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test open\n\t */\n\tresult = libfsrefs_volume_open_wide(\n\t          volume,\n\t          wide_source,\n\t          LIBFSREFS_OPEN_READ,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_volume_open_wide(\n\t          volume,\n\t          wide_source,\n\t          LIBFSREFS_OPEN_READ,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_volume_free(\n\t          &volume,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"volume\",\n\t volume );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( volume != NULL )\n\t{\n\t\tlibfsrefs_volume_free(\n\t\t &volume,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */\n\n/* Tests the libfsrefs_volume_close function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_volume_close(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_volume_close(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_volume_open and libfsrefs_volume_close functions\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_volume_open_close(\n     const system_character_t *source )\n{\n\tlibcerror_error_t *error   = NULL;\n\tlibfsrefs_volume_t *volume = NULL;\n\tint result                 = 0;\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_volume_initialize(\n\t          &volume,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"volume\",\n\t volume );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test open and close\n\t */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tresult = libfsrefs_volume_open_wide(\n\t          volume,\n\t          source,\n\t          LIBFSREFS_OPEN_READ,\n\t          &error );\n#else\n\tresult = libfsrefs_volume_open(\n\t          volume,\n\t          source,\n\t          LIBFSREFS_OPEN_READ,\n\t          &error );\n#endif\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_volume_close(\n\t          volume,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test open and close a second time to validate clean up on close\n\t */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\n\tresult = libfsrefs_volume_open_wide(\n\t          volume,\n\t          source,\n\t          LIBFSREFS_OPEN_READ,\n\t          &error );\n#else\n\tresult = libfsrefs_volume_open(\n\t          volume,\n\t          source,\n\t          LIBFSREFS_OPEN_READ,\n\t          &error );\n#endif\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_volume_close(\n\t          volume,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_volume_free(\n\t          &volume,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"volume\",\n\t volume );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( volume != NULL )\n\t{\n\t\tlibfsrefs_volume_free(\n\t\t &volume,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_volume_signal_abort function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_volume_signal_abort(\n     libfsrefs_volume_t *volume )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_volume_signal_abort(\n\t          volume,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_volume_signal_abort(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_volume_get_utf8_name_size function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_volume_get_utf8_name_size(\n     libfsrefs_volume_t *volume )\n{\n\tlibcerror_error_t *error  = NULL;\n\tsize_t utf8_name_size     = 0;\n\tint result                = 0;\n\tint utf8_name_size_is_set = 0;\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_volume_get_utf8_name_size(\n\t          volume,\n\t          &utf8_name_size,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_NOT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tutf8_name_size_is_set = result;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_volume_get_utf8_name_size(\n\t          NULL,\n\t          &utf8_name_size,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tif( utf8_name_size_is_set != 0 )\n\t{\n\t\tresult = libfsrefs_volume_get_utf8_name_size(\n\t\t          volume,\n\t\t          NULL,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t -1 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t \"error\",\n\t\t error );\n\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_volume_get_utf8_name function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_volume_get_utf8_name(\n     libfsrefs_volume_t *volume )\n{\n\tuint8_t utf8_name[ 512 ];\n\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\tint utf8_name_is_set     = 0;\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_volume_get_utf8_name(\n\t          volume,\n\t          utf8_name,\n\t          512,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_NOT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tutf8_name_is_set = result;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_volume_get_utf8_name(\n\t          NULL,\n\t          utf8_name,\n\t          512,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tif( utf8_name_is_set != 0 )\n\t{\n\t\tresult = libfsrefs_volume_get_utf8_name(\n\t\t          volume,\n\t\t          NULL,\n\t\t          512,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t -1 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t \"error\",\n\t\t error );\n\n\t\tlibcerror_error_free(\n\t\t &error );\n\n\t\tresult = libfsrefs_volume_get_utf8_name(\n\t\t          volume,\n\t\t          utf8_name,\n\t\t          0,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t -1 );\n\n\t        FSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t         \"error\",\n\t         error );\n\n\t\tlibcerror_error_free(\n\t\t &error );\n\n\t\tresult = libfsrefs_volume_get_utf8_name(\n\t\t          volume,\n\t\t          utf8_name,\n\t\t          (size_t) SSIZE_MAX + 1,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t -1 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t \"error\",\n\t\t error );\n\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_volume_get_utf16_name_size function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_volume_get_utf16_name_size(\n     libfsrefs_volume_t *volume )\n{\n\tlibcerror_error_t *error   = NULL;\n\tsize_t utf16_name_size     = 0;\n\tint result                 = 0;\n\tint utf16_name_size_is_set = 0;\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_volume_get_utf16_name_size(\n\t          volume,\n\t          &utf16_name_size,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_NOT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tutf16_name_size_is_set = result;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_volume_get_utf16_name_size(\n\t          NULL,\n\t          &utf16_name_size,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tif( utf16_name_size_is_set != 0 )\n\t{\n\t\tresult = libfsrefs_volume_get_utf16_name_size(\n\t\t          volume,\n\t\t          NULL,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t -1 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t \"error\",\n\t\t error );\n\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_volume_get_utf16_name function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_volume_get_utf16_name(\n     libfsrefs_volume_t *volume )\n{\n\tuint16_t utf16_name[ 512 ];\n\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\tint utf16_name_is_set    = 0;\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_volume_get_utf16_name(\n\t          volume,\n\t          utf16_name,\n\t          512,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_NOT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tutf16_name_is_set = result;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_volume_get_utf16_name(\n\t          NULL,\n\t          utf16_name,\n\t          512,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tif( utf16_name_is_set != 0 )\n\t{\n\t\tresult = libfsrefs_volume_get_utf16_name(\n\t\t          volume,\n\t\t          NULL,\n\t\t          512,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t -1 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t \"error\",\n\t\t error );\n\n\t\tlibcerror_error_free(\n\t\t &error );\n\n\t\tresult = libfsrefs_volume_get_utf16_name(\n\t\t          volume,\n\t\t          utf16_name,\n\t\t          0,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t -1 );\n\n\t        FSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t         \"error\",\n\t         error );\n\n\t\tlibcerror_error_free(\n\t\t &error );\n\n\t\tresult = libfsrefs_volume_get_utf16_name(\n\t\t          volume,\n\t\t          utf16_name,\n\t\t          (size_t) SSIZE_MAX + 1,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t -1 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t \"error\",\n\t\t error );\n\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc,\n     wchar_t * const argv[] )\n#else\nint main(\n     int argc,\n     char * const argv[] )\n#endif\n{\n\tlibcerror_error_t *error   = NULL;\n\tlibfsrefs_volume_t *volume = NULL;\n\tsystem_character_t *source = NULL;\n\tsystem_integer_t option    = 0;\n\tint result                 = 0;\n\n\twhile( ( option = fsrefs_test_getopt(\n\t                   argc,\n\t                   argv,\n\t                   _SYSTEM_STRING( \"\" ) ) ) != (system_integer_t) -1 )\n\t{\n\t\tswitch( option )\n\t\t{\n\t\t\tcase (system_integer_t) '?':\n\t\t\tdefault:\n\t\t\t\tfprintf(\n\t\t\t\t stderr,\n\t\t\t\t \"Invalid argument: %\" PRIs_SYSTEM \".\\n\",\n\t\t\t\t argv[ optind - 1 ] );\n\n\t\t\t\treturn( EXIT_FAILURE );\n\t\t}\n\t}\n\tif( optind < argc )\n\t{\n\t\tsource = argv[ optind ];\n\t}\n#if defined( HAVE_DEBUG_OUTPUT ) && defined( FSREFS_TEST_VOLUME_VERBOSE )\n\tlibfsrefs_notify_set_verbose(\n\t 1 );\n\tlibfsrefs_notify_set_stream(\n\t stderr,\n\t NULL );\n#endif\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_volume_initialize\",\n\t fsrefs_test_volume_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_volume_free\",\n\t fsrefs_test_volume_free );\n\n#if !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 )\n\tif( source != NULL )\n\t{\n\t\tFSREFS_TEST_RUN_WITH_ARGS(\n\t\t \"libfsrefs_volume_open\",\n\t\t fsrefs_test_volume_open,\n\t\t source );\n\n#if defined( HAVE_WIDE_CHARACTER_TYPE )\n\n\t\tFSREFS_TEST_RUN_WITH_ARGS(\n\t\t \"libfsrefs_volume_open_wide\",\n\t\t fsrefs_test_volume_open_wide,\n\t\t source );\n\n#endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */\n\n#if defined( LIBFSREFS_HAVE_BFIO )\n\n\t\t/* TODO add test for libfsrefs_volume_open_file_io_handle */\n\n#endif /* defined( LIBFSREFS_HAVE_BFIO ) */\n\n\t\tFSREFS_TEST_RUN(\n\t\t \"libfsrefs_volume_close\",\n\t\t fsrefs_test_volume_close );\n\n\t\tFSREFS_TEST_RUN_WITH_ARGS(\n\t\t \"libfsrefs_volume_open_close\",\n\t\t fsrefs_test_volume_open_close,\n\t\t source );\n\n\t\t/* Initialize test\n\t\t */\n\t\tresult = fsrefs_test_volume_open_source(\n\t\t          &volume,\n\t\t          source,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t 1 );\n\n\t        FSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t         \"volume\",\n\t         volume );\n\n\t        FSREFS_TEST_ASSERT_IS_NULL(\n\t         \"error\",\n\t         error );\n\n\t\tFSREFS_TEST_RUN_WITH_ARGS(\n\t\t \"libfsrefs_volume_signal_abort\",\n\t\t fsrefs_test_volume_signal_abort,\n\t\t volume );\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\t\t/* TODO: add tests for libfsrefs_volume_open_read */\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\t\tFSREFS_TEST_RUN_WITH_ARGS(\n\t\t \"libfsrefs_volume_get_utf8_name_size\",\n\t\t fsrefs_test_volume_get_utf8_name_size,\n\t\t volume );\n\n\t\tFSREFS_TEST_RUN_WITH_ARGS(\n\t\t \"libfsrefs_volume_get_utf8_name\",\n\t\t fsrefs_test_volume_get_utf8_name,\n\t\t volume );\n\n\t\tFSREFS_TEST_RUN_WITH_ARGS(\n\t\t \"libfsrefs_volume_get_utf16_name_size\",\n\t\t fsrefs_test_volume_get_utf16_name_size,\n\t\t volume );\n\n\t\tFSREFS_TEST_RUN_WITH_ARGS(\n\t\t \"libfsrefs_volume_get_utf16_name\",\n\t\t fsrefs_test_volume_get_utf16_name,\n\t\t volume );\n\n\t\t/* Clean up\n\t\t */\n\t\tresult = fsrefs_test_volume_close_source(\n\t\t          &volume,\n\t\t          &error );\n\n\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t \"result\",\n\t\t result,\n\t\t 0 );\n\n\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t         \"volume\",\n\t         volume );\n\n\t        FSREFS_TEST_ASSERT_IS_NULL(\n\t         \"error\",\n\t         error );\n\t}\n#endif /* !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 ) */\n\n\treturn( EXIT_SUCCESS );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( volume != NULL )\n\t{\n\t\tfsrefs_test_volume_close_source(\n\t\t &volume,\n\t\t NULL );\n\t}\n\treturn( EXIT_FAILURE );\n}\n\n"
  },
  {
    "path": "tests/fsrefs_test_volume_header.c",
    "content": "/*\n * Library volume_header type test program\n *\n * Copyright (C) 2012-2025, Joachim Metz <joachim.metz@gmail.com>\n *\n * Refer to AUTHORS for acknowledgements.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n\n#include <common.h>\n#include <byte_stream.h>\n#include <file_stream.h>\n#include <types.h>\n\n#if defined( HAVE_STDLIB_H ) || defined( WINAPI )\n#include <stdlib.h>\n#endif\n\n#include \"fsrefs_test_functions.h\"\n#include \"fsrefs_test_libbfio.h\"\n#include \"fsrefs_test_libcerror.h\"\n#include \"fsrefs_test_libfsrefs.h\"\n#include \"fsrefs_test_macros.h\"\n#include \"fsrefs_test_memory.h\"\n#include \"fsrefs_test_unused.h\"\n\n#include \"../libfsrefs/libfsrefs_volume_header.h\"\n\nuint8_t fsrefs_test_volume_header_data1[ 512 ] = {\n\t0x00, 0x00, 0x00, 0x52, 0x65, 0x46, 0x53, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x46, 0x53, 0x52, 0x53, 0x00, 0x02, 0x07, 0x34, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x02, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdd, 0x45, 0x64, 0x20, 0x65, 0x64, 0x20, 0x5e,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n/* Tests the libfsrefs_volume_header_initialize function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_volume_header_initialize(\n     void )\n{\n\tlibcerror_error_t *error                 = NULL;\n\tlibfsrefs_volume_header_t *volume_header = NULL;\n\tint result                               = 0;\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\tint number_of_malloc_fail_tests          = 1;\n\tint number_of_memset_fail_tests          = 1;\n\tint test_number                          = 0;\n#endif\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_volume_header_initialize(\n\t          &volume_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"volume_header\",\n\t volume_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_volume_header_free(\n\t          &volume_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"volume_header\",\n\t volume_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_volume_header_initialize(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tvolume_header = (libfsrefs_volume_header_t *) 0x12345678UL;\n\n\tresult = libfsrefs_volume_header_initialize(\n\t          &volume_header,\n\t          &error );\n\n\tvolume_header = NULL;\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n#if defined( HAVE_FSREFS_TEST_MEMORY )\n\n\tfor( test_number = 0;\n\t     test_number < number_of_malloc_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_volume_header_initialize with malloc failing\n\t\t */\n\t\tfsrefs_test_malloc_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_volume_header_initialize(\n\t\t          &volume_header,\n\t\t          &error );\n\n\t\tif( fsrefs_test_malloc_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_malloc_attempts_before_fail = -1;\n\n\t\t\tif( volume_header != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_volume_header_free(\n\t\t\t\t &volume_header,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"volume_header\",\n\t\t\t volume_header );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n\tfor( test_number = 0;\n\t     test_number < number_of_memset_fail_tests;\n\t     test_number++ )\n\t{\n\t\t/* Test libfsrefs_volume_header_initialize with memset failing\n\t\t */\n\t\tfsrefs_test_memset_attempts_before_fail = test_number;\n\n\t\tresult = libfsrefs_volume_header_initialize(\n\t\t          &volume_header,\n\t\t          &error );\n\n\t\tif( fsrefs_test_memset_attempts_before_fail != -1 )\n\t\t{\n\t\t\tfsrefs_test_memset_attempts_before_fail = -1;\n\n\t\t\tif( volume_header != NULL )\n\t\t\t{\n\t\t\t\tlibfsrefs_volume_header_free(\n\t\t\t\t &volume_header,\n\t\t\t\t NULL );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t\t\t \"result\",\n\t\t\t result,\n\t\t\t -1 );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NULL(\n\t\t\t \"volume_header\",\n\t\t\t volume_header );\n\n\t\t\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t\t\t \"error\",\n\t\t\t error );\n\n\t\t\tlibcerror_error_free(\n\t\t\t &error );\n\t\t}\n\t}\n#endif /* defined( HAVE_FSREFS_TEST_MEMORY ) */\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( volume_header != NULL )\n\t{\n\t\tlibfsrefs_volume_header_free(\n\t\t &volume_header,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_volume_header_free function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_volume_header_free(\n     void )\n{\n\tlibcerror_error_t *error = NULL;\n\tint result               = 0;\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_volume_header_free(\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_volume_header_read_data function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_volume_header_read_data(\n     void )\n{\n\tlibcerror_error_t *error                 = NULL;\n\tlibfsrefs_volume_header_t *volume_header = NULL;\n\tint result                               = 0;\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_volume_header_initialize(\n\t          &volume_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"volume_header\",\n\t volume_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_volume_header_read_data(\n\t          volume_header,\n\t          fsrefs_test_volume_header_data1,\n\t          512,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_volume_header_read_data(\n\t          NULL,\n\t          fsrefs_test_volume_header_data1,\n\t          512,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_volume_header_read_data(\n\t          volume_header,\n\t          NULL,\n\t          512,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_volume_header_read_data(\n\t          volume_header,\n\t          fsrefs_test_volume_header_data1,\n\t          (size_t) SSIZE_MAX + 1,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_volume_header_read_data(\n\t          volume_header,\n\t          fsrefs_test_volume_header_data1,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\t/* Test error case where signature is invalid\n\t */\n\tbyte_stream_copy_from_uint64_little_endian(\n\t &( fsrefs_test_volume_header_data1[ 3 ] ),\n\t 0xffffffffffffffffUL );\n\n\tresult = libfsrefs_volume_header_read_data(\n\t          volume_header,\n\t          fsrefs_test_volume_header_data1,\n\t          512,\n\t          &error );\n\n\tbyte_stream_copy_from_uint64_little_endian(\n\t &( fsrefs_test_volume_header_data1[ 3 ] ),\n\t 0x0000000053466552UL );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\t/* Test error case where bytes per sector is invalid\n\t */\n\tbyte_stream_copy_from_uint16_little_endian(\n\t &( fsrefs_test_volume_header_data1[ 32 ] ),\n\t 0xffff );\n\n\tresult = libfsrefs_volume_header_read_data(\n\t          volume_header,\n\t          fsrefs_test_volume_header_data1,\n\t          512,\n\t          &error );\n\n\tbyte_stream_copy_from_uint16_little_endian(\n\t &( fsrefs_test_volume_header_data1[ 32 ] ),\n\t 512 );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_volume_header_free(\n\t          &volume_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"volume_header\",\n\t volume_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( volume_header != NULL )\n\t{\n\t\tlibfsrefs_volume_header_free(\n\t\t &volume_header,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_volume_header_read_file_io_handle function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_volume_header_read_file_io_handle(\n     void )\n{\n\tlibbfio_handle_t *file_io_handle         = NULL;\n\tlibcerror_error_t *error                 = NULL;\n\tlibfsrefs_volume_header_t *volume_header = NULL;\n\tint result                               = 0;\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_volume_header_initialize(\n\t          &volume_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"volume_header\",\n\t volume_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Initialize file IO handle\n\t */\n\tresult = fsrefs_test_open_file_io_handle(\n\t          &file_io_handle,\n\t          fsrefs_test_volume_header_data1,\n\t          512,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_io_handle\",\n\t file_io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_volume_header_read_file_io_handle(\n\t          volume_header,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_volume_header_read_file_io_handle(\n\t          NULL,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_volume_header_read_file_io_handle(\n\t          volume_header,\n\t          NULL,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_volume_header_read_file_io_handle(\n\t          volume_header,\n\t          file_io_handle,\n\t          -1,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\t/* Clean up file IO handle\n\t */\n\tresult = fsrefs_test_close_file_io_handle(\n\t          &file_io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test data too small\n\t */\n\tresult = fsrefs_test_open_file_io_handle(\n\t          &file_io_handle,\n\t          fsrefs_test_volume_header_data1,\n\t          8,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_io_handle\",\n\t file_io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_volume_header_read_file_io_handle(\n\t          volume_header,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = fsrefs_test_close_file_io_handle(\n\t          &file_io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test data invalid\n\t */\n\tresult = fsrefs_test_open_file_io_handle(\n\t          &file_io_handle,\n\t          fsrefs_test_volume_header_data1,\n\t          512,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"file_io_handle\",\n\t file_io_handle );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tbyte_stream_copy_from_uint64_little_endian(\n\t &( fsrefs_test_volume_header_data1[ 3 ] ),\n\t 0xffffffffffffffffUL );\n\n\tresult = libfsrefs_volume_header_read_file_io_handle(\n\t          volume_header,\n\t          file_io_handle,\n\t          0,\n\t          &error );\n\n\tbyte_stream_copy_from_uint64_little_endian(\n\t &( fsrefs_test_volume_header_data1[ 3 ] ),\n\t 0x0000000053466552UL );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = fsrefs_test_close_file_io_handle(\n\t          &file_io_handle,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 0 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_volume_header_free(\n\t          &volume_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"volume_header\",\n\t volume_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( file_io_handle != NULL )\n\t{\n\t\tlibbfio_handle_free(\n\t\t &file_io_handle,\n\t\t NULL );\n\t}\n\tif( volume_header != NULL )\n\t{\n\t\tlibfsrefs_volume_header_free(\n\t\t &volume_header,\n\t\t NULL );\n\t}\n\treturn( 0 );\n}\n\n/* Tests the libfsrefs_volume_header_get_volume_size function\n * Returns 1 if successful or 0 if not\n */\nint fsrefs_test_volume_header_get_volume_size(\n     libfsrefs_volume_header_t *volume_header )\n{\n\tlibcerror_error_t *error = NULL;\n\tsize64_t volume_size     = 0;\n\tint result               = 0;\n\n\t/* Test regular cases\n\t */\n\tresult = libfsrefs_volume_header_get_volume_size(\n\t          volume_header,\n\t          &volume_size,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_EQUAL_UINT64(\n\t \"volume_size\",\n\t (uint64_t) volume_size,\n\t (uint64_t) 1006633472 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Test error cases\n\t */\n\tresult = libfsrefs_volume_header_get_volume_size(\n\t          NULL,\n\t          &volume_size,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\tresult = libfsrefs_volume_header_get_volume_size(\n\t          volume_header,\n\t          NULL,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t -1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"error\",\n\t error );\n\n\tlibcerror_error_free(\n\t &error );\n\n\treturn( 1 );\n\non_error:\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\treturn( 0 );\n}\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n/* The main program\n */\n#if defined( HAVE_WIDE_SYSTEM_CHARACTER )\nint wmain(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     wchar_t * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#else\nint main(\n     int argc FSREFS_TEST_ATTRIBUTE_UNUSED,\n     char * const argv[] FSREFS_TEST_ATTRIBUTE_UNUSED )\n#endif\n{\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tlibcerror_error_t *error                 = NULL;\n\tlibfsrefs_volume_header_t *volume_header = NULL;\n\tint result                               = 0;\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argc )\n\tFSREFS_TEST_UNREFERENCED_PARAMETER( argv )\n\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_volume_header_initialize\",\n\t fsrefs_test_volume_header_initialize );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_volume_header_free\",\n\t fsrefs_test_volume_header_free );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_volume_header_read_data\",\n\t fsrefs_test_volume_header_read_data );\n\n\tFSREFS_TEST_RUN(\n\t \"libfsrefs_volume_header_read_file_io_handle\",\n\t fsrefs_test_volume_header_read_file_io_handle );\n\n#if !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 )\n\n\t/* Initialize test\n\t */\n\tresult = libfsrefs_volume_header_initialize(\n\t          &volume_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NOT_NULL(\n\t \"volume_header\",\n\t volume_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\tresult = libfsrefs_volume_header_read_data(\n\t          volume_header,\n\t          fsrefs_test_volume_header_data1,\n\t          512,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n\t/* Run tests\n\t */\n\tFSREFS_TEST_RUN_WITH_ARGS(\n\t \"libfsrefs_volume_header_get_volume_size\",\n\t fsrefs_test_volume_header_get_volume_size,\n\t volume_header );\n\n\t/* Clean up\n\t */\n\tresult = libfsrefs_volume_header_free(\n\t          &volume_header,\n\t          &error );\n\n\tFSREFS_TEST_ASSERT_EQUAL_INT(\n\t \"result\",\n\t result,\n\t 1 );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"volume_header\",\n\t volume_header );\n\n\tFSREFS_TEST_ASSERT_IS_NULL(\n\t \"error\",\n\t error );\n\n#endif /* !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 ) */\n\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_SUCCESS );\n\non_error:\n#if defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT )\n\n\tif( error != NULL )\n\t{\n\t\tlibcerror_error_free(\n\t\t &error );\n\t}\n\tif( volume_header != NULL )\n\t{\n\t\tlibfsrefs_volume_header_free(\n\t\t &volume_header,\n\t\t NULL );\n\t}\n#endif /* defined( __GNUC__ ) && !defined( LIBFSREFS_DLL_IMPORT ) */\n\n\treturn( EXIT_FAILURE );\n}\n\n"
  },
  {
    "path": "tests/lsan.suppressions",
    "content": "leak:/lib*/libpython*\n"
  },
  {
    "path": "tests/pkgbuild.sh",
    "content": "#!/bin/sh\n# Script to build a MacOS pkg\n#\n# Version: 20241015\n\nset -e\n\nmake install DESTDIR=${PWD}/osx-pkg\nmkdir -p ${PWD}/osx-pkg/usr/share/doc/libfsrefs\ncp AUTHORS COPYING COPYING.LESSER NEWS README ${PWD}/osx-pkg/usr/share/doc/libfsrefs\n\nVERSION=`sed '5!d; s/^  \\[//;s/\\],$//' configure.ac`\npkgbuild --root osx-pkg --identifier com.github.libyal.libfsrefs --version ${VERSION} --ownership recommended ../libfsrefs-${VERSION}.pkg\n\n"
  },
  {
    "path": "tests/runtests.sh",
    "content": "#!/bin/sh\n# Script to run tests\n#\n# Version: 20201121\n\nif test -f ${PWD}/libfsrefs/.libs/libfsrefs.1.dylib && test -f ./pyfsrefs/.libs/pyfsrefs.so;\nthen\n\tinstall_name_tool -change /usr/local/lib/libfsrefs.1.dylib ${PWD}/libfsrefs/.libs/libfsrefs.1.dylib ./pyfsrefs/.libs/pyfsrefs.so;\nfi\n\nmake check CHECK_WITH_STDERR=1;\nRESULT=$?;\n\nif test ${RESULT} -ne 0 && test -f tests/test-suite.log;\nthen\n\tcat tests/test-suite.log;\nfi\nexit ${RESULT};\n\n"
  },
  {
    "path": "tests/syncsharedlibs.sh",
    "content": "#!/bin/sh\n# Script that synchronizes the shared library dependencies\n#\n# Version: 20201121\n\nEXIT_SUCCESS=0;\nEXIT_FAILURE=1;\n\nGIT_URL_PREFIX=\"https://github.com/libyal\";\nSHARED_LIBS=\"libcerror libcthreads libcdata libclocale libcnotify libcsplit libuna libcfile libcpath libbfio libfcache libfdata libfdatetime libfguid libfwnt\";\n\nUSE_HEAD=\"\";\n\nif test \"$1\" = \"--use-head\";\nthen\n\tUSE_HEAD=\"--use-head\";\nfi\n\nOLDIFS=$IFS;\nIFS=\" \";\n\nfor SHARED_LIB in ${SHARED_LIBS};\ndo\n\tGIT_URL=\"${GIT_URL_PREFIX}/${SHARED_LIB}.git\";\n\n\tgit clone --quiet ${GIT_URL} ${SHARED_LIB}-$$;\n\n\tif ! test -d ${SHARED_LIB}-$$;\n\tthen\n\t\techo \"Unable to git clone: ${GIT_URL}\";\n\n\t\tIFS=$OLDIFS;\n\n\t\texit ${EXIT_FAILURE};\n\tfi\n\t(cd ${SHARED_LIB}-$$ && git fetch --quiet --all --tags --prune)\n\n\tLATEST_TAG=`cd ${SHARED_LIB}-$$ && git describe --tags --abbrev=0`;\n\n\tif test -n ${LATEST_TAG} && test -z ${USE_HEAD};\n\tthen\n\t\techo \"Synchronizing: ${SHARED_LIB} from ${GIT_URL} tag ${LATEST_TAG}\";\n\n\t\t(cd ${SHARED_LIB}-$$ && git checkout --quiet tags/${LATEST_TAG});\n\telse\n\t\techo \"Synchronizing: ${SHARED_LIB} from ${GIT_URL} HEAD\";\n\tfi\n\n\t(cd ${SHARED_LIB}-$$ && ./synclibs.sh ${USE_HEAD} && ./autogen.sh);\n\n\tCONFIGURE_OPTIONS=\"\";\n\n\t(cd ${SHARED_LIB}-$$ && ./configure --help | grep -- '--enable-wide-character-type' > /dev/null);\n\n\tif test $? -eq 0;\n\tthen\n\t\tCONFIGURE_OPTIONS=\"${CONFIGURE_OPTIONS} --enable-wide-character-type\";\n\tfi\n\n\t(cd ${SHARED_LIB}-$$ && ./configure --prefix=/usr ${CONFIGURE_OPTIONS} && make && sudo make install);\n\n\trm -rf ${SHARED_LIB}-$$;\ndone\n\nIFS=$OLDIFS;\n\nexit ${EXIT_SUCCESS};\n\n"
  },
  {
    "path": "tests/test_fsrefsinfo.ps1",
    "content": "# Info tool testing script\n#\n# Version: 20230410\n\n$ExitSuccess = 0\n$ExitFailure = 1\n$ExitIgnore = 77\n\n$Profiles = @(\"fsrefsinfo\")\n$OptionsPerProfile = @(\"\")\n$OptionSets = \"offset\"\n\n$InputGlob = \"*\"\n\nFunction GetTestExecutablesDirectory\n{\n\t$TestExecutablesDirectory = \"\"\n\n\tForEach (${VSDirectory} in (\"msvscpp\", \"vs2008\", \"vs2010\", \"vs2012\", \"vs2013\", \"vs2015\", \"vs2017\", \"vs2019\", \"vs2022\"))\n\t{\n\t\tForEach (${VSConfiguration} in (\"Release\", \"VSDebug\"))\n\t\t{\n\t\t\tForEach (${VSPlatform} in (\"Win32\", \"x64\"))\n\t\t\t{\n\t\t\t\t$TestExecutablesDirectory = \"..\\${VSDirectory}\\${VSConfiguration}\\${VSPlatform}\"\n\n\t\t\t\tIf (Test-Path ${TestExecutablesDirectory})\n\t\t\t\t{\n\t\t\t\t\tReturn ${TestExecutablesDirectory}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$TestExecutablesDirectory = \"..\\${VSDirectory}\\${VSConfiguration}\"\n\n\t\t\tIf (Test-Path ${TestExecutablesDirectory})\n\t\t\t{\n\t\t\t\tReturn ${TestExecutablesDirectory}\n\t\t\t}\n\t\t}\n\t}\n\tReturn ${TestExecutablesDirectory}\n}\n\nFunction ReadIgnoreList\n{\n\tparam( [string]$TestProfileDirectory )\n\n\t$IgnoreFile = \"${TestProfileDirectory}\\ignore\"\n\t$IgnoreList = \"\"\n\n\tIf (Test-Path -Path ${IgnoreFile} -PathType \"Leaf\")\n\t{\n\t\t$IgnoreList = Get-Content -Path ${IgnoreFile} | Where {$_ -notmatch '^#.*'}\n\t}\n\tReturn $IgnoreList\n}\n\n$TestExecutablesDirectory = GetTestExecutablesDirectory\n\nIf (-Not (Test-Path ${TestExecutablesDirectory}))\n{\n\tWrite-Host \"Missing test executables directory.\" -foreground Red\n\n\tExit ${ExitFailure}\n}\n\n$TestExecutable = \"${TestExecutablesDirectory}\\fsrefsinfo.exe\"\n\nIf (-Not (Test-Path -Path \"input\"))\n{\n\tExit ${ExitIgnore}\n}\n$Result = ${ExitSuccess}\n\nFor ($ProfileIndex = 0; $ProfileIndex -le ($Profiles.length - 1); $ProfileIndex += 1)\n{\n\t$TestProfile = $Profiles[$ProfileIndex]\n\t$Options = $OptionsPerProfile[$ProfileIndex]\n\n\t$TestProfileDirectory = \"input\\.${TestProfile}\"\n\n\tIf (-Not (Test-Path -Path ${TestProfileDirectory} -PathType \"Container\"))\n\t{\n\t\tNew-Item -ItemType \"directory\" -Path ${TestProfileDirectory} | Out-Null\n\t}\n\t$IgnoreList = ReadIgnoreList ${TestProfileDirectory}\n\n\t# Note that the trailing backtick is needed.\n\tGet-ChildItem -Path \"input\" -Exclude \".*\" | ForEach-Object `\n\t{\n\t\t$TestSetDirectory = $_\n\n\t\tIf (-Not (Test-Path -Path ${TestSetDirectory} -PathType Container))\n\t\t{\n\t\t\tContinue\n\t\t}\n\t\t$TestSetName = ${TestSetDirectory}.Name\n\n\t\tIf (${IgnoreList}.Contains(${TestSetName}))\n\t\t{\n\t\t\tContinue\n\t\t}\n\t\tIf (-Not (Test-Path -Path \"${TestProfileDirectory}\\${TestSetName}\" -PathType Container))\n\t\t{\n\t\t\tNew-Item -Name \"${TestProfileDirectory}\\${TestSetName}\" -ItemType \"directory\" | Out-Null\n\t\t}\n\t\tIf (Test-Path -Path \"${TestProfileDirectory}\\${TestSetName}\\files\" -PathType Container)\n\t\t{\n\t\t\t$InputFiles = Get-content -Path \"${TestProfileDirectory}\\${TestSetName}\\files\"\n\t\t}\n\t\tElse\n\t\t{\n\t\t\t$InputFiles = Get-ChildItem -Path \"${TestSetDirectory}\\${InputGlob}\"\n\t\t}\n\t\tForEach ($InputFile in ${InputFiles})\n\t\t{\n\t\t\t$InputFileName = ${InputFile}.Name\n\n\t\t\t$TestedWithOptions = $False\n\n\t\t\t$TmpDir = \"tmp${PID}\"\n\n\t\t\tNew-Item -Name ${TmpDir} -ItemType \"directory\" | Out-Null\n\n\t\t\tPush-Location ${TmpDir}\n\n\t\t\tTry\n\t\t\t{\n\t\t\t\tForEach ($OptionSet in ${OptionSets} -split \" \")\n\t\t\t\t{\n\t\t\t\t\t$TestDataOptionFile = \"..\\${TestProfileDirectory}\\${TestSetName}\\${InputFileName}.${OptionSet}\"\n\n\t\t\t\t\tIf (-Not (Test-Path -Path \"${TestDataOptionFile}\" -PathType \"Leaf\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tContinue\n\t\t\t\t\t}\n\t\t\t\t\t$InputOptions = Get-content -Path \"${TestDataOptionFile}\" -First 1\n\n\t\t\t\t\t$TestLog = \"${InputFileName}-${OptionSet}.log\"\n\n\t\t\t\t\tInvoke-Expression \"..\\${TestExecutable} ${Options} ${InputOptions} ${InputFile} > ${TestLog}\"\n\t\t\t\t\t$Result = $LastExitCode\n\n\t\t\t\t\tIf (${Result} -ne ${ExitSuccess})\n\t\t\t\t\t{\n\t\t\t\t\t\tBreak\n\t\t\t\t\t}\n\t\t\t\t\t$TestedWithOptions = $True\n\t\t\t\t}\n\t\t\t\tIf ((${Result} -eq ${ExitSuccess}) -And (-Not (${TestedWithOptions})))\n\t\t\t\t{\n\t\t\t\t\t$TestLog = \"${InputFileName}.log\"\n\n\t\t\t\t\tInvoke-Expression \"..\\${TestExecutable} ${Options} ${InputFile} > ${TestLog}\"\n\t\t\t\t\t$Result = $LastExitCode\n\t\t\t\t}\n\t\t\t\tIf (${Result} -eq ${ExitSuccess})\n\t\t\t\t{\n\t\t\t\t\t# Strip header with version.\n\t\t\t\t\t(Get-Content ${TestLog} | Select-Object -Skip 2) | Set-Content ${TestLog}\n\n\t\t\t\t\t$StoredTestLog = \"..\\${TestProfileDirectory}\\${TestSetName}\\${TestLog}\"\n\n\t\t\t\t\tIf (Test-Path -Path ${StoredTestLog} -PathType \"Leaf\")\n\t\t\t\t\t{\n\t\t\t\t\t\t$Difference = Compare-Object -ReferenceObject (Get-Content -Path ${StoredTestLog}) -DifferenceObject (Get-Content -Path ${TestLog})\n\n\t\t\t\t\t\tIf (${Difference})\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$Result = ${ExitFailure}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tElse\n\t\t\t\t\t{\n\t\t\t\t\t\tMove-Item -Path ${TestLog} -Destination ${StoredTestLog}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tFinally\n\t\t\t{\n\t\t\t\tPop-Location\n\n\t\t\t\tRemove-Item ${TmpDir} -Force -Recurse\n\t\t\t}\n\t\t}\n\t\tIf (${Result} -ne ${ExitSuccess})\n\t\t{\n\t\t\tBreak\n\t\t}\n\t}\n}\n\nExit ${Result}\n\n"
  },
  {
    "path": "tests/test_fsrefsinfo.sh",
    "content": "#!/usr/bin/env bash\n# Info tool testing script\n#\n# Version: 20240413\n\nEXIT_SUCCESS=0;\nEXIT_FAILURE=1;\nEXIT_IGNORE=77;\n\nPROFILES=(\"fsrefsinfo\");\nOPTIONS_PER_PROFILE=(\"\");\nOPTION_SETS=(\"offset\");\n\nINPUT_GLOB=\"*\";\n\nif test -n \"${SKIP_TOOLS_TESTS}\" || test -n \"${SKIP_TOOLS_END_TO_END_TESTS}\";\nthen\n\texit ${EXIT_IGNORE};\nfi\n\nTEST_EXECUTABLE=\"../fsrefstools/fsrefsinfo\";\n\nif ! test -x \"${TEST_EXECUTABLE}\";\nthen\n\tTEST_EXECUTABLE=\"../fsrefstools/fsrefsinfo.exe\";\nfi\n\nif ! test -x \"${TEST_EXECUTABLE}\";\nthen\n\techo \"Missing test executable: ${TEST_EXECUTABLE}\";\n\n\texit ${EXIT_FAILURE};\nfi\n\nTEST_DIRECTORY=`dirname $0`;\n\nTEST_RUNNER=\"${TEST_DIRECTORY}/test_runner.sh\";\n\nif ! test -f \"${TEST_RUNNER}\";\nthen\n\techo \"Missing test runner: ${TEST_RUNNER}\";\n\n\texit ${EXIT_FAILURE};\nfi\n\nsource ${TEST_RUNNER};\n\nif ! test -d \"input\";\nthen\n\techo \"Test input directory not found.\";\n\n\texit ${EXIT_IGNORE};\nfi\nRESULT=`ls input/* | tr ' ' '\\n' | wc -l`;\n\nif test ${RESULT} -eq ${EXIT_SUCCESS};\nthen\n\techo \"No files or directories found in the test input directory\";\n\n\texit ${EXIT_IGNORE};\nfi\n\nfor PROFILE_INDEX in ${!PROFILES[*]};\ndo\n\tTEST_PROFILE=${PROFILES[${PROFILE_INDEX}]};\n\n\tTEST_PROFILE_DIRECTORY=$(get_test_profile_directory \"input\" \"${TEST_PROFILE}\");\n\n\tIGNORE_LIST=$(read_ignore_list \"${TEST_PROFILE_DIRECTORY}\");\n\n\tIFS=\" \" read -a PROFILE_OPTIONS <<< ${OPTIONS_PER_PROFILE[${PROFILE_INDEX}]};\n\n\tRESULT=${EXIT_SUCCESS};\n\n\tfor TEST_SET_INPUT_DIRECTORY in input/*;\n\tdo\n\t\tif ! test -d \"${TEST_SET_INPUT_DIRECTORY}\";\n\t\tthen\n\t\t\tcontinue;\n\t\tfi\n\t\tTEST_SET=`basename ${TEST_SET_INPUT_DIRECTORY}`;\n\n\t\tif check_for_test_set_in_ignore_list \"${TEST_SET}\" \"${IGNORE_LIST}\";\n\t\tthen\n\t\t\tcontinue;\n\t\tfi\n\t\tTEST_SET_DIRECTORY=$(get_test_set_directory \"${TEST_PROFILE_DIRECTORY}\" \"${TEST_SET_INPUT_DIRECTORY}\");\n\n\t\tRESULT=${EXIT_SUCCESS};\n\n\t\tif test -f \"${TEST_SET_DIRECTORY}/files\";\n\t\tthen\n\t\t\tIFS=\"\" read -a INPUT_FILES <<< $(cat ${TEST_SET_DIRECTORY}/files | sed \"s?^?${TEST_SET_INPUT_DIRECTORY}/?\");\n\t\telse\n\t\t\tIFS=\"\" read -a INPUT_FILES <<< $(ls -1d ${TEST_SET_INPUT_DIRECTORY}/${INPUT_GLOB});\n\t\tfi\n\t\tfor INPUT_FILE in \"${INPUT_FILES[@]}\";\n\t\tdo\n\t\t\tTESTED_WITH_OPTIONS=0;\n\n\t\t\tfor OPTION_SET in ${OPTION_SETS[@]};\n\t\t\tdo\n\t\t\t\tTEST_DATA_OPTION_FILE=$(get_test_data_option_file \"${TEST_SET_DIRECTORY}\" \"${INPUT_FILE}\" \"${OPTION_SET}\");\n\n\t\t\t\tif test -f ${TEST_DATA_OPTION_FILE};\n\t\t\t\tthen\n\t\t\t\t\tTESTED_WITH_OPTIONS=1;\n\n\t\t\t\t\tIFS=\" \" read -a OPTIONS <<< $(read_test_data_option_file \"${TEST_SET_DIRECTORY}\" \"${INPUT_FILE}\" \"${OPTION_SET}\");\n\n\t\t\t\t\trun_test_on_input_file \"${TEST_SET_DIRECTORY}\" \"fsrefsinfo\" \"with_stdout_reference\" \"${OPTION_SET}\" \"${TEST_EXECUTABLE}\" \"${INPUT_FILE}\" \"${PROFILE_OPTIONS[@]}\" \"${OPTIONS[@]}\";\n\t\t\t\t\tRESULT=$?;\n\n\t\t\t\t\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\t\t\t\t\tthen\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tfi\n\t\t\t\tfi\n\t\t\tdone\n\n\t\t\tif test ${TESTED_WITH_OPTIONS} -eq 0;\n\t\t\tthen\n\t\t\t\trun_test_on_input_file \"${TEST_SET_DIRECTORY}\" \"fsrefsinfo\" \"with_stdout_reference\" \"\" \"${TEST_EXECUTABLE}\" \"${INPUT_FILE}\" \"${PROFILE_OPTIONS[@]}\";\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\n\t\t\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\t\t\tthen\n\t\t\t\tbreak;\n\t\t\tfi\n\t\tdone\n\n\t\t# Ignore failures due to corrupted data.\n\t\tif test \"${TEST_SET}\" = \"corrupted\";\n\t\tthen\n\t\t\tRESULT=${EXIT_SUCCESS};\n\t\tfi\n\t\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\t\tthen\n\t\t\tbreak;\n\t\tfi\n\tdone\ndone\n\nexit ${RESULT};\n\n"
  },
  {
    "path": "tests/test_library.ps1",
    "content": "# Tests library functions and types.\n#\n# Version: 20230410\n\n$ExitSuccess = 0\n$ExitFailure = 1\n$ExitIgnore = 77\n\n$LibraryTests = \"attribute_values block_descriptor block_reference block_tree block_tree_node checkpoint data_run directory_entry directory_object error file_entry file_system io_handle metadata_block_header ministore_node node_header node_record notify objects_tree superblock tree_header volume_header\"\n$LibraryTestsWithInput = \"support volume\"\n$OptionSets = \"offset\"\n\n$InputGlob = \"*\"\n\nFunction GetTestExecutablesDirectory\n{\n\t$TestExecutablesDirectory = \"\"\n\n\tForEach (${VSDirectory} in (\"msvscpp\", \"vs2008\", \"vs2010\", \"vs2012\", \"vs2013\", \"vs2015\", \"vs2017\", \"vs2019\", \"vs2022\"))\n\t{\n\t\tForEach (${VSConfiguration} in (\"Release\", \"VSDebug\"))\n\t\t{\n\t\t\tForEach (${VSPlatform} in (\"Win32\", \"x64\"))\n\t\t\t{\n\t\t\t\t$TestExecutablesDirectory = \"..\\${VSDirectory}\\${VSConfiguration}\\${VSPlatform}\"\n\n\t\t\t\tIf (Test-Path ${TestExecutablesDirectory})\n\t\t\t\t{\n\t\t\t\t\tReturn ${TestExecutablesDirectory}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$TestExecutablesDirectory = \"..\\${VSDirectory}\\${VSConfiguration}\"\n\n\t\t\tIf (Test-Path ${TestExecutablesDirectory})\n\t\t\t{\n\t\t\t\tReturn ${TestExecutablesDirectory}\n\t\t\t}\n\t\t}\n\t}\n\tReturn ${TestExecutablesDirectory}\n}\n\nFunction ReadIgnoreList\n{\n\tparam( [string]$TestProfileDirectory )\n\n\t$IgnoreFile = \"${TestProfileDirectory}\\ignore\"\n\t$IgnoreList = \"\"\n\n\tIf (Test-Path -Path ${IgnoreFile} -PathType \"Leaf\")\n\t{\n\t\t$IgnoreList = Get-Content -Path ${IgnoreFile} | Where {$_ -notmatch '^#.*'}\n\t}\n\tReturn $IgnoreList\n}\n\nFunction RunTest\n{\n\tparam( [string]$TestType )\n\n\t$TestDescription = \"Testing: ${TestName}\"\n\t$TestExecutable = \"${TestExecutablesDirectory}\\fsrefs_test_${TestName}.exe\"\n\n\tIf (-Not (Test-Path -Path ${TestExecutable} -PathType \"Leaf\"))\n\t{\n\t\tWrite-Host \"${TestDescription} (\" -nonewline\n\t\tWrite-Host \"SKIP\" -foreground Cyan -nonewline\n\t\tWrite-Host \")\"\n\n\t\tReturn ${ExitIgnore}\n\t}\n\t$Output = Invoke-Expression ${TestExecutable}\n\t$Result = ${LastExitCode}\n\n\tIf (${Result} -ne ${ExitSuccess})\n\t{\n\t\tWrite-Host ${Output} -foreground Red\n\t}\n\tWrite-Host \"${TestDescription} (\" -nonewline\n\n\tIf (${Result} -ne ${ExitSuccess})\n\t{\n\t\tWrite-Host \"FAIL\" -foreground Red -nonewline\n\t}\n\tElse\n\t{\n\t\tWrite-Host \"PASS\" -foreground Green -nonewline\n\t}\n\tWrite-Host \")\"\n\n\tReturn ${Result}\n}\n\nFunction RunTestWithInput\n{\n\tparam( [string]$TestType )\n\n\t$TestDescription = \"Testing: ${TestName}\"\n\t$TestExecutable = \"${TestExecutablesDirectory}\\fsrefs_test_${TestName}.exe\"\n\n\tIf (-Not (Test-Path -Path ${TestExecutable} -PathType \"Leaf\"))\n\t{\n\t\tWrite-Host \"${TestDescription} (\" -nonewline\n\t\tWrite-Host \"SKIP\" -foreground Cyan -nonewline\n\t\tWrite-Host \")\"\n\n\t\tReturn ${ExitIgnore}\n\t}\n\t$TestProfileDirectory = \"input\\.libfsrefs\"\n\n\tIf (-Not (Test-Path -Path ${TestProfileDirectory} -PathType \"Container\"))\n\t{\n\t\tNew-Item -ItemType \"directory\" -Path ${TestProfileDirectory}\n\t}\n\t$IgnoreList = ReadIgnoreList ${TestProfileDirectory}\n\n\t$Result = ${ExitSuccess}\n\n\tForEach ($TestSetInputDirectory in Get-ChildItem -Path \"input\" -Exclude \".*\")\n\t{\n\t\tIf (-Not (Test-Path -Path ${TestSetInputDirectory} -PathType \"Container\"))\n\t\t{\n\t\t\tContinue\n\t\t}\n\t\tIf (${TestSetInputDirectory} -Contains ${IgnoreList})\n\t\t{\n\t\t\tContinue\n\t\t}\n\t\t$TestSetName = ${TestSetInputDirectory}.Name\n\n\t\tIf (Test-Path -Path \"${TestProfileDirectory}\\${TestSetName}\\files\" -PathType \"Leaf\")\n\t\t{\n\t\t\t$InputFiles = Get-Content -Path \"${TestProfileDirectory}\\${TestSetName}\\files\" | Where {$_ -ne \"\"}\n\t\t}\n\t\tElse\n\t\t{\n\t\t\t$InputFiles = Get-ChildItem -Path ${TestSetInputDirectory} -Include ${InputGlob}\n\t\t}\n\t\tForEach ($InputFile in ${InputFiles})\n\t\t{\n\t\t\t$TestedWithOptions = $False\n\n\t\t\tForEach ($OptionSet in ${OptionSets} -split \" \")\n\t\t\t{\n\t\t\t\t$InputFileName = ${InputFile}.Name\n\t\t\t\t$TestDataOptionFile = \"${TestProfileDirectory}\\${TestSetName}\\${InputFileName}.${OptionSet}\"\n\n\t\t\t\tIf (-Not (Test-Path -Path \"${TestDataOptionFile}\" -PathType \"Leaf\"))\n\t\t\t\t{\n\t\t\t\t\tContinue\n\t\t\t\t}\n\t\t\t\t$InputOptions = Get-content -Path \"${TestDataOptionFile}\" -First 1\n\n\t\t\t\t$Output = Invoke-Expression \"${TestExecutable} ${InputOptions} ${InputFile}\"\n\t\t\t\t$Result = $LastExitCode\n\n\t\t\t\tIf (${Result} -ne ${ExitSuccess})\n\t\t\t\t{\n\t\t\t\t\tBreak\n\t\t\t\t}\n\t\t\t\t$TestedWithOptions = $True\n\t\t\t}\n\t\t\tIf ((${Result} -eq ${ExitSuccess}) -And (-Not (${TestedWithOptions})))\n\t\t\t{\n\t\t\t\t$Output = Invoke-Expression \"${TestExecutable} ${InputFile}\"\n\t\t\t\t$Result = ${LastExitCode}\n\t\t\t}\n\t\t\tIf (${Result} -ne ${ExitSuccess})\n\t\t\t{\n\t\t\t\tBreak\n\t\t\t}\n\t\t}\n\t\tIf (${Result} -ne ${ExitSuccess})\n\t\t{\n\t\t\tBreak\n\t\t}\n\t}\n\tIf (${Result} -ne ${ExitSuccess})\n\t{\n\t\tWrite-Host ${Output} -foreground Red\n\t}\n\tWrite-Host \"${TestDescription} (\" -nonewline\n\n\tIf (${Result} -ne ${ExitSuccess})\n\t{\n\t\tWrite-Host \"FAIL\" -foreground Red -nonewline\n\t}\n\tElse\n\t{\n\t\tWrite-Host \"PASS\" -foreground Green -nonewline\n\t}\n\tWrite-Host \")\"\n\n\tReturn ${Result}\n}\n\n$TestExecutablesDirectory = GetTestExecutablesDirectory\n\nIf (-Not (Test-Path ${TestExecutablesDirectory}))\n{\n\tWrite-Host \"Missing test executables directory.\" -foreground Red\n\n\tExit ${ExitFailure}\n}\n\n$Result = ${ExitIgnore}\n\nForeach (${TestName} in ${LibraryTests} -split \" \")\n{\n\t# Split will return an array of a single empty string when LibraryTests is empty.\n\tIf (-Not (${TestName}))\n\t{\n\t\tContinue\n\t}\n\t$Result = RunTest ${TestName}\n\n\tIf ((${Result} -ne ${ExitSuccess}) -And (${Result} -ne ${ExitIgnore}))\n\t{\n\t\tBreak\n\t}\n}\n\nForeach (${TestName} in ${LibraryTestsWithInput} -split \" \")\n{\n\t# Split will return an array of a single empty string when LibraryTestsWithInput is empty.\n\tIf (-Not (${TestName}))\n\t{\n\t\tContinue\n\t}\n\tIf (Test-Path -Path \"input\" -PathType \"Container\")\n\t{\n\t\t$Result = RunTestWithInput ${TestName}\n\t}\n\tElse\n\t{\n\t\t$Result = RunTest ${TestName}\n\t}\n\tIf ((${Result} -ne ${ExitSuccess}) -And (${Result} -ne ${ExitIgnore}))\n\t{\n\t\tBreak\n\t}\n}\n\nExit ${Result}\n\n"
  },
  {
    "path": "tests/test_library.sh",
    "content": "#!/usr/bin/env bash\n# Tests library functions and types.\n#\n# Version: 20240413\n\nEXIT_SUCCESS=0;\nEXIT_FAILURE=1;\nEXIT_IGNORE=77;\n\nLIBRARY_TESTS=\"attribute_values block_descriptor block_reference block_tree block_tree_node checkpoint data_run directory_entry directory_object error file_entry file_system io_handle metadata_block_header ministore_node node_header node_record notify objects_tree superblock tree_header volume_header\";\nLIBRARY_TESTS_WITH_INPUT=\"support volume\";\nOPTION_SETS=(\"offset\");\n\nINPUT_GLOB=\"*\";\n\nrun_test()\n{\n\tlocal TEST_NAME=$1;\n\n\tlocal TEST_DESCRIPTION=\"Testing: ${TEST_NAME}\";\n\tlocal TEST_EXECUTABLE=\"./fsrefs_test_${TEST_NAME}\";\n\n\tif ! test -x \"${TEST_EXECUTABLE}\";\n\tthen\n\t\tTEST_EXECUTABLE=\"${TEST_EXECUTABLE}.exe\";\n\tfi\n\n\t# TODO: add support for TEST_PROFILE and OPTION_SETS?\n\trun_test_with_arguments \"${TEST_DESCRIPTION}\" \"${TEST_EXECUTABLE}\";\n\tlocal RESULT=$?;\n\n\treturn ${RESULT};\n}\n\nrun_test_with_input()\n{\n\tlocal TEST_NAME=$1;\n\n\tlocal TEST_DESCRIPTION=\"Testing: ${TEST_NAME}\";\n\tlocal TEST_EXECUTABLE=\"./fsrefs_test_${TEST_NAME}\";\n\n\tif ! test -x \"${TEST_EXECUTABLE}\";\n\tthen\n\t\tTEST_EXECUTABLE=\"${TEST_EXECUTABLE}.exe\";\n\tfi\n\n\tif ! test -d \"input\";\n\tthen\n\t\techo \"Test input directory not found.\";\n\n\t\treturn ${EXIT_IGNORE};\n\tfi\n\tlocal RESULT=`ls input/* | tr ' ' '\\n' | wc -l`;\n\n\tif test ${RESULT} -eq ${EXIT_SUCCESS};\n\tthen\n\t\techo \"No files or directories found in the test input directory\";\n\n\t\treturn ${EXIT_IGNORE};\n\tfi\n\n\tlocal TEST_PROFILE_DIRECTORY=$(get_test_profile_directory \"input\" \"libfsrefs\");\n\n\tlocal IGNORE_LIST=$(read_ignore_list \"${TEST_PROFILE_DIRECTORY}\");\n\n\tRESULT=${EXIT_SUCCESS};\n\n\tfor TEST_SET_INPUT_DIRECTORY in input/*;\n\tdo\n\t\tif ! test -d \"${TEST_SET_INPUT_DIRECTORY}\";\n\t\tthen\n\t\t\tcontinue;\n\t\tfi\n\t\tif check_for_directory_in_ignore_list \"${TEST_SET_INPUT_DIRECTORY}\" \"${IGNORE_LIST}\";\n\t\tthen\n\t\t\tcontinue;\n\t\tfi\n\n\t\tlocal TEST_SET_DIRECTORY=$(get_test_set_directory \"${TEST_PROFILE_DIRECTORY}\" \"${TEST_SET_INPUT_DIRECTORY}\");\n\n\t\tif test -f \"${TEST_SET_DIRECTORY}/files\";\n\t\tthen\n\t\t\tIFS=\"\" read -a INPUT_FILES <<< $(cat ${TEST_SET_DIRECTORY}/files | sed \"s?^?${TEST_SET_INPUT_DIRECTORY}/?\");\n\t\telse\n\t\t\tIFS=\"\" read -a INPUT_FILES <<< $(ls -1d ${TEST_SET_INPUT_DIRECTORY}/${INPUT_GLOB});\n\t\tfi\n\t\tfor INPUT_FILE in \"${INPUT_FILES[@]}\";\n\t\tdo\n\t\t\tOPTION_INPUT_FILE=\"${INPUT_FILE}\";\n\n\t\t\tif test \"${OSTYPE}\" = \"msys\";\n\t\t\tthen\n\t\t\t\t# A test executable built with MinGW expects a Windows path.\n\t\t\t\tINPUT_FILE=`echo ${INPUT_FILE} | sed 's?/?\\\\\\\\?g'`;\n\t\t\tfi\n\t\t\tlocal TESTED_WITH_OPTIONS=0;\n\n\t\t\tfor OPTION_SET in ${OPTION_SETS[@]};\n\t\t\tdo\n\t\t\t\tlocal TEST_DATA_OPTION_FILE=$(get_test_data_option_file \"${TEST_SET_DIRECTORY}\" \"${OPTION_INPUT_FILE}\" \"${OPTION_SET}\");\n\n\t\t\t\tif test -f ${TEST_DATA_OPTION_FILE};\n\t\t\t\tthen\n\t\t\t\t\tTESTED_WITH_OPTIONS=1;\n\n\t\t\t\t\tIFS=\" \" read -a OPTIONS <<< $(read_test_data_option_file \"${TEST_SET_DIRECTORY}\" \"${INPUT_FILE}\" \"${OPTION_SET}\");\n\n\t\t\t\t\trun_test_on_input_file \"${TEST_SET_DIRECTORY}\" \"${TEST_DESCRIPTION}\" \"default\" \"${OPTION_SET}\" \"${TEST_EXECUTABLE}\" \"${INPUT_FILE}\" \"${OPTIONS[@]}\";\n\t\t\t\t\tRESULT=$?;\n\n\t\t\t\t\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\t\t\t\t\tthen\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tfi\n\t\t\t\tfi\n\t\t\tdone\n\n\t\t\tif test ${TESTED_WITH_OPTIONS} -eq 0;\n\t\t\tthen\n\t\t\t\trun_test_on_input_file \"${TEST_SET_DIRECTORY}\" \"${TEST_DESCRIPTION}\" \"default\" \"\" \"${TEST_EXECUTABLE}\" \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\n\t\t\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\t\t\tthen\n\t\t\t\tbreak;\n\t\t\tfi\n\t\tdone\n\n\t\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\t\tthen\n\t\t\tbreak;\n\t\tfi\n\tdone\n\n\treturn ${RESULT};\n}\n\nif test -n \"${SKIP_LIBRARY_TESTS}\";\nthen\n\texit ${EXIT_IGNORE};\nfi\n\nTEST_DIRECTORY=`dirname $0`;\n\nTEST_RUNNER=\"${TEST_DIRECTORY}/test_runner.sh\";\n\nif ! test -f \"${TEST_RUNNER}\";\nthen\n\techo \"Missing test runner: ${TEST_RUNNER}\";\n\n\texit ${EXIT_FAILURE};\nfi\n\nsource ${TEST_RUNNER};\n\nRESULT=${EXIT_IGNORE};\n\nfor TEST_NAME in ${LIBRARY_TESTS};\ndo\n\trun_test \"${TEST_NAME}\";\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\tbreak;\n\tfi\ndone\n\nif test ${RESULT} -ne ${EXIT_SUCCESS} && test ${RESULT} -ne ${EXIT_IGNORE};\nthen\n\texit ${RESULT};\nfi\n\nfor TEST_NAME in ${LIBRARY_TESTS_WITH_INPUT};\ndo\n\tif test -d \"input\";\n\tthen\n\t\trun_test_with_input \"${TEST_NAME}\";\n\t\tRESULT=$?;\n\telse\n\t\trun_test \"${TEST_NAME}\";\n\t\tRESULT=$?;\n\tfi\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\tbreak;\n\tfi\ndone\n\nexit ${RESULT};\n\n"
  },
  {
    "path": "tests/test_manpage.sh",
    "content": "#!/usr/bin/env bash\n# Tests man pages.\n#\n# Version: 20240413\n\nEXIT_SUCCESS=0;\nEXIT_FAILURE=1;\nEXIT_IGNORE=77;\n\nrun_test()\n{\n\tlocal INPUT_FILE=$1;\n\tlocal RESULT=0\n\n\tTEST_NAME=`basename ${INPUT_FILE}`;\n\techo -n \"Testing man with input: ${TEST_NAME}\";\n\n\tLC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 man --warnings -E UTF-8 -l -Tutf8 -Z ${INPUT_FILE} > /dev/null 2> ${TMPDIR}/${TEST_NAME}.warnings;\n\tRESULT=$?;\n\n\t# For now line break warnings are ignored.\n\tif test -f ${TMPDIR}/${TEST_NAME}.warnings;\n\tthen\n\t\tsed \"/can't break line/ d\" -i ${TMPDIR}/${TEST_NAME}.warnings;\n\tfi\n\tif test -s ${TMPDIR}/${TEST_NAME}.warnings;\n\tthen\n\t\tRESULT=${EXIT_FAILURE};\n\tfi\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\techo \" (FAIL)\";\n\telse\n\t\techo \" (PASS)\";\n\tfi\n\tif test -s ${TMPDIR}/${TEST_NAME}.warnings;\n\tthen\n\t\tcat ${TMPDIR}/${TEST_NAME}.warnings;\n\tfi\n\treturn ${RESULT};\n}\n\nif test \"${OSTYPE}\" = \"msys\";\nthen\n\texit ${EXIT_IGNORE};\nfi\n\nTEST_DIRECTORY=`dirname $0`;\n\nTEST_RUNNER=\"${TEST_DIRECTORY}/test_runner.sh\";\n\nif ! test -f \"${TEST_RUNNER}\";\nthen\n\techo \"Missing test runner: ${TEST_RUNNER}\";\n\n\texit ${EXIT_FAILURE};\nfi\n\nsource ${TEST_RUNNER};\n\nassert_availability_binary man;\n\nRESULT=${EXIT_IGNORE};\n\nTMPDIR=\"tmp$$\";\n\nrm -rf ${TMPDIR};\nmkdir ${TMPDIR};\n\nMANUALS_PATH=\"../manuals\";\n\nif ! test -d ${MANUALS_PATH};\nthen\n\tMANUALS_PATH=\"manuals\";\nfi\n\nif ! test -d ${MANUALS_PATH};\nthen\n\techo \"Manuals directory not found.\";\n\n\texit ${EXIT_IGNORE};\nfi\n\nfor INPUT_FILE in ${MANUALS_PATH}/*.[13];\ndo\n\trun_test \"${INPUT_FILE}\";\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\tbreak;\n\tfi\ndone\n\nrm -rf ${TMPDIR};\n\nexit ${RESULT};\n\n"
  },
  {
    "path": "tests/test_runner.sh",
    "content": "#!/usr/bin/env bash\n# Bash functions to run an executable for testing.\n#\n# Version: 20231119\n#\n# When CHECK_WITH_ASAN is set to a non-empty value the test executable\n# is run with asan, otherwise it is run without.\n#\n# When CHECK_WITH_GDB is set to a non-empty value the test executable\n# is run with gdb, otherwise it is run without.\n#\n# When CHECK_WITH_STDERR is set to a non-empty value the test executable\n# is run with error output to stderr.\n#\n# When CHECK_WITH_VALGRIND is set to a non-empty value the test executable\n# is run with valgrind, otherwise it is run without.\n#\n# PYTHON is used to determine the Python interpreter.\n\nEXIT_SUCCESS=0;\nEXIT_FAILURE=1;\nEXIT_IGNORE=77;\n\n# Checks the availability of a binary and exits if not available.\n#\n# Arguments:\n#   a string containing the name of the binary\n#\nassert_availability_binary()\n{\n\tlocal BINARY=$1;\n\n\twhich ${BINARY} > /dev/null 2>&1;\n\tif test $? -ne ${EXIT_SUCCESS};\n\tthen\n\t\techo \"Missing binary: ${BINARY}\";\n\t\techo \"\";\n\n\t\texit ${EXIT_FAILURE};\n\tfi\n}\n\n# Checks the availability of binaries and exits if not available.\n#\n# Globals:\n#   CHECK_WITH_GDB\n#   CHECK_WITH_VALGRIND\n#\nassert_availability_binaries()\n{\n\tassert_availability_binary cat;\n\tassert_availability_binary cut;\n\tassert_availability_binary diff;\n\tassert_availability_binary file;\n\tassert_availability_binary gzip;\n\tassert_availability_binary ls;\n\tassert_availability_binary readlink;\n\tassert_availability_binary sed;\n\tassert_availability_binary tr;\n\tassert_availability_binary uname;\n\tassert_availability_binary wc;\n\tassert_availability_binary zcat;\n\n\tif test -n \"${CHECK_WITH_GDB}\";\n\tthen\n\t\tassert_availability_binary gdb;\n\n\telif test -n \"${CHECK_WITH_VALGRIND}\";\n\tthen\n\t\tassert_availability_binary valgrind;\n\tfi\n}\n\n# Checks if the test set is in the ignore list.\n#\n# Arguments:\n#   a string containing the test set\n#   a string containing space separated ignore list\n#\n# Returns:\n#   an integer containing the exit status to indicate the input directory\n#   was found in the ignore list.\n#\ncheck_for_test_set_in_ignore_list()\n{\n\tlocal TEST_SET=$1;\n\tlocal IGNORE_LIST=$2;\n\n\tlocal IFS=\" \";\n\n\tfor LIST_ELEMENT in ${IGNORE_LIST};\n\tdo\n\t\tif test \"${LIST_ELEMENT}\" = \"${TEST_SET}\";\n\t\tthen\n\t\t\treturn ${EXIT_SUCCESS};\n\t\tfi\n\tdone\n\treturn ${EXIT_FAILURE};\n}\n\n# Checks if the input directory is in the ignore list.\n#\n# Arguments:\n#   a string containing the path of the test input directory\n#   a string containing space separated ignore list\n#\n# Returns:\n#   an integer containing the exit status to indicate the input directory\n#   was found in the ignore list.\n#\ncheck_for_directory_in_ignore_list()\n{\n\tlocal INPUT_DIRECTORY=$1;\n\tlocal IGNORE_LIST=$2;\n\n\tlocal INPUT_BASENAME=`basename ${INPUT_DIRECTORY}`;\n\n\tlocal IFS=\" \";\n\n\tfor LIST_ELEMENT in ${IGNORE_LIST};\n\tdo\n\t\tif test \"${LIST_ELEMENT}\" = \"${INPUT_BASENAME}\";\n\t\tthen\n\t\t\treturn ${EXIT_SUCCESS};\n\t\tfi\n\tdone\n\treturn ${EXIT_FAILURE};\n}\n\n# Searches for the binary variant of the executable in case the test executable\n# refers to a libtool shell script.\n#\n# Arguments:\n#   a string containing the path of the test executable\n#\n# Returns:\n#   a string containing the path of the binary variant of the test executable\n#\nfind_binary_executable()\n{\n\tlocal TEST_EXECUTABLE=$1;\n\n\tTEST_EXECUTABLE=$( readlink_f \"${TEST_EXECUTABLE}\" );\n\n\t# Note that the behavior of `file -bi` is not helpful on Mac OS X.\n\tlocal EXECUTABLE_TYPE=`file -b ${TEST_EXECUTABLE}`;\n\n\t# Check if the test executable is a libtool shell script.\n\t# Linux: POSIX shell script, ASCII text executable, with very long lines\n\t# Mac OS X: POSIX shell script text executable\n\techo \"${EXECUTABLE_TYPE}\" | grep \"POSIX shell script\" > /dev/null 2>&1;\n\tRESULT=$?;\n\n\tif test ${RESULT} -eq ${EXIT_SUCCESS};\n\tthen\n\t\tlocal TEST_EXECUTABLE_BASENAME=`basename ${TEST_EXECUTABLE}`;\n\t\tlocal TEST_EXECUTABLE_DIRNAME=`dirname ${TEST_EXECUTABLE}`;\n\n\t\tTEST_EXECUTABLE=\"${TEST_EXECUTABLE_DIRNAME}/.libs/${TEST_EXECUTABLE_BASENAME}\";\n\n\t\tif test -x ${TEST_EXECUTABLE};\n\t\tthen\n\t\t\t# Note that the behavior of `file -bi` is not helpful on Mac OS X.\n\t\t\tEXECUTABLE_TYPE=`file -b ${TEST_EXECUTABLE}`;\n\n\t\t\t# Linux: ELF 64-bit LSB executable, x86-64, ...\n\t\t\t# Mac OS X: Mach-O 64-bit executable x86_64\n\t\t\techo \"${EXECUTABLE_TYPE}\" | grep \"executable\" > /dev/null 2>&1;\n\t\t\tRESULT=$?;\n\n\t\t\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\t\t\tthen\n\t\t\t\techo \"Invalid test executable: ${TEST_EXECUTABLE}\";\n\n\t\t\t\texit ${EXIT_FAILURE};\n\t\t\tfi\n\t\tfi\n\tfi\n\techo ${TEST_EXECUTABLE};\n}\n\n# Searches for the path to the binary variant of the library.\n#\n# Arguments:\n#   a string containing the path of the test executable\n#\n# Returns:\n#   a string containing the path of the binary variant of the library.\n#\nfind_binary_library_path()\n{\n\tlocal TEST_EXECUTABLE=$1;\n\tlocal LIBRARY_NAME=`dirname ${TEST_EXECUTABLE}`;\n\n\tlocal NAME=`basename ${LIBRARY_NAME}`;\n\n\tif test ${NAME} = \".libs\";\n\tthen\n\t\tLIBRARY_NAME=`dirname ${LIBRARY_NAME}`;\n\t\tNAME=`basename ${LIBRARY_NAME}`;\n\tfi\n\tif test ${NAME} = \"tests\";\n\tthen\n\t\tLIBRARY_NAME=`dirname ${LIBRARY_NAME}`;\n\t\tNAME=`basename ${LIBRARY_NAME}`;\n\tfi\n\techo ${LIBRARY_NAME} | grep 'tools' > /dev/null 2>&1;\n\n\tif test $? -eq ${EXIT_SUCCESS};\n\tthen\n\t\tLIBRARY_NAME=`basename ${LIBRARY_NAME} | sed 's/\\(.*\\)tools$/lib\\1/'`;\n\telse\n\t\tLIBRARY_NAME=`basename ${LIBRARY_NAME} | sed 's/^py//' | sed 's/^\\([^_]*\\)_test_.*$/lib\\1/'`;\n\tfi\n\tTEST_EXECUTABLE=`dirname ${TEST_EXECUTABLE}`;\n\tTEST_EXECUTABLE=`dirname ${TEST_EXECUTABLE}`;\n\tTEST_EXECUTABLE=`dirname ${TEST_EXECUTABLE}`;\n\n\tlocal LIBRARY_PATH=\"${TEST_EXECUTABLE}/${LIBRARY_NAME}/.libs\";\n\n\tif ! test -d \"${LIBRARY_PATH}\";\n\tthen\n\t\tLIBRARY_PATH=\"../${LIBRARY_NAME}/.libs\";\n\tfi\n\techo \"${LIBRARY_PATH}\";\n}\n\n# Searches for the path to the binary variant of the Python module\n#\n# Arguments:\n#   a string containing the path of the test executable\n#\n# Returns:\n#   a string containing the path of the binary variant of the Python module\n#\nfind_binary_python_module_path()\n{\n\tlocal TEST_EXECUTABLE=$1;\n\n\tlocal PYTHON_MODULE_NAME=`basename ${TEST_EXECUTABLE} | sed 's/^py\\(.*\\)_test_.*$/py\\1/'`;\n\n\tTEST_EXECUTABLE=`dirname ${TEST_EXECUTABLE}`;\n\tTEST_EXECUTABLE=`dirname ${TEST_EXECUTABLE}`;\n\tTEST_EXECUTABLE=`dirname ${TEST_EXECUTABLE}`;\n\n\tlocal PYTHON_MODULE_PATH=\"${TEST_EXECUTABLE}/${PYTHON_MODULE_NAME}/.libs\";\n\n\tif ! test -d \"${PYTHON_MODULE_PATH}\";\n\tthen\n\t\tPYTHON_MODULE_PATH=\"../${PYTHON_MODULE_NAME}/.libs\";\n\tfi\n\techo \"${PYTHON_MODULE_PATH}\";\n}\n\n# Determines the test data option file.\n#\n# Arguments:\n#   a string containing the path of the test set directory\n#   a string containing the path of the test input file\n#   a string containing the name of the test data option set\n#\n# Returns:\n#   a string containing the test input files\n#\nget_test_data_option_file()\n{\n\tlocal TEST_SET_DIRECTORY=$1;\n\tlocal INPUT_FILE=$2;\n\tlocal OPTION_SET=$3;\n\n\tlocal INPUT_NAME=`basename \"${INPUT_FILE}\"`;\n\tlocal TEST_DATA_OPTION_FILE=\"${TEST_SET_DIRECTORY}/${INPUT_NAME}.${OPTION_SET}\";\n\n\techo \"${TEST_DATA_OPTION_FILE}\";\n}\n\n# Determines the test profile directory.\n# The directory is created if it does not exist.\n#\n# Arguments:\n#   a string containing the path of the test input directory\n#   a string containing the name of the test profile\n#\n# Returns:\n#   a string containing the path of the test profile directory\n#\nget_test_profile_directory()\n{\n\tlocal TEST_INPUT_DIRECTORY=$1;\n\tlocal TEST_PROFILE=$2;\n\n\tlocal TEST_PROFILE_DIRECTORY=\"${TEST_INPUT_DIRECTORY}/.${TEST_PROFILE}\";\n\n\tif ! test -d \"${TEST_PROFILE_DIRECTORY}\";\n\tthen\n\t\tmkdir \"${TEST_PROFILE_DIRECTORY}\";\n\tfi\n\techo \"${TEST_PROFILE_DIRECTORY}\";\n}\n\n# Determines the test set directory.\n# The directory is created if it does not exist.\n#\n# Arguments:\n#   a string containing the path of the test profile directory\n#   a string containing the path of the test set input directory\n#\n# Returns:\n#   a string containing the path of the test set directory\n#\nget_test_set_directory()\n{\n\tlocal TEST_PROFILE_DIRECTORY=$1;\n\tlocal TEST_SET_INPUT_DIRECTORY=$2;\n\n\tlocal TEST_SET=`basename ${TEST_SET_INPUT_DIRECTORY}`;\n\tlocal TEST_SET_DIRECTORY=\"${TEST_PROFILE_DIRECTORY}/${TEST_SET}\";\n\n\tif ! test -d \"${TEST_SET_DIRECTORY}\";\n\tthen\n\t\tmkdir \"${TEST_SET_DIRECTORY}\";\n\tfi\n\techo \"${TEST_SET_DIRECTORY}\";\n}\n\n# Provides a cross-platform variant of \"readlink -f\"\n#\n# Arguments:\n#   a string containing a path\n#\n# Returns:\n#   a string containing the path with all symbolic links resolved\n#\nreadlink_f() {\n\tlocal TARGET=\"$1\"\n\n\tif test -f \"${TARGET}\";\n\tthen\n\t\twhile test -L \"${TARGET}\";\n\t\tdo\n\t\t\tTARGET=`readlink \"${TARGET}\"`;\n\t\tdone\n\tfi\n\tlocal BASENAME=`basename \"${TARGET}\"`;\n\tlocal DIRNAME=`dirname \"${TARGET}\"`;\n\n\tDIRNAME=`(cd \"${DIRNAME}\" && pwd -P)`;\n\n\techo \"${DIRNAME}/${BASENAME}\";\n}\n\n# Reads the test profile ignore file if it exists.\n#\n# Arguments:\n#   a string containing the path of the test profile directory\n#\n# Returns:\n#   a string containing a space separated ignore list\n#\nread_ignore_list()\n{\n\tlocal TEST_PROFILE_DIRECTORY=$1;\n\tlocal IGNORE_FILE=\"${TEST_PROFILE_DIRECTORY}/ignore\";\n\tlocal IGNORE_LIST=\"\";\n\n\tif test -f \"${IGNORE_FILE}\";\n\tthen\n\t\tIGNORE_LIST=`cat ${IGNORE_FILE} | sed '/^#/d' | tr '\\n' ' '`;\n\tfi\n\techo ${IGNORE_LIST};\n}\n\n# Reads a test data option file.\n#\n# Arguments:\n#   a string containing the path of the test set directory\n#   a string containing the path of the test input file\n#   a string containing the name of the test data option set\n#\n# Returns:\n#   a string containing the test data specific options\n#\nread_test_data_option_file()\n{\n\tlocal TEST_SET_DIRECTORY=$1;\n\tlocal INPUT_FILE=$2;\n\tlocal OPTION_SET=$3;\n\n\tlocal TEST_DATA_OPTION_FILE=\"${INPUT_FILE}.${OPTION_SET}\";\n\n\tif ! test -f \"${TEST_DATA_OPTION_FILE}\";\n\tthen\n\t\tTEST_DATA_OPTION_FILE=$(get_test_data_option_file \"${TEST_SET_DIRECTORY}\" \"${INPUT_FILE}\" \"${OPTION_SET}\");\n\tfi\n\n\tlocal OPTIONS_STRING=`head -n 1 \"${TEST_DATA_OPTION_FILE}\" | sed 's/[\\r\\n]*$//'`;\n\n\tif test \"${OPTIONS_STRING}\" = \"# libyal test data options\";\n\tthen\n\t\tOPTIONS_STRING=`tail -n +2 \"${TEST_DATA_OPTION_FILE}\" | sed 's/^offset=/-o/;s/^password=/-p/;s/^recovery_password=/-r/;s/^startup_key=/-s/;s/virtual_address=/-v/' | tr '\\n' ' '`;\n\tfi\n\techo \"${OPTIONS_STRING}\";\n}\n\n# Runs the test with optional arguments.\n#\n# Globals:\n#   CHECK_WITH_ASAN\n#   CHECK_WITH_GDB\n#   CHECK_WITH_STDERR\n#   CHECK_WITH_VALGRIND\n#\n# Arguments:\n#   a string containing the test description\n#   a string containing the path of the test executable\n#   an array containing the arguments for the test executable\n#\n# Returns:\n#   an integer containg the exit status of the test executable\n#\nrun_test_with_arguments()\n{\n\tlocal TEST_DESCRIPTION=$1;\n\tlocal TEST_EXECUTABLE=$2;\n\tshift 2;\n\tlocal ARGUMENTS=(\"$@\");\n\n\tif ! test -f \"${TEST_EXECUTABLE}\";\n\tthen\n\t\techo \"Missing test executable: ${TEST_EXECUTABLE}\";\n\t\techo \"\";\n\n\t\treturn ${EXIT_FAILURE};\n\tfi\n\tlocal PLATFORM=`uname -s | sed 's/-.*$//'`;\n\n\t# Note that the behavior of `file -bi` is not helpful on Mac OS X.\n\tlocal EXECUTABLE_TYPE=`file -b ${TEST_EXECUTABLE}`;\n\n\t# Check if the test executable is a Python script.\n\t# Linux: Python script, ASCII text executable\n\t# Mac OS X: a python script text executable\n\techo \"${EXECUTABLE_TYPE}\" | grep -i \"python script\" > /dev/null 2>&1;\n\tlocal IS_PYTHON_SCRIPT=$?;\n\n\tif test ${IS_PYTHON_SCRIPT} -eq 0 && test -z ${PYTHON};\n\tthen\n\t\tlocal PYTHON=`which python 2> /dev/null`;\n\n\t\tif ! test -x ${PYTHON};\n\t\tthen\n\t\t\techo \"Missing executable: ${PYTHON}\";\n\n\t\t\texit ${EXIT_FAILURE};\n\t\tfi\n\tfi\n\tlocal RESULT=0;\n\n\tif test -n \"${CHECK_WITH_ASAN}\";\n\tthen\n\t\tlocal TEST_EXECUTABLE=$( find_binary_executable ${TEST_EXECUTABLE} );\n\t\tlocal LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} );\n\t\tlocal PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} );\n\n\t\tlocal LSAN_SUPPRESSIONS=\"lsan.suppressions\";\n\n\t\tif ! test -f ${LSAN_SUPPRESSIONS};\n\t\tthen\n\t\t\tLSAN_SUPPRESSIONS=\"../lsan.suppressions\";\n\t\tfi\n\t\tif test \"${PLATFORM}\" = \"Darwin\";\n\t\tthen\n\t\t\tif test ${IS_PYTHON_SCRIPT} -eq 0;\n\t\t\tthen\n\t\t\t\tLSAN_OPTIONS=suppressions=\"${LSAN_SUPPRESSIONS}\" DYLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tLSAN_OPTIONS=suppressions=\"${LSAN_SUPPRESSIONS}\" DYLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\t\telse\n\t\t\tlocal CONFIG_LOG=\"../config.log\";\n\n\t\t\tif ! test -f ${CONFIG_LOG};\n\t\t\tthen\n\t\t\t\tCONFIG_LOG=\"../../config.log\";\n\t\t\tfi\n\t\t\tlocal CC=`cat ${CONFIG_LOG} | grep -e \"^CC=\" | sed \"s/CC='\\\\(.*\\\\)'/\\1/\"`;\n\t\t\tlocal LIBASAN=\"\";\n\n\t\t\tif test -z ${CC} || test ${CC} != \"clang\";\n\t\t\tthen\n\t\t\t\tlocal LDCONFIG=`which ldconfig 2> /dev/null`;\n\n\t\t\t\tif test -z ${LDCONFIG} || ! test -x ${LDCONFIG};\n\t\t\t\tthen\n\t\t\t\t\tLDCONFIG=\"/sbin/ldconfig\";\n\t\t\t\tfi\n\t\t\t\tif test -z ${LDCONFIG} || ! test -x ${LDCONFIG};\n\t\t\t\tthen\n\t\t\t\t\techo \"Missing binary: ldconfig\";\n\t\t\t\t\techo \"\";\n\n\t\t\t\t\texit ${EXIT_FAILURE};\n\t\t\t\tfi\n\t\t\t\tLIBASAN=`${LDCONFIG} -p | grep libasan | sed 's/^.* => //' | sort | tail -n 1`;\n\n\t\t\t\tif ! test -f ${LIBASAN};\n\t\t\t\tthen\n\t\t\t\t\techo \"Missing library: ${BINARY}\";\n\t\t\t\t\techo \"\";\n\n\t\t\t\t\texit ${EXIT_FAILURE};\n\t\t\t\tfi\n\t\t\tfi\n\t\t\tif test ${IS_PYTHON_SCRIPT} -eq 0;\n\t\t\tthen\n\t\t\t\tLSAN_OPTIONS=suppressions=\"${LSAN_SUPPRESSIONS}\" LD_PRELOAD=\"${LIBASAN}\" LD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tLSAN_OPTIONS=suppressions=\"${LSAN_SUPPRESSIONS}\" LD_PRELOAD=\"${LIBASAN}\" LD_LIBRARY_PATH=\"${LIBRARY_PATH}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\t\tfi\n\n\telif test -n \"${CHECK_WITH_GDB}\";\n\tthen\n\t\tlocal TEST_EXECUTABLE=$( find_binary_executable ${TEST_EXECUTABLE} );\n\t\tlocal LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} );\n\t\tlocal PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} );\n\n\t\tif test \"${PLATFORM}\" = \"Darwin\";\n\t\tthen\n\t\t\tif test ${IS_PYTHON_SCRIPT} -eq 0;\n\t\t\tthen\n\t\t\t\tDYLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" gdb -ex \"set non-stop on\" -ex \"run\" -ex \"quit\" --args \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tDYLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" gdb -ex \"set non-stop on\" -ex \"run\" -ex \"quit\" --args \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\n\t\telif test \"${PLATFORM}\" = \"CYGWIN_NT\";\n\t\tthen\n\t\t\tif test ${IS_PYTHON_SCRIPT} -eq 0;\n\t\t\tthen\n\t\t\t\tPATH=\"${LIBRARY_PATH}:${PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" gdb -ex \"set non-stop on\" -ex \"run\" -ex \"quit\" --args \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tPATH=\"${LIBRARY_PATH}:${PATH}\" gdb -ex \"set non-stop on\" -ex \"run\" -ex \"quit\" --args \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\n\t\telse\n\t\t\tif test ${IS_PYTHON_SCRIPT} -eq 0;\n\t\t\tthen\n\t\t\t\tLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" gdb -ex \"set non-stop on\" -ex \"run\" -ex \"quit\" --args \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" gdb -ex \"set non-stop on\" -ex \"run\" -ex \"quit\" --args \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\t\tfi\n\n\telif test -n \"${CHECK_WITH_VALGRIND}\";\n\tthen\n\t\tlocal TEST_EXECUTABLE=$( find_binary_executable ${TEST_EXECUTABLE} );\n\t\tlocal LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} );\n\t\tlocal PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} );\n\n\t\tlocal VALGRIND_LOG=\"valgrind.log-$$\";\n\t\tlocal VALGRIND_OPTIONS=(\"--tool=memcheck\" \"--leak-check=full\" \"--show-leak-kinds=definite,indirect,possible\" \"--track-origins=yes\" \"--log-file=${VALGRIND_LOG}\");\n\n\t\tif test \"${PLATFORM}\" = \"Darwin\";\n\t\tthen\n\t\t\tif test ${IS_PYTHON_SCRIPT} -eq 0;\n\t\t\tthen\n\t\t\t\tDYLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" valgrind ${VALGRIND_OPTIONS[@]} \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tDYLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" valgrind ${VALGRIND_OPTIONS[@]} \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\n\t\telif test \"${PLATFORM}\" = \"CYGWIN_NT\";\n\t\tthen\n\t\t\tif test ${IS_PYTHON_SCRIPT} -eq 0;\n\t\t\tthen\n\t\t\t\tPATH=\"${LIBRARY_PATH}:${PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" valgrind ${VALGRIND_OPTIONS[@]} \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tPATH=\"${LIBRARY_PATH}:${PATH}\" valgrind ${VALGRIND_OPTIONS[@]} \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\n\t\telse\n\t\t\tif test ${IS_PYTHON_SCRIPT} -eq 0;\n\t\t\tthen\n\t\t\t\tLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" valgrind ${VALGRIND_OPTIONS[@]} \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" valgrind ${VALGRIND_OPTIONS[@]} \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\t\tfi\n\t\tif test ${RESULT} -eq ${EXIT_SUCCESS};\n\t\tthen\n\t\t\tgrep \"All heap blocks were freed -- no leaks are possible\" ${VALGRIND_LOG} > /dev/null 2>&1;\n\n\t\t\tif test $? -ne ${EXIT_SUCCESS};\n\t\t\tthen\n\t\t\t\t# Ignore \"still reachable\"\n\t\t\t\t# Also see: http://valgrind.org/docs/manual/faq.html#faq.deflost\n\n\t\t\t\tgrep \"definitely lost: 0 bytes in 0 blocks\" ${VALGRIND_LOG} > /dev/null 2>&1;\n\t\t\t\tRESULT_DIRECTLY_LOST=$?;\n\n\t\t\t\tgrep \"indirectly lost: 0 bytes in 0 blocks\" ${VALGRIND_LOG} > /dev/null 2>&1;\n\t\t\t\tRESULT_INDIRECTLY_LOST=$?;\n\n\t\t\t\tgrep \"possibly lost: 0 bytes in 0 blocks\" ${VALGRIND_LOG} > /dev/null 2>&1;\n\t\t\t\tRESULT_POSSIBLY_LOST=$?;\n\n\t\t\t\tgrep \"suppressed: 0 bytes in 0 blocks\" ${VALGRIND_LOG} > /dev/null 2>&1;\n\t\t\t\tRESULT_SUPPRESSED=$?;\n\n\t\t\t\tif test ${RESULT_DIRECTLY_LOST} -ne ${EXIT_SUCCESS} || test ${RESULT_INDIRECTLY_LOST} -ne ${EXIT_SUCCESS} || test ${RESULT_POSSIBLY_LOST} -ne ${EXIT_SUCCESS} || test ${RESULT_SUPPRESSED} -ne ${EXIT_SUCCESS};\n\t\t\t\tthen\n\t\t\t\t\techo \"Memory leakage detected.\";\n\t\t\t\t\tcat ${VALGRIND_LOG};\n\n\t\t\t\t\tRESULT=${EXIT_FAILURE};\n\t\t\t\tfi\n\t\t\tfi\n\t\t\t# Detect valgrind warnings.\n\t\t\tlocal NUMBER_OF_LINES=`wc -l ${VALGRIND_LOG} | awk '{ print $1 }'`;\n\n\t\t\tif test ${NUMBER_OF_LINES} -ne 15 && test ${NUMBER_OF_LINES} -ne 22;\n\t\t\tthen\n\t\t\t\techo \"Unsupported number of lines: ${NUMBER_OF_LINES}\";\n\t\t\t\tcat ${VALGRIND_LOG};\n\n\t\t\t\tRESULT=${EXIT_FAILURE};\n\t\t\tfi\n\t\tfi\n\t\trm -f ${VALGRIND_LOG};\n\n\telif test ${IS_PYTHON_SCRIPT} -eq 0;\n\tthen\n\t\tif ! test -f \"${TEST_EXECUTABLE}\";\n\t\tthen\n\t\t\techo \"Invalid test Python script: ${TEST_EXECUTABLE}\";\n\t\t\techo \"\";\n\n\t\t\treturn ${EXIT_FAILURE};\n\t\tfi\n\t\tlocal TEST_EXECUTABLE=$( find_binary_executable ${TEST_EXECUTABLE} );\n\t\tlocal LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} );\n\t\tlocal PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} );\n\n\t\tif test \"${PLATFORM}\" = \"Darwin\";\n\t\tthen\n\t\t\tif test -n \"${CHECK_WITH_STDERR}\";\n\t\t\tthen\n\t\t\t\tDYLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tDYLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} 2> /dev/null;\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\n\t\telif test \"${PLATFORM}\" = \"CYGWIN_NT\";\n\t\tthen\n\t\t\tif test -n \"${CHECK_WITH_STDERR}\";\n\t\t\tthen\n\t\t\t\tPATH=\"${LIBRARY_PATH}:${PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tPATH=\"${LIBRARY_PATH}:${PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} 2> /dev/null;\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\n\t\telse\n\t\t\tif test -n \"${CHECK_WITH_STDERR}\";\n\t\t\tthen\n\t\t\t\tLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]};\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} 2> /dev/null;\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\t\tfi\n\telse\n\t\tif ! test -x \"${TEST_EXECUTABLE}\";\n\t\tthen\n\t\t\techo \"Invalid test executable: ${TEST_EXECUTABLE}\";\n\t\t\techo \"\";\n\n\t\t\treturn ${EXIT_FAILURE};\n\t\tfi\n\n\t\tif test -n \"${CHECK_WITH_STDERR}\";\n\t\tthen\n\t\t\t${TEST_EXECUTABLE} ${ARGUMENTS[@]};\n\t\t\tRESULT=$?;\n\t\telse\n\t\t\t${TEST_EXECUTABLE} ${ARGUMENTS[@]} 2> /dev/null;\n\t\t\tRESULT=$?;\n\t\tfi\n\tfi\n\tif test -n \"${TEST_DESCRIPTION}\";\n\tthen\n\t\techo -n \"${TEST_DESCRIPTION}\";\n\n\t\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\t\tthen\n\t\t\techo \" (FAIL)\";\n\t\telse\n\t\t\techo \" (PASS)\";\n\t\tfi\n\tfi\n\treturn ${RESULT};\n}\n\n# Runs the test with an input file and optional arguments.\n#\n# Globals:\n#   CHECK_WITH_ASAN\n#   CHECK_WITH_GDB\n#   CHECK_WITH_STDERR\n#   CHECK_WITH_VALGRIND\n#\n# Arguments:\n#   a string containing the path of the test executable\n#   a string containing the path of the test input file\n#   an array containing the arguments for the test executable\n#\n# Returns:\n#   an integer containg the exit status of the test executable\n#\nrun_test_with_input_and_arguments()\n{\n\tlocal TEST_EXECUTABLE=$1;\n\tlocal INPUT_FILE=$2;\n\tshift 2;\n\tlocal ARGUMENTS=(\"$@\");\n\n\tif ! test -f \"${TEST_EXECUTABLE}\";\n\tthen\n\t\techo \"Missing test executable: ${TEST_EXECUTABLE}\";\n\t\techo \"\";\n\n\t\treturn ${EXIT_FAILURE};\n\tfi\n\tlocal PLATFORM=`uname -s | sed 's/-.*$//'`;\n\n\t# Note that the behavior of `file -bi` is not helpful on Mac OS X.\n\tlocal EXECUTABLE_TYPE=`file -b ${TEST_EXECUTABLE}`;\n\n\t# Check if the test executable is a Python script.\n\t# Linux: Python script, ASCII text executable\n\t# Mac OS X: a python script text executable\n\techo \"${EXECUTABLE_TYPE}\" | grep -i \"python script\" > /dev/null 2>&1;\n\tlocal IS_PYTHON_SCRIPT=$?;\n\n\tif test ${IS_PYTHON_SCRIPT} -eq 0 && test -z ${PYTHON};\n\tthen\n\t\tlocal PYTHON=`which python 2> /dev/null`;\n\n\t\tif ! test -x ${PYTHON};\n\t\tthen\n\t\t\techo \"Missing executable: ${PYTHON}\";\n\n\t\t\texit ${EXIT_FAILURE};\n\t\tfi\n\tfi\n\tlocal RESULT=0;\n\n\tif test -n \"${CHECK_WITH_ASAN}\";\n\tthen\n\t\tlocal TEST_EXECUTABLE=$( find_binary_executable ${TEST_EXECUTABLE} );\n\t\tlocal LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} );\n\t\tlocal PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} );\n\n\t\tlocal LSAN_SUPPRESSIONS=\"lsan.suppressions\";\n\n\t\tif ! test -f ${LSAN_SUPPRESSIONS};\n\t\tthen\n\t\t\tLSAN_SUPPRESSIONS=\"../lsan.suppressions\";\n\t\tfi\n\t\tif test \"${PLATFORM}\" = \"Darwin\";\n\t\tthen\n\t\t\t# TODO DYLD_INSERT_LIBRARIES=/Library/Developer/CommandLineTools/usr/lib/clang/8.1.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib\n\t\t\tif test ${IS_PYTHON_SCRIPT} -eq 0;\n\t\t\tthen\n\t\t\t\tLSAN_OPTIONS=suppressions=\"${LSAN_SUPPRESSIONS}\" DYLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tLSAN_OPTIONS=suppressions=\"${LSAN_SUPPRESSIONS}\" DYLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\t\telse\n\t\t\tlocal CONFIG_LOG=\"../config.log\";\n\n\t\t\tif ! test -f ${CONFIG_LOG};\n\t\t\tthen\n\t\t\t\tCONFIG_LOG=\"../../config.log\";\n\t\t\tfi\n\t\t\tlocal CC=`cat ${CONFIG_LOG} | grep -e \"^CC=\" | sed \"s/CC='\\\\(.*\\\\)'/\\1/\"`;\n\t\t\tlocal LIBASAN=\"\";\n\n\t\t\tif test -z ${CC} || test ${CC} != \"clang\";\n\t\t\tthen\n\t\t\t\tlocal LDCONFIG=`which ldconfig 2> /dev/null`;\n\n\t\t\t\tif test -z ${LDCONFIG} || ! test -x ${LDCONFIG};\n\t\t\t\tthen\n\t\t\t\t\tLDCONFIG=\"/sbin/ldconfig\";\n\t\t\t\tfi\n\t\t\t\tif test -z ${LDCONFIG} || ! test -x ${LDCONFIG};\n\t\t\t\tthen\n\t\t\t\t\techo \"Missing binary: ldconfig\";\n\t\t\t\t\techo \"\";\n\n\t\t\t\t\texit ${EXIT_FAILURE};\n\t\t\t\tfi\n\t\t\t\tLIBASAN=`${LDCONFIG} -p | grep libasan | sed 's/^.* => //' | sort | tail -n 1`;\n\n\t\t\t\tif ! test -f ${LIBASAN};\n\t\t\t\tthen\n\t\t\t\t\techo \"Missing library: ${BINARY}\";\n\t\t\t\t\techo \"\";\n\n\t\t\t\t\texit ${EXIT_FAILURE};\n\t\t\t\tfi\n\t\t\tfi\n\t\t\tif test ${IS_PYTHON_SCRIPT} -eq 0;\n\t\t\tthen\n\t\t\t\tLSAN_OPTIONS=suppressions=\"${LSAN_SUPPRESSIONS}\" LD_PRELOAD=\"${LIBASAN}\" LD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tLSAN_OPTIONS=suppressions=\"${LSAN_SUPPRESSIONS}\" LD_PRELOAD=\"${LIBASAN}\" LD_LIBRARY_PATH=\"${LIBRARY_PATH}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\t\tfi\n\n\telif test -n \"${CHECK_WITH_GDB}\";\n\tthen\n\t\tlocal TEST_EXECUTABLE=$( find_binary_executable ${TEST_EXECUTABLE} );\n\t\tlocal LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} );\n\t\tlocal PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} );\n\n\t\tif test \"${PLATFORM}\" = \"Darwin\";\n\t\tthen\n\t\t\tif test ${IS_PYTHON_SCRIPT} -eq 0;\n\t\t\tthen\n\t\t\t\tDYLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" gdb -ex \"set non-stop on\" -ex \"run\" -ex \"quit\" --args \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tDYLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" gdb -ex \"set non-stop on\" -ex \"run\" -ex \"quit\" --args \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\n\t\telif test \"${PLATFORM}\" = \"CYGWIN_NT\";\n\t\tthen\n\t\t\tif test ${IS_PYTHON_SCRIPT} -eq 0;\n\t\t\tthen\n\t\t\t\tPATH=\"${LIBRARY_PATH}:${PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" gdb -ex \"set non-stop on\" -ex \"run\" -ex \"quit\" --args \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tPATH=\"${LIBRARY_PATH}:${PATH}\" gdb -ex \"set non-stop on\" -ex \"run\" -ex \"quit\" --args \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\n\t\telse\n\t\t\tif test ${IS_PYTHON_SCRIPT} -eq 0;\n\t\t\tthen\n\t\t\t\tLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" gdb -ex \"set non-stop on\" -ex \"run\" -ex \"quit\" --args \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" gdb -ex \"set non-stop on\" -ex \"run\" -ex \"quit\" --args \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\t\tfi\n\n\telif test -n \"${CHECK_WITH_VALGRIND}\";\n\tthen\n\t\tlocal TEST_EXECUTABLE=$( find_binary_executable ${TEST_EXECUTABLE} );\n\t\tlocal LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} );\n\t\tlocal PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} );\n\n\t\tlocal VALGRIND_LOG=\"valgrind.log-$$\";\n\t\tlocal VALGRIND_OPTIONS=(\"--tool=memcheck\" \"--leak-check=full\" \"--show-leak-kinds=definite,indirect,possible\" \"--track-origins=yes\" \"--log-file=${VALGRIND_LOG}\");\n\n\t\tif test \"${PLATFORM}\" = \"Darwin\";\n\t\tthen\n\t\t\tif test ${IS_PYTHON_SCRIPT} -eq 0;\n\t\t\tthen\n\t\t\t\tDYLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" valgrind ${VALGRIND_OPTIONS[@]} \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tDYLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" valgrind ${VALGRIND_OPTIONS[@]} \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\n\t\telif test \"${PLATFORM}\" = \"CYGWIN_NT\";\n\t\tthen\n\t\t\tif test ${IS_PYTHON_SCRIPT} -eq 0;\n\t\t\tthen\n\t\t\t\tPATH=\"${LIBRARY_PATH}:${PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" valgrind ${VALGRIND_OPTIONS[@]} \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tPATH=\"${LIBRARY_PATH}:${PATH}\" valgrind ${VALGRIND_OPTIONS[@]} \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\n\t\telse\n\t\t\tif test ${IS_PYTHON_SCRIPT} -eq 0;\n\t\t\tthen\n\t\t\t\tLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" valgrind ${VALGRIND_OPTIONS[@]} \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" valgrind ${VALGRIND_OPTIONS[@]} \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\t\tfi\n\t\tif test ${RESULT} -eq ${EXIT_SUCCESS};\n\t\tthen\n\t\t\tgrep \"All heap blocks were freed -- no leaks are possible\" ${VALGRIND_LOG} > /dev/null 2>&1;\n\n\t\t\tif test $? -ne ${EXIT_SUCCESS};\n\t\t\tthen\n\t\t\t\t# Ignore \"still reachable\"\n\t\t\t\t# Also see: http://valgrind.org/docs/manual/faq.html#faq.deflost\n\n\t\t\t\tgrep \"definitely lost: 0 bytes in 0 blocks\" ${VALGRIND_LOG} > /dev/null 2>&1;\n\t\t\t\tRESULT_DIRECTLY_LOST=$?;\n\n\t\t\t\tgrep \"indirectly lost: 0 bytes in 0 blocks\" ${VALGRIND_LOG} > /dev/null 2>&1;\n\t\t\t\tRESULT_INDIRECTLY_LOST=$?;\n\n\t\t\t\tgrep \"possibly lost: 0 bytes in 0 blocks\" ${VALGRIND_LOG} > /dev/null 2>&1;\n\t\t\t\tRESULT_POSSIBLY_LOST=$?;\n\n\t\t\t\tgrep \"suppressed: 0 bytes in 0 blocks\" ${VALGRIND_LOG} > /dev/null 2>&1;\n\t\t\t\tRESULT_SUPPRESSED=$?;\n\n\t\t\t\tif test ${RESULT_DIRECTLY_LOST} -ne ${EXIT_SUCCESS} || test ${RESULT_INDIRECTLY_LOST} -ne ${EXIT_SUCCESS} || test ${RESULT_POSSIBLY_LOST} -ne ${EXIT_SUCCESS} || test ${RESULT_SUPPRESSED} -ne ${EXIT_SUCCESS};\n\t\t\t\tthen\n\t\t\t\t\techo \"Memory leakage detected.\";\n\t\t\t\t\tcat ${VALGRIND_LOG};\n\n\t\t\t\t\tRESULT=${EXIT_FAILURE};\n\t\t\t\tfi\n\t\t\tfi\n\t\t\t# Detect valgrind warnings.\n\t\t\tlocal NUMBER_OF_LINES=`wc -l ${VALGRIND_LOG} | awk '{ print $1 }'`;\n\n\t\t\tif test ${NUMBER_OF_LINES} -ne 15 && test ${NUMBER_OF_LINES} -ne 22;\n\t\t\tthen\n\t\t\t\techo \"Unsupported number of lines: ${NUMBER_OF_LINES}\";\n\t\t\t\tcat ${VALGRIND_LOG};\n\n\t\t\t\tRESULT=${EXIT_FAILURE};\n\t\t\tfi\n\t\tfi\n\t\trm -f ${VALGRIND_LOG};\n\n\telif test ${IS_PYTHON_SCRIPT} -eq 0;\n\tthen\n\t\tif ! test -f \"${TEST_EXECUTABLE}\";\n\t\tthen\n\t\t\techo \"Invalid test Python script: ${TEST_EXECUTABLE}\";\n\t\t\techo \"\";\n\n\t\t\treturn ${EXIT_FAILURE};\n\t\tfi\n\t\tlocal TEST_EXECUTABLE=$( find_binary_executable ${TEST_EXECUTABLE} );\n\t\tlocal LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} );\n\t\tlocal PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} );\n\n\t\tif test \"${PLATFORM}\" = \"Darwin\";\n\t\tthen\n\t\t\tif test -n \"${CHECK_WITH_STDERR}\";\n\t\t\tthen\n\t\t\t\tDYLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tDYLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\" 2> /dev/null;\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\n\t\telif test \"${PLATFORM}\" = \"CYGWIN_NT\";\n\t\tthen\n\t\t\tif test -n \"${CHECK_WITH_STDERR}\";\n\t\t\tthen\n\t\t\t\tPATH=\"${LIBRARY_PATH}:${PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tPATH=\"${LIBRARY_PATH}:${PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\" 2> /dev/null;\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\n\t\telse\n\t\t\tif test -n \"${CHECK_WITH_STDERR}\";\n\t\t\tthen\n\t\t\t\tLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tLD_LIBRARY_PATH=\"${LIBRARY_PATH}\" PYTHONPATH=\"${PYTHON_MODULE_PATH}\" \"${PYTHON}\" \"${TEST_EXECUTABLE}\" ${ARGUMENTS[@]} \"${INPUT_FILE}\" 2> /dev/null;\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\t\tfi\n\telse\n\t\tif ! test -x \"${TEST_EXECUTABLE}\";\n\t\tthen\n\t\t\techo \"Invalid test executable: ${TEST_EXECUTABLE}\";\n\t\t\techo \"\";\n\n\t\t\treturn ${EXIT_FAILURE};\n\t\tfi\n\n\t\tif test -n \"${CHECK_WITH_STDERR}\";\n\t\tthen\n\t\t\t${TEST_EXECUTABLE} ${ARGUMENTS[@]} \"${INPUT_FILE}\";\n\t\t\tRESULT=$?;\n\t\telse\n\t\t\t${TEST_EXECUTABLE} ${ARGUMENTS[@]} \"${INPUT_FILE}\" 2> /dev/null;\n\t\t\tRESULT=$?;\n\t\tfi\n\tfi\n\treturn ${RESULT};\n}\n\n# Runs the test on the input file.\n#\n# Note that this function is not intended to be directly invoked\n# from outside the test runner script.\n#\n# Arguments:\n#   a string containing the path of the test set directory\n#   a string containing the description of the test\n#   a string containing the test mode\n#   a string containing the name of the test data option set\n#   a string containing the path of the test executable\n#   a string containing the path of the test input file\n#   an array containing the arguments for the test executable\n#\n# Returns:\n#   an integer containg the exit status of the test executable\n#\nrun_test_on_input_file()\n{\n\tlocal TEST_SET_DIRECTORY=$1;\n\tlocal TEST_DESCRIPTION=$2;\n\tlocal TEST_MODE=$3;\n\tlocal OPTION_SET=$4;\n\tlocal TEST_EXECUTABLE=$5;\n\tlocal INPUT_FILE=$6;\n\tshift 6;\n\tlocal ARGUMENTS=(\"$@\");\n\n\tlocal INPUT_NAME=`basename \"${INPUT_FILE}\"`;\n\tlocal TEST_OUTPUT=\"${INPUT_NAME}\";\n\n\tif test -n \"${OPTION_SET}\";\n\tthen\n\t\tTEST_OUTPUT=\"${INPUT_NAME}-${OPTION_SET}\";\n\tfi\n\n\tlocal TMPDIR=\"tmp$$\";\n\tlocal RESULT=0;\n\n\trm -rf ${TMPDIR};\n\tmkdir ${TMPDIR};\n\n\tif test \"${TEST_MODE}\" = \"with_callback\";\n\tthen\n\t\ttest_callback \"${TMPDIR}\" \"${TEST_SET_DIRECTORY}\" \"${TEST_OUTPUT}\" \"${TEST_EXECUTABLE}\" \"${TEST_INPUT}\" ${ARGUMENTS[@]};\n\t\tRESULT=$?;\n\n\telif test \"${TEST_MODE}\" = \"with_stdout_reference\";\n\tthen\n\t\tTEST_EXECUTABLE=$( readlink_f \"${TEST_EXECUTABLE}\" );\n\n\t\tif ! test -x ${TEST_EXECUTABLE};\n\t\tthen\n\t\t\techo \"Invalid test executable: ${TEST_EXECUTABLE}\";\n\t\t\techo \"\";\n\n\t\t\treturn ${EXIT_FAILURE};\n\t\tfi\n\t\tlocal INPUT_FILE_FULL_PATH=$( readlink_f \"${INPUT_FILE}\" );\n\t\tlocal TEST_LOG=\"${TEST_OUTPUT}.log\";\n\n\t\t(cd ${TMPDIR} && run_test_with_input_and_arguments \"${TEST_EXECUTABLE}\" \"${INPUT_FILE_FULL_PATH}\" ${ARGUMENTS[@]} > \"${TEST_LOG}\");\n\t\tRESULT=$?;\n\n\t\t# Compare output if test ran successfully.\n\t\tif test ${RESULT} -eq ${EXIT_SUCCESS};\n\t\tthen\n\t\t\tlocal TEST_RESULTS=\"${TMPDIR}/${TEST_LOG}\";\n\t\t\tlocal STORED_TEST_RESULTS=\"${TEST_SET_DIRECTORY}/${TEST_LOG}.gz\";\n\n\t\t\t# Strip header with version.\n\t\t\tsed -i'~' '1,2d' \"${TEST_RESULTS}\";\n\n\t\t\tif test -f \"${STORED_TEST_RESULTS}\";\n\t\t\tthen\n\t\t\t\t# Using zcat here since zdiff has issues on Mac OS X.\n\t\t\t\t# Note that zcat on Mac OS X requires the input from stdin.\n\t\t\t\tzcat < \"${STORED_TEST_RESULTS}\" | diff \"${TEST_RESULTS}\" -;\n\t\t\t\tRESULT=$?;\n\t\t\telse\n\t\t\t\tgzip \"${TEST_RESULTS}\";\n\n\t\t\t\tmv \"${TEST_RESULTS}.gz\" ${TEST_SET_DIRECTORY};\n\t\t\tfi\n\t\tfi\n\n\telse\n\t\trun_test_with_input_and_arguments \"${TEST_EXECUTABLE}\" \"${INPUT_FILE}\" ${ARGUMENTS[@]};\n\t\tRESULT=$?;\n\tfi\n\n\trm -rf ${TMPDIR};\n\n\tif test -n \"${TEST_DESCRIPTION}\";\n\tthen\n\t\tARGUMENTS=`echo \"${ARGUMENTS[*]}\" | tr '\\n' ' ' | sed 's/[ ]\\$//'`;\n\n\t\tif test -z \"${ARGUMENTS}\";\n\t\tthen\n\t\t\techo -n \"${TEST_DESCRIPTION} with input: ${INPUT_FILE}\";\n\t\telse\n\t\t\techo -n \"${TEST_DESCRIPTION} with options: '${ARGUMENTS}' and input: ${INPUT_FILE}\";\n\t\tfi\n\n\t\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\t\tthen\n\t\t\techo \" (FAIL)\";\n\t\telse\n\t\t\techo \" (PASS)\";\n\t\tfi\n\tfi\n\treturn ${RESULT};\n}\n\n"
  },
  {
    "path": "tests/test_tools.ps1",
    "content": "# Tests tools functions and types.\n#\n# Version: 20230410\n\n$ExitSuccess = 0\n$ExitFailure = 1\n$ExitIgnore = 77\n\n$ToolsTests = \"info_handle output signal\"\n$ToolsTestsWithInput = \"\"\n\n$InputGlob = \"*\"\n\nFunction GetTestProfileDirectory\n{\n\tparam( [string]$TestInputDirectory, [string]$TestProfile )\n\n\t$TestProfileDirectory = \"${TestInputDirectory}\\.${TestProfile}\"\n\n\tIf (-Not (Test-Path -Path ${TestProfileDirectory} -PathType \"Container\"))\n\t{\n\t\tNew-Item -ItemType \"directory\" -Path ${TestProfileDirectory}\n\t}\n\tReturn ${TestProfileDirectory}\n}\n\nFunction GetTestSetDirectory\n{\n\tparam( [string]$TestProfileDirectory, [string]$TestSetInputDirectory )\n\n\t$TestSetDirectory = \"${TestProfileDirectory}\\${TestSetInputDirectory.Basename}\"\n\n\tIf (-Not (Test-Path -Path ${TestSetDirectory} -PathType \"Container\"))\n\t{\n\t\tNew-Item -ItemType \"directory\" -Path ${TestSetDirectory}\n\t}\n\tReturn ${TestSetDirectory}\n}\n\nFunction GetTestExecutablesDirectory\n{\n\t$TestExecutablesDirectory = \"\"\n\n\tForEach (${VSDirectory} in (\"msvscpp\", \"vs2008\", \"vs2010\", \"vs2012\", \"vs2013\", \"vs2015\", \"vs2017\", \"vs2019\", \"vs2022\"))\n\t{\n\t\tForEach (${VSConfiguration} in (\"Release\", \"VSDebug\"))\n\t\t{\n\t\t\tForEach (${VSPlatform} in (\"Win32\", \"x64\"))\n\t\t\t{\n\t\t\t\t$TestExecutablesDirectory = \"..\\${VSDirectory}\\${VSConfiguration}\\${VSPlatform}\"\n\n\t\t\t\tIf (Test-Path ${TestExecutablesDirectory})\n\t\t\t\t{\n\t\t\t\t\tReturn ${TestExecutablesDirectory}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$TestExecutablesDirectory = \"..\\${VSDirectory}\\${VSConfiguration}\"\n\n\t\t\tIf (Test-Path ${TestExecutablesDirectory})\n\t\t\t{\n\t\t\t\tReturn ${TestExecutablesDirectory}\n\t\t\t}\n\t\t}\n\t}\n\tReturn ${TestExecutablesDirectory}\n}\n\nFunction ReadIgnoreList\n{\n\tparam( [string]$TestProfileDirectory )\n\n\t$IgnoreFile = \"${TestProfileDirectory}\\ignore\"\n\t$IgnoreList = \"\"\n\n\tIf (Test-Path -Path ${IgnoreFile} -PathType \"Leaf\")\n\t{\n\t\t$IgnoreList = Get-Content -Path ${IgnoreFile} | Where {$_ -notmatch '^#.*'}\n\t}\n\tReturn $IgnoreList\n}\n\nFunction RunTest\n{\n\tparam( [string]$TestType )\n\n\t$TestDescription = \"Testing: ${TestName}\"\n\t$TestExecutable = \"${TestExecutablesDirectory}\\fsrefs_test_tools_${TestName}.exe\"\n\n\t$Output = Invoke-Expression ${TestExecutable}\n\t$Result = ${LastExitCode}\n\n\tIf (${Result} -ne ${ExitSuccess})\n\t{\n\t\tWrite-Host ${Output} -foreground Red\n\t}\n\tWrite-Host \"${TestDescription} \" -nonewline\n\n\tIf (${Result} -ne ${ExitSuccess})\n\t{\n\t\tWrite-Host \" (FAIL)\"\n\t}\n\tElse\n\t{\n\t\tWrite-Host \" (PASS)\"\n\t}\n\tReturn ${Result}\n}\n\nFunction RunTestWithInput\n{\n\tparam( [string]$TestType )\n\n\t$TestDescription = \"Testing: ${TestName}\"\n\t$TestExecutable = \"${TestExecutablesDirectory}\\fsrefs_test_tools_${TestName}.exe\"\n\n\t$TestProfileDirectory = GetTestProfileDirectory \"input\" \"fsrefstools\"\n\n\t$IgnoreList = ReadIgnoreList ${TestProfileDirectory}\n\n\t$Result = ${ExitSuccess}\n\n\tForEach ($TestSetInputDirectory in Get-ChildItem -Path \"input\" -Exclude \".*\")\n\t{\n\t\tIf (-Not (Test-Path -Path ${TestSetInputDirectory} -PathType \"Container\"))\n\t\t{\n\t\t\tContinue\n\t\t}\n\t\tIf (${TestSetInputDirectory} -Contains ${IgnoreList})\n\t\t{\n\t\t\tContinue\n\t\t}\n\t\t$TestSetDirectory = GetTestSetDirectory ${TestProfileDirectory} ${TestSetInputDirectory}\n\n\t\tIf (Test-Path -Path \"${TestSetDirectory}\\files\" -PathType \"Leaf\")\n\t\t{\n\t\t\t$InputFiles = Get-Content -Path \"${TestSetDirectory}\\files\" | Where {$_ -ne \"\"}\n\t\t}\n\t\tElse\n\t\t{\n\t\t\t$InputFiles = Get-ChildItem -Path ${TestSetInputDirectory} -Include ${InputGlob}\n\t\t}\n\t\tForEach ($InputFile in ${InputFiles})\n\t\t{\n\t\t\t# TODO: add test option support\n\t\t\t$Output = Invoke-Expression ${TestExecutable}\n\t\t\t$Result = ${LastExitCode}\n\n\t\t\tIf (${Result} -ne ${ExitSuccess})\n\t\t\t{\n\t\t\t\tBreak\n\t\t\t}\n\t\t}\n\t\tIf (${Result} -ne ${ExitSuccess})\n\t\t{\n\t\t\tBreak\n\t\t}\n\t}\n\tIf (${Result} -ne ${ExitSuccess})\n\t{\n\t\tWrite-Host ${Output} -foreground Red\n\t}\n\tWrite-Host \"${TestDescription} \" -nonewline\n\n\tIf (${Result} -ne ${ExitSuccess})\n\t{\n\t\tWrite-Host \" (FAIL)\"\n\t}\n\tElse\n\t{\n\t\tWrite-Host \" (PASS)\"\n\t}\n\tReturn ${Result}\n}\n\n$TestExecutablesDirectory = GetTestExecutablesDirectory\n\nIf (-Not (Test-Path ${TestExecutablesDirectory}))\n{\n\tWrite-Host \"Missing test executables directory.\" -foreground Red\n\n\tExit ${ExitFailure}\n}\n\n$Result = ${ExitIgnore}\n\nForeach (${TestName} in ${ToolsTests} -split \" \")\n{\n\t# Split will return an array of a single empty string when ToolsTests is empty.\n\tIf (-Not (${TestName}))\n\t{\n\t\tContinue\n\t}\n\t$Result = RunTest ${TestName}\n\n\tIf (${Result} -ne ${ExitSuccess})\n\t{\n\t\tBreak\n\t}\n}\n\nForeach (${TestName} in ${ToolsTestsWithInput} -split \" \")\n{\n\t# Split will return an array of a single empty string when ToolsTestsWithInput is empty.\n\tIf (-Not (${TestName}))\n\t{\n\t\tContinue\n\t}\n\tIf (Test-Path -Path \"input\" -PathType \"Container\")\n\t{\n\t\t$Result = RunTestWithInput ${TestName}\n\t}\n\tElse\n\t{\n\t\t$Result = RunTest ${TestName}\n\t}\n\tIf (${Result} -ne ${ExitSuccess})\n\t{\n\t\tBreak\n\t}\n}\n\nExit ${Result}\n\n"
  },
  {
    "path": "tests/test_tools.sh",
    "content": "#!/usr/bin/env bash\n# Tests tools functions and types.\n#\n# Version: 20240413\n\nEXIT_SUCCESS=0;\nEXIT_FAILURE=1;\nEXIT_IGNORE=77;\n\nTOOLS_TESTS=\"info_handle output signal\";\nTOOLS_TESTS_WITH_INPUT=\"\";\nOPTION_SETS=(\"offset\");\n\nINPUT_GLOB=\"*\";\n\nrun_test()\n{\n\tlocal TEST_NAME=$1;\n\n\tlocal TEST_DESCRIPTION=\"Testing: ${TEST_NAME}\";\n\tlocal TEST_EXECUTABLE=\"./fsrefs_test_tools_${TEST_NAME}\";\n\n\tif ! test -x \"${TEST_EXECUTABLE}\";\n\tthen\n\t\tTEST_EXECUTABLE=\"${TEST_EXECUTABLE}.exe\";\n\tfi\n\n\t# TODO: add support for TEST_PROFILE and OPTION_SETS?\n\trun_test_with_arguments \"${TEST_DESCRIPTION}\" \"${TEST_EXECUTABLE}\";\n\tlocal RESULT=$?;\n\n\treturn ${RESULT};\n}\n\nrun_test_with_input()\n{\n\tlocal TEST_NAME=$1;\n\n\tlocal TEST_DESCRIPTION=\"Testing: ${TEST_NAME}\";\n\tlocal TEST_EXECUTABLE=\"./fsrefs_test_tools_${TEST_NAME}\";\n\n\tif ! test -x \"${TEST_EXECUTABLE}\";\n\tthen\n\t\tTEST_EXECUTABLE=\"${TEST_EXECUTABLE}.exe\";\n\tfi\n\n\tif ! test -d \"input\";\n\tthen\n\t\techo \"Test input directory not found.\";\n\n\t\treturn ${EXIT_IGNORE};\n\tfi\n\tlocal RESULT=`ls input/* | tr ' ' '\\n' | wc -l`;\n\n\tif test ${RESULT} -eq ${EXIT_SUCCESS};\n\tthen\n\t\techo \"No files or directories found in the test input directory\";\n\n\t\treturn ${EXIT_IGNORE};\n\tfi\n\n\tlocal TEST_PROFILE_DIRECTORY=$(get_test_profile_directory \"input\" \"fsrefstools\");\n\n\tlocal IGNORE_LIST=$(read_ignore_list \"${TEST_PROFILE_DIRECTORY}\");\n\n\tRESULT=${EXIT_SUCCESS};\n\n\tfor TEST_SET_INPUT_DIRECTORY in input/*;\n\tdo\n\t\tif ! test -d \"${TEST_SET_INPUT_DIRECTORY}\";\n\t\tthen\n\t\t\tcontinue;\n\t\tfi\n\t\tif check_for_directory_in_ignore_list \"${TEST_SET_INPUT_DIRECTORY}\" \"${IGNORE_LIST}\";\n\t\tthen\n\t\t\tcontinue;\n\t\tfi\n\n\t\tlocal TEST_SET_DIRECTORY=$(get_test_set_directory \"${TEST_PROFILE_DIRECTORY}\" \"${TEST_SET_INPUT_DIRECTORY}\");\n\n\t\tif test -f \"${TEST_SET_DIRECTORY}/files\";\n\t\tthen\n\t\t\tIFS=\"\" read -a INPUT_FILES <<< $(cat ${TEST_SET_DIRECTORY}/files | sed \"s?^?${TEST_SET_INPUT_DIRECTORY}/?\");\n\t\telse\n\t\t\tIFS=\"\" read -a INPUT_FILES <<< $(ls -1d ${TEST_SET_INPUT_DIRECTORY}/${INPUT_GLOB});\n\t\tfi\n\t\tfor INPUT_FILE in \"${INPUT_FILES[@]}\";\n\t\tdo\n\t\t\tOPTION_INPUT_FILE=\"${INPUT_FILE}\";\n\n\t\t\tif test \"${OSTYPE}\" = \"msys\";\n\t\t\tthen\n\t\t\t\t# A test executable built with MinGW expects a Windows path.\n\t\t\t\tINPUT_FILE=`echo ${INPUT_FILE} | sed 's?/?\\\\\\\\?g'`;\n\t\t\tfi\n\t\t\tlocal TESTED_WITH_OPTIONS=0;\n\n\t\t\tfor OPTION_SET in ${OPTION_SETS[@]};\n\t\t\tdo\n\t\t\t\tlocal TEST_DATA_OPTION_FILE=$(get_test_data_option_file \"${TEST_SET_DIRECTORY}\" \"${OPTION_INPUT_FILE}\" \"${OPTION_SET}\");\n\n\t\t\t\tif test -f ${TEST_DATA_OPTION_FILE};\n\t\t\t\tthen\n\t\t\t\t\tTESTED_WITH_OPTIONS=1;\n\n\t\t\t\t\tIFS=\" \" read -a OPTIONS <<< $(read_test_data_option_file \"${TEST_SET_DIRECTORY}\" \"${INPUT_FILE}\" \"${OPTION_SET}\");\n\n\t\t\t\t\trun_test_on_input_file \"${TEST_SET_DIRECTORY}\" \"${TEST_DESCRIPTION}\" \"default\" \"${OPTION_SET}\" \"${TEST_EXECUTABLE}\" \"${INPUT_FILE}\" \"${OPTIONS[@]}\";\n\t\t\t\t\tRESULT=$?;\n\n\t\t\t\t\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\t\t\t\t\tthen\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tfi\n\t\t\t\tfi\n\t\t\tdone\n\n\t\t\tif test ${TESTED_WITH_OPTIONS} -eq 0;\n\t\t\tthen\n\t\t\t\trun_test_on_input_file \"${TEST_SET_DIRECTORY}\" \"${TEST_DESCRIPTION}\" \"default\" \"\" \"${TEST_EXECUTABLE}\" \"${INPUT_FILE}\";\n\t\t\t\tRESULT=$?;\n\t\t\tfi\n\n\t\t\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\t\t\tthen\n\t\t\t\tbreak;\n\t\t\tfi\n\t\tdone\n\n\t\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\t\tthen\n\t\t\tbreak;\n\t\tfi\n\tdone\n\n\treturn ${RESULT};\n}\n\nif test -n \"${SKIP_TOOLS_TESTS}\";\nthen\n\texit ${EXIT_IGNORE};\nfi\n\nTEST_DIRECTORY=`dirname $0`;\n\nTEST_RUNNER=\"${TEST_DIRECTORY}/test_runner.sh\";\n\nif ! test -f \"${TEST_RUNNER}\";\nthen\n\techo \"Missing test runner: ${TEST_RUNNER}\";\n\n\texit ${EXIT_FAILURE};\nfi\n\nsource ${TEST_RUNNER};\n\nRESULT=${EXIT_IGNORE};\n\nfor TEST_NAME in ${TOOLS_TESTS};\ndo\n\trun_test \"${TEST_NAME}\";\n\tRESULT=$?;\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\tbreak;\n\tfi\ndone\n\nif test ${RESULT} -ne ${EXIT_SUCCESS} && test ${RESULT} -ne ${EXIT_IGNORE};\nthen\n\texit ${RESULT};\nfi\n\nfor TEST_NAME in ${TOOLS_TESTS_WITH_INPUT};\ndo\n\tif test -d \"input\";\n\tthen\n\t\trun_test_with_input \"${TEST_NAME}\";\n\t\tRESULT=$?;\n\telse\n\t\trun_test \"${TEST_NAME}\";\n\t\tRESULT=$?;\n\tfi\n\n\tif test ${RESULT} -ne ${EXIT_SUCCESS};\n\tthen\n\t\tbreak;\n\tfi\ndone\n\nexit ${RESULT};\n\n"
  }
]